summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/valo/shared/_global.scss
diff options
context:
space:
mode:
Diffstat (limited to 'WebContent/VAADIN/themes/valo/shared/_global.scss')
-rw-r--r--WebContent/VAADIN/themes/valo/shared/_global.scss24
1 files changed, 19 insertions, 5 deletions
diff --git a/WebContent/VAADIN/themes/valo/shared/_global.scss b/WebContent/VAADIN/themes/valo/shared/_global.scss
index 7b7e63489a..5c010c128d 100644
--- a/WebContent/VAADIN/themes/valo/shared/_global.scss
+++ b/WebContent/VAADIN/themes/valo/shared/_global.scss
@@ -35,6 +35,24 @@ $valo-global-included: false !default;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
+
+ // Disable text selection by default
+ @include user-select(none);
+
+ // Enable text selection for certain elements
+ input[type="text"],
+ .v-slot > .v-caption,
+ .v-gridlayout-slot > .v-caption,
+ .v-has-caption > .v-caption,
+ .v-formlayout-captioncell > .v-caption,
+ .v-csslayout > .v-caption {
+ @include user-select(text);
+ }
+
+ // Removes clear button from input fields introduced by IE10
+ input::-ms-clear {
+ display: none;
+ }
}
.v-ui {
@@ -56,11 +74,6 @@ $valo-global-included: false !default;
height: 0;
}
- // Removes clear button from input fields introduced by IE10
- input::-ms-clear {
- display: none;
- }
-
.v-drag-element {
z-index: 60000;
// Override any other position properties
@@ -105,6 +118,7 @@ $valo-global-included: false !default;
.v-icon {
cursor: inherit;
+ @include user-select(none);
}
.v-icon,