29 lines
612 B
CSS
29 lines
612 B
CSS
/* Disable text selection across the app by default (desktop-app feel). */
|
|
html,
|
|
body,
|
|
#app {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
/* Allow selection where it is genuinely useful: text inputs, editable
|
|
regions, and any element explicitly opted in via the `selectable` class. */
|
|
input,
|
|
textarea,
|
|
select,
|
|
[contenteditable='true'],
|
|
[contenteditable=''],
|
|
.selectable {
|
|
-webkit-user-select: text;
|
|
-moz-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
input:placeholder-shown,
|
|
textarea:placeholder-shown {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
user-select: none;
|
|
}
|