-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtable.css
More file actions
320 lines (292 loc) · 6.79 KB
/
Copy pathtable.css
File metadata and controls
320 lines (292 loc) · 6.79 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
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
@layer components {
/* GOV UK Base styles */
table,
.table {
border-spacing: 0;
@apply w-full mb-gutter border-collapse;
}
table th,
table td {
padding: 0.632em 1.05em 0.4743em 0;
@apply leading-tight text-smaller text-left border-solid border-0 border-b-1 border-gray-300 align-baseline;
}
thead th {
@apply font-bold;
}
td:last-child,
th:last-child,
.table-field-heading:last-child {
padding-right: 0 !important;
}
table .numeric {
/* Right align table header cells and table cells with a numeric class */
@apply text-right;
}
td.numeric {
@apply font-body;
}
table caption {
@apply text-left;
}
.table-font-xsmall th,
.table-font-xsmall td.table-field-index,
.table-font-xsmall th.table-field-index {
@apply font-bold;
}
.table-font-xsmall td {
@apply font-normal;
}
.table-font-xsmall th,
.table-font-xsmall td {
padding: 0.75em 1.25em 0.5625em 0;
@apply text-small leading-tight;
}
/* NOTIFY TABLE STYLES */
/*! purgecss start ignore */
td {
@apply align-top;
}
.table-heading {
@apply my-gutterHalf mx-0 text-left;
}
.table-row-group {
@apply bg-white odd:bg-gray-100 border-0 border-b-1 border-solid border-gray-300;
}
.dashboard-table .heading-medium {
@apply mb-2;
}
.dashboard-table .table {
@apply table-fixed;
}
.dashboard-table .table-field-headings th {
font-size: 1px;
}
.dashboard-table .table-field-headings-visible th {
@apply pb-2;
}
.dashboard-table .table-row th {
width: 52.5%;
@apply font-normal table-cell;
}
.settings-table table {
@apply mb-2 table-fixed;
}
.settings-table th:first-child {
width: 35%;
}
.settings-table th:last-child {
width: 17.5%;
}
.settings-table td.table-field-left-aligned:first-child div {
white-space: normal;
}
.settings-table td.table-field-left-aligned ul li {
@apply mb-2;
}
.settings-table .table-heading {
@apply mb-8;
}
.table-field-index {
width: 15px;
@apply relative text-smaller leading-tight font-bold;
}
.table-field-index a:before {
content: "";
@apply absolute inset-0;
}
.table-field-index a:focus:before {
z-index: -1;
@apply bg-yellow;
}
.table-field p {
@apply m-0 mb-2;
}
.table-field-error {
padding-left: 7px;
@apply border-0 border-l-4 border-solid border-red;
}
.table-field-noborder {
@apply border-0;
}
.table-field-headings th {
padding: 1px; /* needs some height for the grey border to show */
}
.table-field-headings-visible {
@apply h-auto;
}
.table-field-headings-visible th {
padding: 0.75em 1.25em 0.5625em 0;
}
.table-field-headings th,
.table-field-headings-visible th {
@apply text-smaller leading-tight font-bold align-baseline;
}
.dashboard-table .table-field-heading-first,
.dashboard-table .table-field-headings-first,
.dashboard-table .table-field-headings-visible-first {
width: 52.5%;
}
.table + .table-show-more-link {
margin-top: -30px;
}
.table-field-error-label {
@apply block font-bold text-red;
}
.table-field-invisible-error {
padding-left: 7px;
@apply block border-0 border-l-4 border-solid border-transparent;
}
.table-field-status-default {
@apply text-gray-grey1;
}
.table-field-status-error {
@apply font-bold text-red;
}
.table-field-status-error a:link,
.table-field-status-error a:visited {
@apply text-red;
}
.table-field-status-error .status-hint {
@apply block font-normal text-red mt-2;
}
.table-field-status-yes,
.table-field-status-no {
text-indent: -999em;
background-position: 50% 50%;
@apply block bg-no-repeat bg-[1em];
}
.table-field-status-yes {
@apply bg-tick;
}
.table-field-right-aligned {
@apply text-right;
}
.table-field-heading-right-aligned {
@apply block text-right;
}
.table-field-right-aligned a {
@apply relative;
}
.table-field-right-aligned a:hover {
@apply text-blue-lightblue;
}
.table-field-right-aligned a:active,
.table-field-right-aligned a:focus {
@apply text-black;
}
.table-field-right-aligned a:active:before,
.table-field-right-aligned a:focus:before {
right: -3px;
border-width: 15px 3px 15px 15px;
@apply border-solid border-yellow;
}
.table-empty-message,
.table-no-data {
padding-top: 0.75em;
padding-bottom: 0.5625em;
@apply text-small leading-tight text-gray-grey1 px-0;
}
td.table-empty-message {
border: none;
}
.table-no-data {
@apply mt-4 mb-16;
}
.table-show-more-link {
@apply text-small leading-tight font-normal text-gray-grey1 py-4 px-0 text-center border-0 border-b-1 border-solid border-gray-300 mb-16;
}
a.table-show-more-link {
@apply text-blue;
}
.wide-left-hand-column {
max-width: 560px;
@apply block;
}
.truncate-text {
@apply truncate;
}
.do-not-truncate-text {
white-space: normal !important;
}
.spreadsheet thead {
user-select: none;
}
.spreadsheet .table {
@apply mb-0;
}
.spreadsheet th,
.spreadsheet .table-field-index {
@apply font-bold text-center bg-gray-grey4;
}
.spreadsheet th,
.spreadsheet td {
@apply px-4 border-1 border-solid border-gray-300;
}
.spreadsheet tbody td {
/* 194 is the width of the table * 1/3.5, so the overflow cuts off
// at 3.5 columns wide.
// 11 accounts for the padding of the table cell
*/
min-width: 194px - 11px;
@apply border-t-0;
}
.spreadsheet td:first-child {
min-width: auto;
}
.spreadsheet .fullscreen-fixed-table {
z-index: 1000;
}
.spreadsheet .fullscreen-fixed-table .table-field-heading-first {
@apply bg-gray-grey4;
}
/*
* Responsive Tables
*/
.scrollable-table {
overflow: auto;
scrollbar-color: rgba(175, 185, 195, 1) white;
}
.scrollable-table table {
table-layout: inherit !important;
}
.scrollable-table:focus {
@apply outline-yellow;
}
.scrollable-table table {
margin: 0;
}
/* Scrolling Visual Cue */
.scrollable-table {
background:
linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)),
linear-gradient(to right, rgba(255, 255, 255, 0), #fff 70%) 0 100%,
linear-gradient(
to right,
rgba(175, 185, 195, 0.3) 0,
rgba(175, 185, 195, 0) 100%
),
linear-gradient(
to left,
rgba(175, 185, 195, 0.3) 0,
rgba(175, 185, 195, 0) 100%
)
0 100%;
background-repeat: no-repeat;
background-color: #fff;
background-size:
40px 100%,
40px 100%,
15px 100%,
15px 100%;
background-position:
0 0,
100%,
0 0,
100%;
background-attachment: local, local, scroll, scroll;
}
/*
* END Responsive Tables
*/
/*! purgecss end ignore */
}