Re-enable for labels, captions, tables and text inputs.
Removed all unnecessary user-select: none; declarations since the top
level declaration will affect the whole dom tree.
Change-Id: I2e74b749340c8649d3b0778d62acafecf878685d
}
border-bottom-color: first-color(valo-border($color: $v-panel-background-color));
cursor: pointer;
- @include user-select(none);;
&:hover:before,
&:active:before {
@mixin valo-datefield-popup-style {
@include valo-overlay-style;
- @include user-select(none);
-
- margin-top: ceil($v-unit-size/8) !important;
- cursor: default;
+ margin-top: ceil($v-unit-size/8) !important;
+ cursor: default;
width: auto;
table {
[draggable=true] {
-khtml-user-drag: element;
-webkit-user-drag: element;
- @include user-select(none);
}
.#{$primary-stylename}.v-active-drag-source {
@mixin valo-label ($primary-stylename: v-label, $include-additional-styles: contains($v-included-additional-styles, label)) {
+ .#{$primary-stylename} {
+ @include user-select(text);
+ }
+
.#{$primary-stylename}-undef-w {
white-space: nowrap;
}
.#{$primary-stylename}-body {
border: $v-table-border-width solid $border-color;
+ @include user-select(text);
}
.#{$primary-stylename}-table {
@mixin valo-tabsheet-tabcontainer-style ($primary-stylename: v-tabsheet) {
position: relative;
- @include user-select(none);
@include box-sizing(border-box);
&:before {
@if contains($states, normal) {
@include appearance(none);
+ @include user-select(text);
margin: 0;
font: inherit;
font-size: $font-size;
.#{$primary-stylename} {
position: relative;
white-space: nowrap;
- @include user-select(none);
&:focus {
outline: none;
}
.#{$primary-stylename}-header {
- @include user-select(none);
cursor: move;
line-height: $v-unit-size - 1px;
padding-left: round($v-unit-size/3);
-moz-osx-font-smoothing: grayscale;
display: inline-block;
text-align: center;
- @include user-select(none);
}
}
-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 {
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
.v-icon {
cursor: inherit;
+ @include user-select(none);
}
.v-icon,
@mixin valo-tappable {
- @include user-select(none);
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
cursor: pointer;