/
header.less
175 lines (138 loc) · 3.45 KB
/
header.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
.ui-grid-top-panel-background {
.gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
}
@topPanelRadius: @gridBorderRadius - @gridBorderWidth;
.ui-grid-header {
border-bottom: 1px solid @borderColor;
box-sizing: content-box;
}
.ui-grid-top-panel {
position: relative;
// border-bottom: 1px solid @borderColor; // #D4D4D4
overflow: hidden; // Disable so menus show up
font-weight: bold;
// .gradient(@headerBackgroundColor, @headerGradientStart, @headerGradientStop);
.ui-grid-top-panel-background;
.border-radius(@topPanelRadius, 0, 0, @topPanelRadius);
}
.ui-grid-header-viewport {
overflow: hidden; // Disable so menus show up
}
.ui-grid-header-canvas {
position: relative;
// Clearfix for floating header cells
&:before, &:after {
content: "";
display: table;
line-height: 0;
}
&:after {
clear:both;
}
// .border-radius(@gridBorderRadius, 0, 0, @gridBorderRadius);
}
.ui-grid-header-cell {
position: relative;
box-sizing: border-box;
float: left;
top: 0;
bottom: 0;
background-color: inherit;
border-right: @gridBorderWidth solid;
border-color: @headerVerticalBarColor;
&:last-child {
border-right: 0;
}
.user-select(none);
// Default to width 0 so header height can calculate right. Otherwise
// the header cells will flow onto the next line of the header container
// and cause the header height to be calculated as twice the height
// it should be. The column widths are calculated dynamically
width: 0;
.sortable {
cursor: pointer;
}
}
// Make vertical bar in header row fill the height of the cell completely
.ui-grid-header .ui-grid-vertical-bar {
top: 0;
bottom: 0;
}
.ui-grid-column-menu-button {
position: absolute;
right: @gridBorderWidth; // So it doesn't overlay the vertical bar
top: 0;
// bottom: 0;
// .ui-grid-top-panel-background;
.ui-grid-icon-angle-down {
vertical-align: sub;
}
}
.ui-grid-column-menu-button-last-col {
margin-right: 25px;
}
.ui-grid-column-menu {
position: absolute;
}
/* Slide up/down animations */
.ui-grid-column-menu .ui-grid-menu .ui-grid-menu-mid {
&.ng-hide-add, &.ng-hide-remove {
.transition(all, 0.05s, linear);
display: block !important;
}
&.ng-hide-add.ng-hide-add-active,
&.ng-hide-remove {
.transform(translateY(-100%));
}
&.ng-hide-add,
&.ng-hide-remove.ng-hide-remove-active {
.transform(translateY(0));
}
}
/* Slide up/down animations */
.ui-grid-menu-button .ui-grid-menu .ui-grid-menu-mid {
&.ng-hide-add, &.ng-hide-remove {
.transition(all, 0.05s, linear);
display: block !important;
}
&.ng-hide-add.ng-hide-add-active,
&.ng-hide-remove {
.transform(translateY(-100%));
}
&.ng-hide-add,
&.ng-hide-remove.ng-hide-remove-active {
.transform(translateY(0));
}
}
.ui-grid-filter-container {
padding: 4px 10px;
position: relative;
.ui-grid-filter-button {
position: absolute;
top: 0;
bottom: 0;
right: 0;
[class^="ui-grid-icon"] {
position: absolute;
top: 50%;
line-height: 32px;
margin-top: -16px;
right: 10px;
opacity: 0.66;
&:hover {
opacity: 1;
}
}
}
}
input[type="text"].ui-grid-filter-input {
padding: 0;
margin: 0;
border: 0;
width: 100%;
border: @gridBorderWidth solid @borderColor;
.border-radius(@gridBorderRadius);
&:hover {
border: @gridBorderWidth solid @borderColor;
}
}