Gridmvc.less
3.57 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/***
* Grid.Mvc stylesheet http://gridmvc.codeplex.com/
* This file contains default styles for Grid.Mvc.
*/
// Variables
@filterwidth: 22px;
@filterheight: 22px;
@filtertop: 14px;
@filtetleft: 8px;
@headertextmargin: 20px;
@filtercleartextmargin: 26px;
@dropdownleft: -96px;
@dropdowntop: 18px;
.boxshadow { box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
/* Grid */
table.grid-table { margin: 0; }
table.grid-table .grid-wrap { padding: 0; position: relative; }
table.grid-table .grid-empty-text { color: #606060; }
/* Grid headers */
table.grid-table .grid-header { position: relative; }
table.grid-table .grid-header .sorted-asc .grid-sort-arrow:after { content: " \2193"; }
table.grid-table .grid-header .sorted-desc .grid-sort-arrow:after { content: " \2191"; }
table.grid-table .grid-header > .grid-header-title { width: 100%; margin-left: @headertextmargin; white-space: nowrap; }
/* Grid body */
table.grid-table tr.grid-row-selected td { background: rgba(0, 169, 255, 0.1) !important; /*color: black;*/ }
table.grid-table tr.grid-row-selected a { /*color: black;*/ }
/* Grid filtering */
input.grid-filter-input { }
table.grid-table .grid-filter { float: left; position: absolute; width: @filterwidth; height: @filterheight; top: @filtertop; left: @filtetleft; }
table.grid-table .grid-filter-btn { cursor: pointer; display: block; width: @filterwidth; height: @filterheight;
background-repeat: no-repeat;
background-position: 0 -2px;
background-image: url('/content/img/filter-off.png');
background-image: -webkit-image-set(
url("/content/img/filter-off.png") 1x,
url("/content/img/filter-off@2x.png") 2x
);
}
table.grid-table .grid-filter-btn.filtered {
background-image: url('/content/img/filter-on.png');
background-image: -webkit-image-set(url("/content/img/filter-on.png") 1x, url("/content/img/filter-on@2x.png") 2x);
}
table.grid-table .grid-filter-buttons { padding: 0; }
table.grid-table .grid-filter-datepicker { font-size: 12px; }
table.grid-table .grid-filter-datepicker table td { padding: 1px!important; }
table.grid-table .grid-filter-datepicker .ui-datepicker { width: auto; }
table.grid-table .grid-dropdown-inner ul.menu-list li a.grid-filter-clear { white-space: nowrap; padding-left: @filtercleartextmargin;
background-image: url('/content/img/filter-clear.png');
background-image: -webkit-image-set(url("/content/img/filter-clear.png") 1x, url("/content/img/filter-clear@2x.png") 2x);
background-position: 3px center; background-repeat: no-repeat; }
table.grid-table .grid-filter-choose.choose-selected { background-color: white!important; cursor: default; color: #999; }
table.grid-table .grid-popup-additional { padding: 3px 0 0 0; }
/* POP-UP */
.grid-dropdown { font-weight: normal; left: @dropdownleft; top: @dropdowntop !important; min-width: 180px; .boxshadow }
.grid-dropdown-arrow {
background-repeat: no-repeat;
background-image: url('/content/img/dropdown-arrow.png');
background-image: -webkit-image-set(
url("/content/img/dropdown-arrow.png") 1x,
url("/content/img/dropdown-arrow@2x.png") 2x
);;
height: 8px; left: 99px; position: absolute; top: -8px; width: 14px; }
.grid-dropdown-inner { padding: 5px 7px; }
.grid-dropdown ul.menu-list { list-style-type: none; margin: 3px 0 0 0; padding: 0; }
.grid-dropdown ul.menu-list li a { text-decoration: none; background-position: 6px center; background-repeat: no-repeat; display: block; padding: 4px 5px; }
.grid-dropdown ul.menu-list li a:hover { background-color: #EEE; text-decoration: none; }