-
Notifications
You must be signed in to change notification settings - Fork 0
/
layout.css
104 lines (75 loc) · 1.72 KB
/
layout.css
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
.table-widget {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
grid-template-areas: 'toolbar' 'table';
gap: 16px;
width: 100%;
height: 100%;
}
.toolbar {
grid-area: toolbar;
border-radius: var(--radius-m);
display: flex;
align-items: center;
}
/* Defined by the spreadsheet, contains the table widget */
.spreadsheet {
grid-area: table;
display: grid;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
}
/* Wrapper **within** the table component */
.table-container {
grid-area: table;
border-collapse: collapse;
box-sizing: border-box;
display: grid;
position: relative;
overflow: auto;
}
.table-header {
grid-row: 1;
grid-column: 1 / -1;
display: grid;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
/*position: sticky;*/
/*top: 0;*/
}
.table-body {
grid-column: 1 / -1;
grid-row: 2 / -1;
display: grid;
grid-template-columns: subgrid;
grid-template-rows: subgrid;
}
.table-container > * {
box-sizing: border-box;
}
.table-header-cell {
display: flex;
overflow: hidden;
white-space: nowrap;
text-overflow: clip;
font-weight: var(--table-header-weight);
/*border-top: var(--table-border-width) solid var(--table-border-color);*/
}
.input-modal {
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-rows: repeat(2, auto);
gap: var(--size-4-2);
grid-template-areas:
'input input'
'buttons buttons';
}
.input-modal > input[type="text"] {
grid-area: input;
}
.input-modal > .buttons {
grid-area: buttons;
display: flex;
flex-direction: row-reverse;
}