forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQTable.sass
More file actions
286 lines (230 loc) · 5.19 KB
/
QTable.sass
File metadata and controls
286 lines (230 loc) · 5.19 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
.q-markup-table
overflow: auto
background: #fff
.q-table
width: 100%
max-width: 100%
border-collapse: separate
border-spacing: 0
thead tr, tbody td
height: 48px
th
font-weight: 500
font-size: 12px
user-select: none
&.sortable
cursor: pointer
&:hover .q-table__sort-icon
opacity: .64
&.sorted .q-table__sort-icon
opacity: .86 !important
&.sort-desc .q-table__sort-icon
transform: rotate(180deg)
th, td
padding: 7px 16px
background-color: inherit
thead, td, th
border-style: solid
border-width: 0
tbody td
font-size: 13px
&__card
color: #000
background-color: #fff
border-radius: $table-border-radius
box-shadow: $table-box-shadow
.q-table__middle
flex: 1 1 auto
.q-table__top,
.q-table__bottom
flex: 0 0 auto
&__container
position: relative
&.fullscreen
max-height: 100%
> div:first-child
border-top-left-radius: inherit
border-top-right-radius: inherit
> div:last-child
border-bottom-left-radius: inherit
border-bottom-right-radius: inherit
> .q-inner-loading
border-radius: inherit !important
&__top
padding: 12px 16px
.q-table__control
flex-wrap: wrap
&__title
font-size: 20px
letter-spacing: .005em
font-weight: 400
&__separator
min-width: 8px !important
&__progress
height: 0 !important
th
padding: 0 !important
border: 0 !important
.q-linear-progress
position: absolute
bottom: 0
&__middle
max-width: 100%
&__bottom
min-height: 50px
padding: 4px 14px 4px 16px
font-size: 12px
.q-table__control
min-height: 24px
&__bottom-nodata-icon
font-size: 200%
margin-right: 8px
&__bottom-item
margin-right: 16px
&__control
display: flex
align-items: center
&__sort-icon
transition: transform $table-transition
opacity: 0
font-size: 120%
&--left, &--center
margin-left: 4px
&--right
margin-right: 4px
&--col-auto-width
width: 1px
&--flat
box-shadow: none
&--bordered
border: 1px solid $table-border-color
&--square
border-radius: 0
&__linear-progress
height: 2px
&--no-wrap
th, td
white-space: nowrap
&--grid
box-shadow: none
border-radius: $generic-border-radius
.q-table__top
padding-bottom: 4px
.q-table__middle
min-height: 2px
margin-bottom: 4px
thead
&, th
border: 0 !important
.q-table__linear-progress
bottom: 0
.q-table__bottom
border-top: 0
.q-table__grid-content
flex: 1 1 auto
&.fullscreen
background: inherit
&__grid-item-card
vertical-align: top
padding: 12px
.q-separator
margin: 12px 0
&__grid-item-row + &__grid-item-row
margin-top: 8px
&__grid-item-title
opacity: .54
font-weight: 500
font-size: 12px
&__grid-item-value
font-size: 13px
&__grid-item
padding: 4px
transition: transform $table-transition
&--selected
transform: scale(.95)
/*
* Separators
*/
.q-table--horizontal-separator, .q-table--cell-separator
thead th, tbody tr:not(:last-child) td
border-bottom-width: 1px
.q-table--vertical-separator, .q-table--cell-separator
td, th
border-left-width: 1px
thead tr:last-child th,
&.q-table--loading tr:nth-last-child(2) th
border-bottom-width: 1px
td:first-child, th:first-child
border-left: 0
.q-table__top
border-bottom: 1px solid $table-border-color
/*
* dense size
*/
.q-table--dense
.q-table__top
padding: 6px 16px
.q-table__bottom
min-height: 33px
.q-table__sort-icon
font-size: 110%
.q-table
th, td
padding: 4px 8px
thead tr, tbody tr, tbody td
height: 28px
th:first-child, td:first-child
padding-left: 16px
th:last-child, td:last-child
padding-right: 16px
.q-table__bottom-item
margin-right: 8px
.q-table__select
.q-field__control, .q-field__native
min-height: 24px
padding: 0
.q-field__marginal
height: 24px
/*
* On light background
*/
.q-table__bottom // @stylint ignore
border-top: 1px solid $table-border-color
.q-table // @stylint ignore
thead, tr, th, td
border-color: $table-border-color
tbody
td
position: relative
&:before, &:after
position: absolute
top: 0
left: 0
right: 0
bottom: 0
pointer-events: none
&:before
background: $table-hover-background
&:after
background: $table-selected-background
tr.selected td:after
content: ''
body.desktop .q-table > tbody > tr:not(.q-tr--no-hover):hover > td:not(.q-td--no-hover):before
content: ''
/*
* On dark background
*/
.q-table__card--dark, .q-table--dark
border-color: $table-dark-border-color
.q-table--dark
.q-table__bottom, thead, tr, th, td
border-color: $table-dark-border-color
tbody
td
&:before
background: $table-dark-hover-background
&:after
background: $table-dark-selected-background
&.q-table--vertical-separator, &.q-table--cell-separator
.q-table__top
border-color: $table-dark-border-color