forked from jgthms/bulma
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.sass
More file actions
82 lines (77 loc) · 1.75 KB
/
Copy pathtable.sass
File metadata and controls
82 lines (77 loc) · 1.75 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
$table: $grey-darker !default
$table-background: $white !default
$table-border: $grey-lighter !default
$table-head: $grey !default
$table-row-hover-background: $white-bis !default
$table-row-active-background: $primary !default
$table-row-active: $primary-invert !default
$table-row-even-background: $white-bis !default
$table-row-even-hover-background: $white-ter !default
.table
background-color: $table-background
color: $table
margin-bottom: 1.5rem
width: 100%
td,
th
border: 1px solid $table-border
border-width: 0 0 1px
padding: 0.5em 0.75em
vertical-align: top
// Modifiers
&.is-narrow
white-space: nowrap
width: 1%
th
color: $text-strong
text-align: left
tr
&:hover
background-color: $table-row-hover-background
&.is-selected
background-color: $table-row-active-background
color: $table-row-active
a,
strong
color: currentColor
td,
th
border-color: $table-row-active
color: currentColor
thead
td,
th
border-width: 0 0 2px
color: $table-head
tfoot
td,
th
border-width: 2px 0 0
color: $table-head
tbody
tr
&:last-child
td,
th
border-bottom-width: 0
// Modifiers
&.is-bordered
td,
th
border-width: 1px
tr
&:last-child
td,
th
border-bottom-width: 1px
&.is-narrow
td,
th
padding: 0.25em 0.5em
&.is-striped
tbody
tr
&:nth-child(even)
background-color: $table-row-even-background
&:hover
background-color: $table-row-even-hover-background