summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/base/grid/grid.scss
blob: 69b293e26e73b8625b6bf2412b97255016e1063b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@mixin base-grid($primaryStyleName : v-grid) {
	@include base-escalator($primaryStyleName);

	.#{$primaryStyleName} {

		th {
			position: relative;
		}

		th.sort-asc:after {
			content: "\25B2" attr(sort-order);
			position: absolute;
			right: 5px;
		}

		th.sort-desc:after {
			content: "\25BC" attr(sort-order);
			position: absolute;
			right: 5px;
		}

		.#{$primaryStyleName}-cell-active {
			border-color: blue;
		}

		.#{$primaryStyleName}-header-active {
			background: lightgray;
		}

		.#{$primaryStyleName}-row-active > td {
			background: rgb(244,244,244);
		}
	}

	.#{$primaryStyleName}-row-selected > td {
		background: lightblue;
	}

	.#{$primaryStyleName}-editor-row {

		position: absolute;
		overflow-y: visible;
		background: #EEE;
		box-shadow: 0 0 5px;

		& > div {
			position: absolute;
			box-sizing: border-box;
			border: 1px solid #CCC;
		}

		.v-editor-row-save,
		.v-editor-row-cancel {
			position: absolute;
		}
	}
}