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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
|
/* Table theme building instructions
*
* Vaadin scroll table is very complex widget with dozens of features. These
* features set some limitations for theme builder. To keep things working, it
* is safest to try to just override values used in default theme and comfort to
* these instructions.
*
* Borders in table header and in table body need to be same width
* - specify vertical borders on .v-table-header-wrap and .v-table-body
*
* Table cells in body:
* - padding/border for cells is to be defined for td elements (class name: .v-table-cell-content)
* - in default theme there are no borders, but they should work. Just set border-right or border-bottom
* - no padding or border is allowed for div inside cells (class name: .v-table-cell-wrapper) element
* - background is allowed for both elements
*
* Table headers:
* - table cells in header contain .v-table-resizer and
* .v-table-caption-container div elements, which are both floated to right
* - to align header caption to body content resizer width + .v-table-caption-container
* padding right should be equal to content cells padding-right and border-right.
* - Possible cell border in header must be themed into column resizer.
*
*/
.v-table {
overflow: hidden;
text-align: left; /* Force default alignment */
}
.v-ie7 .v-table {
overflow: visible;
}
.v-table-header-wrap {
overflow: hidden;
border: 1px solid #aaa;
border-bottom: none;
background: #efefef;
}
.v-table-header table,
.v-table-table {
border-spacing: 0;
border-collapse: separate;
margin: 0;
padding: 0;
border: 0;
}
.v-table-header td {
padding: 0;
}
.v-table-header-cell,
.v-table-header-cell-asc,
.v-table-header-cell-desc {
cursor: pointer;
}
.v-table.v-disabled .v-table-header-cell,
.v-table.v-disabled .v-table-header-cell-asc,
.v-table.v-disabled .v-table-header-cell-desc {
cursor: default;
}
.v-table-footer-wrap {
overflow: hidden;
border: 1px solid #aaa;
border-top: none;
background: #efefef;
}
.v-table-footer table {
border-spacing: 0;
border-collapse: collapse;
margin: 0;
padding: 0;
border: 0;
}
.v-table-footer td {
padding: 0;
border-right: 1px solid #aaa;
}
.v-table-footer-cell {
cursor: pointer;
}
.v-table-footer-container {
float:right;
padding-right:6px;
overflow:hidden;
white-space:nowrap;
}
.v-table-resizer {
display: block;
height: 1.2em;
float: right;
background: #aaa;
cursor: e-resize; /* Opera does not support col-resize, so use e-resize instead */
cursor: col-resize;
width: 1px;
overflow: hidden;
}
.v-table.v-disabled .v-table-resizer {
cursor: default;
}
.v-table-caption-container {
overflow: hidden;
white-space: nowrap;
margin-left: 6px;
}
.v-ie7 .v-table-caption-container-align-right {
margin-left: 0px;
padding-left: 6px;
}
.v-table-caption-container-align-right {
float: right;
}
.v-table-sort-indicator {
width: 0px;
height: 1.2em;
float: right;
}
.v-table-header-cell-asc .v-table-sort-indicator,
.v-table-header-cell-desc .v-table-sort-indicator {
width: 16px;
height: 1.2em;
float: right;
}
.v-table-header-cell-asc .v-table-sort-indicator {
background: transparent url(../common/img/sprites.png) no-repeat right 6px;
}
.v-table-header-cell-desc .v-table-sort-indicator {
background: transparent url(../common/img/sprites.png) no-repeat right -10px;
}
.v-table-caption-container-align-center {
text-align: center;
}
.v-table-caption-container-align-right {
text-align: right;
}
.v-table-caption-container .v-icon,
.v-table-header-drag .v-icon {
vertical-align: middle;
}
.v-table-body {
border: 1px solid #aaa;
}
.v-table-row-spacer {
height: 10px;
overflow: hidden; /* IE hack to allow < one line height divs */
}
.v-table-row,
.v-table-row-odd {
background: #fff;
border: 0;
margin: 0;
padding: 0;
cursor: pointer;
}
.v-table-generated-row {
background: #efefef;
}
.v-table-body-noselection .v-table-row,
.v-table-body-noselection .v-table-row-odd {
cursor: default;
}
.v-table .v-selected {
background: #999;
color: #fff;
}
.v-table-cell-content {
white-space: nowrap;
overflow: hidden;
padding: 0 6px;
border-right: 1px solid #aaa;
}
.v-table-cell-wrapper {
/* Do not specify any margins, paddings or borders here */
white-space: nowrap;
overflow: hidden;
}
.v-table-cell-wrapper-align-center {
text-align: center;
}
.v-table-cell-wrapper-align-right {
text-align: right;
}
.v-table-column-selector {
float: right;
background: transparent url(../common/img/sprites.png) no-repeat 4px -37px;
margin: -1.2em 0 0 0;
height: 1.2em;
width: 14px;
position: relative; /* hide this from IE, it works without it */
cursor: pointer;
}
.v-table.v-disabled .v-table-column-selector {
cursor: default;
}
.v-ie6 .v-table-column-selector,
.v-ie7 .v-table-column-selector {
position: static;
}
.v-table-focus-slot-left {
border-left: 2px solid #999;
float: none;
margin-bottom: -1.2em;
width: auto;
background: transparent;
border-right: 1px solid #aaa;
}
.v-table-focus-slot-right {
border-right: 2px solid #999;
margin-left: -2px;
}
.v-table-header-drag {
position: absolute;
background: #efefef;
border: 1px solid #eee;
opacity: 0.9;
filter: alpha(opacity=90);
margin-top: 20px;
z-index: 30000;
}
.v-table-header-drag .v-icon {
vertical-align: middle;
}
.v-table-scrollposition {
width: 160px;
background: #eee;
border: 1px solid #aaa;
}
.v-table-scrollposition span {
display: block;
text-align: center;
}
.v-table-body:focus,
.v-table-body-wrapper:focus {
outline: none;
}
.v-table-body.focused {
border-color: #388ddd;
}
.v-table-focus .v-table-cell-content {
border-top: 1px dotted #0066bd;
border-bottom: 1px dotted #0066bd;
}
.v-table-focus .v-table-cell-wrapper {
margin-top: -1px;
margin-bottom: -1px;
}
/* row in column selector */
.v-on {
}
.v-off {
color: #ddd;
}
/*************************************
* Drag'n'drop styles
*************************************/
.v-table-drag .v-table-body {
border-color: #1d9dff;
}
.v-table-row-drag-middle .v-table-cell-content {
background-color: #bcdcff;
}
.v-table-row-drag-top .v-table-cell-content {
border-top: 2px solid #1d9dff;
}
.v-table-row-drag-top .v-table-cell-wrapper {
margin-top: -2px; /* compensate the space consumed by border hint */
}
.v-table-row-drag-bottom .v-table-cell-content {
border-bottom: 2px solid #1d9dff;
}
.v-table-row-drag-bottom .v-table-cell-wrapper {
margin-bottom: -2px; /* compensate the space consumed by border hint */
}
.v-table-row-drag-top .v-table-cell-content:first-child:before,
.v-table-row-drag-bottom .v-table-cell-content:first-child:after {
display: block;
content: "";
position: absolute;
width: 6px;
height: 6px;
margin-top: -4px;
margin-left: -6px;
background: transparent url(../common/img/drag-slot-dot.png);
}
.v-ff .v-table-row-drag-bottom .v-table-cell-content:first-child:after,
.v-ie .v-table-row-drag-bottom .v-table-cell-content:first-child:after {
margin-top: -2px;
}
|