|
1 | | -$table-border ?= 1px solid #d0d0d0 |
2 | | -$table-head-border ?= 2px solid #d0d0d0 |
| 1 | +$table-font-size ?= .8rem |
3 | 2 | $table-highlight-color ?= #f2f2f2 |
| 3 | +$table-color ?= $grey-8 |
4 | 4 |
|
5 | | -table |
6 | | - border-collapse collapse |
7 | | - border-spacing 0 |
8 | | - display table |
| 5 | +table.quasar-table |
| 6 | + position relative |
9 | 7 | border 0 |
10 | | - width 100% |
| 8 | + border-collapse collapse |
| 9 | + font-size $table-font-size |
| 10 | + background-color white |
| 11 | + color $table-color |
11 | 12 |
|
12 | | - &.bordered |
13 | | - border $table-border |
| 13 | + &.bordered, &.cell-delimiter |
| 14 | + border 1px solid rgba(0, 0, 0, .12) |
| 15 | + &.cell-delimiter |
14 | 16 | th, td |
15 | | - border-right $table-border |
16 | | - |
17 | | - &.inner-delimiter, &.bordered |
| 17 | + border-right 1px solid rgba(0, 0, 0, .12) |
| 18 | + &.row-delimiter, &.cell-delimiter |
18 | 19 | tr |
19 | 20 | border-bottom $table-border |
20 | | - |
21 | | - thead |
22 | | - border-bottom $table-head-border |
23 | | - |
24 | | - td, th |
25 | | - padding 0 |
26 | | - border 0 |
27 | | - padding 15px 5px |
28 | | - display table-cell |
29 | | - text-align left |
30 | | - vertical-align middle |
31 | | - |
32 | | - &.compact td |
33 | | - padding 5px |
34 | | - |
35 | | - &.centered |
36 | 21 | th, td |
37 | | - text-align center |
| 22 | + border-bottom 1px solid rgba(0, 0, 0, .12) |
38 | 23 |
|
39 | 24 | &.striped |
40 | | - > tbody > tr |
| 25 | + tbody tr |
41 | 26 | &:nth-child(odd) |
42 | 27 | background $table-highlight-color |
43 | | - > td |
| 28 | + td |
44 | 29 | border-radius 0 |
| 30 | + th |
| 31 | + border-bottom 2px solid rgba(0, 0, 0, .12) |
| 32 | + |
| 33 | + thead |
| 34 | + th |
| 35 | + padding 12px 18px |
| 36 | + position relative |
| 37 | + vertical-align bottom |
| 38 | + text-overflow ellipsis |
| 39 | + font-weight 700 |
| 40 | + line-height 24px |
| 41 | + letter-spacing 0 |
| 42 | + height 48px |
| 43 | + font-size 12px |
| 44 | + color rgba(0, 0, 0, .54) |
| 45 | + text-align left |
| 46 | + &:first-of-type |
| 47 | + padding-left 24px |
| 48 | + &:last-of-type |
| 49 | + padding-right 24px |
| 50 | + tbody |
| 51 | + tr |
| 52 | + position relative |
| 53 | + height 48px |
| 54 | + td |
| 55 | + position relative |
| 56 | + height 48px |
| 57 | + padding 12px 18px |
| 58 | + vertical-align middle |
| 59 | + text-align left |
| 60 | + &:first-of-type |
| 61 | + padding-left 24px |
| 62 | + &:last-of-type |
| 63 | + padding-right 24px |
| 64 | + |
| 65 | + &.compact |
| 66 | + th |
| 67 | + padding-left 5px |
| 68 | + padding-right 5px |
| 69 | + td |
| 70 | + padding 5px |
45 | 71 |
|
46 | | -body.desktop table.highlight |
47 | | - > tbody > tr, th |
48 | | - transition background .25s ease |
| 72 | +body.desktop table.quasar-table.highlight |
| 73 | + tbody tr, th |
| 74 | + transition all .28s ease-in |
49 | 75 | &:hover |
50 | 76 | background darken($table-highlight-color, 5%) !important |
0 commit comments