-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjsViewHKL.css
More file actions
226 lines (218 loc) · 7.12 KB
/
Copy pathjsViewHKL.css
File metadata and controls
226 lines (218 loc) · 7.12 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
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
/*
* =================================================================
*
* 16.08.17 <-- Date of Last Modification.
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* -----------------------------------------------------------------
*
* **** Project : jsViewHKL - javascript-based
* ~~~~~~~~~
* **** Content : Styling of tables, divs ,etc.
* ~~~~~~~~~
*
* **** Author : Junho Choi (Eton College, Eton)
* ~~~~~~~~~
*
* =================================================================
*/
/*
div {
padding:10px;
width:600px;
background:#fff;
}
.tabs li {
list-style:none;
display:inline;
}
.tabs a {
padding:10px 20px;
display:inline-block;
background:#66cccc;
color:#fff;
text-decoration:none;
font-family: Arial;
}
.tabs a.active {
background:#fff;
color:#000;
}
*/
.table-blue {
font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
width : 100%;
border-collapse : collapse;
text-align : left;
padding : 5px 9px 4px 9px;
border : 1px solid #488090;
box-shadow : 5px 5px 6px #888888;
}
.table-blue-hh {
font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size : 1em;
font-style : italic;
text-align : left;
vertical-align : middle;
border : 1px solid #488090;
padding : 5px 9px 4px 9px;
background-color: #5d9bd0;
color : #ffffff;
white-space : nowrap;
}
.table-blue-vh {
font-family : "Trebuchet MS", Arial, Helvetica, sans-serif;
font-size : 1em;
font-style : italic;
text-align : left;
vertical-align : middle;
border : 1px solid #488090;
padding : 5px 9px 4px 9px;
background-color: #5d9bd0;
color : #ffffff;
white-space : nowrap;
}
.table-blue-td, .table-blue td {
font-size : 1em;
font-family : "Courier";
text-decoration : none;
font-weight : normal;
font-style : normal;
text-align : left;
vertical-align : middle;
border : 1px solid #488090;
padding : 3px 9px 2px 9px;
}
.table-blue-alt {
font-size : 1em;
font-family : "Courier";
text-decoration : none;
font-weight : normal;
font-style : normal;
text-align : center;
vertical-align : middle;
border : 1px solid #488090;
padding : 5px 9px 4px 9px;
background-color: #EAF2D3;
}
.scrollingtable {
box-sizing : border-box;
display : inline-block;
vertical-align : middle;
overflow : hidden;
width : auto; /*if you want a fixed width, set it here, else set to auto*/
min-width : 0/*100%*/; /*if you want a % width, set it here, else set to 0*/
height : 188px/*100%*/; /*set table height here; can be fixed value or %*/
min-height : 0/*104px*/; /*if using % height, make this large enough to fit scrollbar arrows + caption + thead*/
font-family : Verdana, Tahoma, sans-serif;
font-size : 15px;
line-height : 20px;
padding : 20px 0 20px 0; /*need enough padding to make room for caption*/
text-align : left;
}
.scrollingtable * {box-sizing: border-box;}
.scrollingtable > div {
position : relative;
border-top : 1px solid black;
height : 100%;
padding-top : 20px; /*this determines column header height*/
background : #5d9bd0; /*header row background color*/
}
.scrollingtable > div:before {
top : 0;
/*background: cornflowerblue; /*header row background color*/
}
.scrollingtable > div:before,
.scrollingtable > div > div:after {
content : "";
position : absolute;
z-index : -1;
width : 100%;
height : 100%;
left : 0;
}
.scrollingtable > div > div {
min-height : 0/*43px*/; /*if using % height, make this large enough to fit scrollbar arrows*/
max-height : 100%;
overflow : scroll/*auto*/; /*set to auto if using fixed or % width; else scroll*/
overflow-x : hidden;
border : 1px solid black; /*border around table body*/
}
.scrollingtable > div > div:after {background: white;} /*match page background color*/
.scrollingtable > div > div > table {
width : 100%;
border-spacing : 0;
margin-top : -20px; /*inverse of column header height*/
/*margin-right: 17px;*/ /*uncomment if using % width*/
}
.scrollingtable > div > div > table > caption {
position : absolute;
top : -20px; /*inverse of caption height*/
margin-top : -1px; /*inverse of border-width*/
width : 100%;
font-weight : bold;
text-align : center;
}
.scrollingtable > div > div > table > * > tr > * {padding: 0;}
.scrollingtable > div > div > table > thead {
vertical-align : bottom;
white-space : nowrap;
text-align : center;
color : white;
font-style : italic;
}
.scrollingtable > div > div > table > thead > tr > * > div {
display : inline-block;
padding : 0 6px 0 6px; /*header cell padding*/
}
.scrollingtable > div > div > table > thead > tr > :first-child:before {
content : "";
position : absolute;
top : 0;
left : 0;
height : 20px; /*match column header height*/
border-left : 1px solid black; /*leftmost header border*/
}
.scrollingtable > div > div > table > thead > tr > * > div[label]:before,
.scrollingtable > div > div > table > thead > tr > * > div > div:first-child,
.scrollingtable > div > div > table > thead > tr > * + :before {
position : absolute;
top : 0;
white-space : pre-wrap;
/*background: cornflowerblue; /*header row background color*/
/*color: white; /*header row font color*/
/* delete: background: blue; /*match page background color*/
}
.scrollingtable > div > div > table > thead > tr > * > div[label]:before,
.scrollingtable > div > div > table > thead > tr > * > div[label]:after {content: attr(label);}
.scrollingtable > div > div > table > thead > tr > * + :before {
content : "";
display : block;
min-height : 20px; /*match column header height*/
padding-top : 1px;
border-left : 1px solid black; /*borders between header cells*/
}
.scrollingtable .scrollbarhead {float: right;}
.scrollingtable .scrollbarhead:before {
position : absolute;
width : 100px;
top : -1px; /*inverse border-width*/
/*background: white; /*match page background color*/
}
.scrollingtable > div > div > table > tbody > tr:after {
content : "";
display : table-cell;
position : relative;
padding : 0;
border-top : 1px solid black;
top : -1px; /*inverse of border width*/
}
.scrollingtable > div > div > table > tbody {vertical-align: top;}
.scrollingtable > div > div > table > tbody > tr {background: white;}
.scrollingtable > div > div > table > tbody > tr > * {
border-bottom : 1px solid black;
padding : 0 6px 0 6px;
height : 20px; /*match column header height*/
}
.scrollingtable > div > div > table > tbody:last-of-type > tr:last-child > * {border-bottom: none;}
.scrollingtable > div > div > table > tbody > tr:nth-child(even) {background: gainsboro;} /*alternate row color*/
.scrollingtable > div > div > table > tbody > tr > * + * {border-left: 1px solid black;} /*borders between body cells*/