forked from qyen/ToPivotTable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSite.less
133 lines (107 loc) · 3.18 KB
/
Site.less
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
body {
padding-top: 50px;
padding-bottom: 20px;
}
/* Set padding to keep content from hitting the edges */
.body-content {
padding-left: 15px;
padding-right: 15px;
}
/* Override the default bootstrap behavior where horizontal description lists
will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
white-space: normal;
}
/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
max-width: 280px;
}
table.pivot {
display: table;
border-collapse: separate;
border-spacing: 0px;
@ColHeaderBaseColor: #1E5799;
@RowHeaderBaseColor: #608060;
@BorderColor: #ddd;
@measureTitleColor: #b0d0d0;
.number {
text-align: right;
}
.rowtitle {
.gradientCell(darken(@RowHeaderBaseColor,10%));
}
th, td {
padding: 5px;
white-space: nowrap;
}
.cornerHeader {
background-color: white;
}
.gradientCell(@CellBaseColor) {
color: white;
background: @CellBaseColor;
background: -moz-linear-gradient(top, @CellBaseColor 0%, darken(@CellBaseColor,10%) 60%, lighten(@CellBaseColor,10%) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, @CellBaseColor 0%, darken(@CellBaseColor,10%) 60%, lighten(@CellBaseColor,10%) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, @CellBaseColor 0%, darken(@CellBaseColor,10%) 60%, lighten(@CellBaseColor,10%) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
}
.headerRowMixin(@ColHeaderBGColor: @ColHeaderBaseColor) {
th {
color: white;
border-right: #ccc 1px solid;
border-bottom: #ccc 1px solid;
}
.coltitle {
background-color: darken(@ColHeaderBGColor,5%);
}
.cell {
.gradientCell(@ColHeaderBGColor);
}
.colGrandTotal {
.gradientCell(darken(@ColHeaderBGColor,10%));
}
}
tr.headerRow:nth-child(1) {
.headerRowMixin(@ColHeaderBaseColor)
}
tr.headerRow:nth-child(2) {
.headerRowMixin(lighten(@ColHeaderBaseColor,10%));
}
tr.headerRow:nth-child(3) {
.headerRowMixin(lighten(@ColHeaderBaseColor,20%));
}
tr.headerRow:nth-child(4) {
.headerRowMixin(lighten(@ColHeaderBaseColor,30%));
}
.measureTitle {
.gradientCell(@measureTitleColor);
white-space: nowrap;
}
tr.dataRow {
td, th {
border-bottom: @BorderColor 1px solid;
}
&:hover {
background-color: #eee;
}
th.cell {
vertical-align: top;
border-right: #ccc 1px solid;
border-bottom: #ccc 1px solid;
&.ch-0 {
.gradientCell(lighten(@RowHeaderBaseColor,10%));
}
&.ch-1 {
.gradientCell(lighten(@RowHeaderBaseColor,20%));
}
&.ch-2 {
.gradientCell(lighten(@RowHeaderBaseColor,30%));
}
&.GrandTotal {
.gradientCell(darken(@RowHeaderBaseColor,10%));
}
}
}
}