summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJouni Koivuviita <jouni@vaadin.com>2014-11-14 12:21:26 +0200
committerSauli Tähkäpää <sauli@vaadin.com>2014-11-28 12:15:29 +0200
commit826e5ec7ee80fca1068333c3360eb83442386074 (patch)
treebf93fc8e4aff2275a1bb05a86247e0d17f926c2f /WebContent
parent95fdc0996298713000d60c94195b9446850dc819 (diff)
downloadvaadin-framework-826e5ec7ee80fca1068333c3360eb83442386074.tar.gz
vaadin-framework-826e5ec7ee80fca1068333c3360eb83442386074.zip
Drop indicators in Valo are now working as in Reindeer theme (#14836)
Change-Id: I12014c4329ca629dbfc9226b3b70538d33442690
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/VAADIN/themes/valo/components/_table.scss61
1 files changed, 25 insertions, 36 deletions
diff --git a/WebContent/VAADIN/themes/valo/components/_table.scss b/WebContent/VAADIN/themes/valo/components/_table.scss
index a70532ccfd..019d8673ce 100644
--- a/WebContent/VAADIN/themes/valo/components/_table.scss
+++ b/WebContent/VAADIN/themes/valo/components/_table.scss
@@ -238,6 +238,7 @@ $v-table-background-color: null !default;
border-left: $v-table-border-width solid $border-color;
overflow: hidden;
height: $v-table-row-height;
+ vertical-align: middle;
&:first-child {
border-left: none;
@@ -520,46 +521,28 @@ $v-table-background-color: null !default;
}
}
- .#{$primary-stylename}-row-drag-middle td:first-child:before {
- content: "";
- display: block;
- position: absolute;
- z-index: 1;
- height: $v-table-row-height + $v-table-border-width;
- left: 0;
- right: 0;
- background: $v-focus-color;
- @include opacity(.2);
+ .#{$primary-stylename}-row-drag-middle .#{$primary-stylename}-cell-content {
+ $bg: mix($v-focus-color, $background-color, 20%);
+ background-color: $bg;
+ color: valo-font-color($bg);
}
- .#{$primary-stylename}-row-drag-top td:first-child:before,
- .#{$primary-stylename}-row-drag-bottom td:first-child:after {
- content: "\2022";
- display: block;
- position: absolute;
- height: 2px;
- left: 0;
- right: 0;
- background: $v-focus-color;
- font-size: $v-font-size * 2;
- line-height: 2px;
- color: $v-focus-color;
- text-indent: round($v-font-size/-4);
- text-shadow: 0 0 1px $background-color, 0 0 1px $background-color;
+ .#{$primary-stylename}-row-drag-bottom td.#{$primary-stylename}-cell-content {
+ border-bottom: 2px solid $v-focus-color;
+ height: $v-table-row-height - 2px;
}
- .#{$primary-stylename}-row-drag-top td:first-child:before {
- margin-top: -$v-table-border-width;
+ .#{$primary-stylename}-row-drag-bottom .#{$primary-stylename}-cell-wrapper {
+ margin-bottom: -2px;
}
- .v-ff & .#{$primary-stylename}-row-drag-top td:first-child:before,
- .v-ff & .#{$primary-stylename}-row-drag-bottom td:first-child:after {
- line-height: 1px;
+ .#{$primary-stylename}-row-drag-top td.#{$primary-stylename}-cell-content {
+ border-top: 2px solid $v-focus-color;
+ height: $v-table-row-height - 2px + $v-table-border-width;
}
- .v-ie & .#{$primary-stylename}-row-drag-top td:first-child:before,
- .v-ie & .#{$primary-stylename}-row-drag-bottom td:first-child:after {
- line-height: 0;
+ .#{$primary-stylename}-row-drag-top .#{$primary-stylename}-cell-wrapper {
+ margin-top: -1px;
}
@@ -700,6 +683,11 @@ $v-table-background-color: null !default;
border-top: none;
border-bottom: none;
}
+
+ .#{$primary-stylename}-row-drag-top .#{$primary-stylename}-cell-content,
+ .#{$primary-stylename}-row-drag-bottom .#{$primary-stylename}-cell-content {
+ height: $v-table-row-height - 1px;
+ }
}
@@ -814,10 +802,6 @@ $v-table-background-color: null !default;
margin-top: round($row-height/-2);
}
- .#{$primary-stylename}-row-drag-middle td:first-child:before {
- height: $row-height + $v-table-border-width;
- }
-
&.v-treetable {
.#{$primary-stylename}-cell-wrapper {
padding-left: 0;
@@ -839,4 +823,9 @@ $v-table-background-color: null !default;
padding-right: $cell-padding-horizontal;
}
}
+
+ .#{$primary-stylename}-row-drag-top .#{$primary-stylename}-cell-content,
+ .#{$primary-stylename}-row-drag-bottom .#{$primary-stylename}-cell-content {
+ height: $row-height - 1px;
+ }
}