UNPKG

1.21 kBtext/stylusView Raw
1/**
2 * Table's default style
3 */
4
5@import 'config'
6
7table.TF
8 font-family $font-family
9 border-spacing 0
10 border 0
11
12 th
13 height $th-height
14 margin 0
15 background-color $th-bg-color
16 border-bottom 1px solid $th-bottom-border-color
17 border-top 1px solid $th-top-border-color
18 border-left 1px solid $th-left-border-color
19 border-right 1px solid $th-right-border-color
20 padding 0.1em 0.7em
21 color $th-font-color
22 &:last-child
23 border-right 1px solid $th-left-border-color
24
25 td
26 margin 0
27 padding $padding
28 border-bottom 1px solid $td-border-color
29 text-overflow ellipsis
30
31 // responsive
32 &.resp
33 display block
34 overflow-x auto
35 overflow-y hidden
36
37 .sort-arrow
38 position initial
39
40 // stick headers
41 &.sticky
42 th
43 position sticky
44 top -1px