mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 02:48:09 +08:00
DEV: Apply unselectable
style consistently
This commit is contained in:
parent
fc299bed0d
commit
b2adbead59
@ -69,6 +69,7 @@
|
||||
border-radius: 3px;
|
||||
transition: border linear 0.2s, box-shadow linear 0.2s;
|
||||
li.sortable-placeholder {
|
||||
@include unselectable;
|
||||
padding: 3px 5px 3px 18px;
|
||||
margin: 3px 0 3px 5px;
|
||||
position: relative;
|
||||
@ -77,7 +78,6 @@
|
||||
border: 1px dashed var(--primary-low-mid);
|
||||
border-radius: 3px;
|
||||
background-clip: padding-box;
|
||||
-moz-user-select: none;
|
||||
background-color: transparent;
|
||||
width: 3em;
|
||||
height: 1em;
|
||||
|
@ -170,9 +170,7 @@ $use-visuallyhidden: false !default; // Hide content from browsers, but make it
|
||||
.mfp-arrow,
|
||||
.mfp-preloader,
|
||||
.mfp-counter {
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
@include unselectable;
|
||||
}
|
||||
|
||||
// Hide the image during the loading
|
||||
|
@ -669,6 +669,7 @@ pre {
|
||||
overflow: visible;
|
||||
|
||||
.copy-cmd {
|
||||
@include unselectable;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
@ -676,7 +677,6 @@ pre {
|
||||
font-size: $font-down-2;
|
||||
min-height: 0;
|
||||
font-size: $font-down-2;
|
||||
user-select: none;
|
||||
|
||||
&.copied {
|
||||
.d-icon {
|
||||
|
@ -81,6 +81,7 @@ $breakpoints: (
|
||||
-webkit-user-select: $mode;
|
||||
-moz-user-select: $mode;
|
||||
-ms-user-select: $mode;
|
||||
user-select: $mode;
|
||||
}
|
||||
|
||||
@mixin unselectable {
|
||||
|
@ -1,11 +1,11 @@
|
||||
.select-kit {
|
||||
@include unselectable;
|
||||
border: none;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
user-select: none;
|
||||
|
||||
&.is-disabled {
|
||||
pointer-events: none;
|
||||
|
@ -1,7 +1,7 @@
|
||||
.topic-notifications-button {
|
||||
&.is-loading {
|
||||
@include unselectable;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
|
||||
.d-icon-spinner {
|
||||
margin: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user