blob: 9f2ad755a7e48e71b79a9b5af112aeedf54b1419 (
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
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
|
/* 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-table-header-wrap {
overflow: hidden;
border: 1px solid #aaa;
border-bottom: none;
background: #efefef;
}
.v-table-header table,
.v-table-table {
border-spacing: 0;
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-resizer {
display: block;
height: 1.2em;
float: right;
background: #aaa;
cursor: col-resize;
width: 1px;
overflow: hidden;
}
.v-table-caption-container {
float: right;
overflow: hidden;
white-space: nowrap;
padding-right: 6px;
}
.v-table-header-cell-asc .v-table-caption-container {
background: transparent url(../common/img/sprites.png) no-repeat right 6px;
}
.v-table-header-cell-desc .v-table-caption-container {
background: transparent url(../common/img/sprites.png) no-repeat right -10px;
}
.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 {
border: 0;
margin: 0;
padding: 0;
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-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-ie6 .v-table-column-selector,
.v-ie7 .v-table-column-selector {
position: static;
}
.v-table-focus-slot-left {
border-left: 2px solid #999;
margin-right: -2px;
}
.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-scrollposition {
width: 160px;
background: #eee;
border: 1px solid #aaa;
}
.v-table-scrollposition span {
display: block;
text-align: center;
}
/* row in column selector */
.v-on {
}
.v-off {
color: #ddd;
}
|