1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00

Disallow selecting the text of buttons (#19330)

Introduce a CSS class `.unselectable`
This commit is contained in:
delvh 2022-04-14 10:57:19 +02:00 committed by GitHub
parent 3255ba9305
commit 4dabc212c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 19 deletions

View file

@ -1583,6 +1583,7 @@
}
.line-num {
&:extend(.unselectable);
width: 1%;
min-width: 50px;
font-family: monospace;
@ -1591,7 +1592,6 @@
white-space: nowrap;
vertical-align: top;
cursor: pointer;
user-select: none;
text-align: right;
background: var(--color-body);
border: 0;
@ -1727,11 +1727,11 @@
background: var(--color-code-bg);
.lines-num {
&:extend(.unselectable);
text-align: right;
color: var(--color-text-light);
width: 1%;
min-width: 50px;
user-select: none;
span.fold {
display: block;
@ -1774,9 +1774,9 @@
}
.lines-type-marker {
&:extend(.unselectable);
width: 10px;
min-width: 10px;
user-select: none;
}
[data-type-marker]::before {
@ -2450,13 +2450,13 @@
}
.segment.language-stats {
&:extend(.unselectable);
padding: 0;
height: 11px;
display: flex;
white-space: nowrap;
width: 100%;
border-radius: 0;
user-select: none;
@media @mediaSm {
display: none;