github-docs 0.0.5 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_layouts/default.html +12 -4
- data/_sass/cherry/_base-normalize.scss +274 -0
- data/_sass/cherry/_buttons.scss +305 -0
- data/_sass/cherry/_columns.scss +220 -0
- data/_sass/cherry/_elements.scss +339 -0
- data/_sass/cherry/_forms-vue-select.scss +250 -0
- data/_sass/cherry/_forms.scss +567 -0
- data/_sass/cherry/_functions.scss +201 -0
- data/_sass/cherry/_index.scss +14 -0
- data/_sass/cherry/_layout.scss +207 -0
- data/_sass/cherry/_modal.scss +82 -0
- data/_sass/cherry/_spacing.scss +56 -0
- data/_sass/cherry/_tooltips.scss +113 -0
- data/_sass/cherry/_typography.scss +90 -0
- data/_sass/cherry/_utilities.scss +552 -0
- data/_sass/cherry/_variables-computed.scss +79 -0
- data/_sass/cherry/_variables.scss +48 -0
- data/_sass/{github-docs.scss → main.scss} +18 -15
- data/_sass/primer-markdown/blob-csv.scss +23 -25
- data/_sass/primer-markdown/code.scss +26 -40
- data/_sass/primer-markdown/headings.scss +5 -19
- data/_sass/primer-markdown/images.scss +1 -19
- data/_sass/primer-markdown/index.scss +112 -1
- data/_sass/primer-markdown/lists.scss +8 -42
- data/_sass/primer-markdown/tables.scss +4 -9
- data/_sass/rouge.scss +16 -8
- data/assets/css/index.scss +9 -7
- data/readme.md +13 -4
- metadata +19 -35
- data/_sass/primer-base/base.scss +0 -84
- data/_sass/primer-base/index.scss +0 -3
- data/_sass/primer-base/normalize.scss +0 -421
- data/_sass/primer-base/typography-base.scss +0 -86
- data/_sass/primer-layout/columns.scss +0 -54
- data/_sass/primer-layout/container.scss +0 -30
- data/_sass/primer-layout/grid-offset.scss +0 -19
- data/_sass/primer-layout/grid.scss +0 -64
- data/_sass/primer-layout/index.scss +0 -4
- data/_sass/primer-markdown/markdown-body.scss +0 -106
- data/_sass/primer-support/index.scss +0 -11
- data/_sass/primer-support/mixins/buttons.scss +0 -160
- data/_sass/primer-support/mixins/layout.scss +0 -58
- data/_sass/primer-support/mixins/misc.scss +0 -29
- data/_sass/primer-support/mixins/typography.scss +0 -84
- data/_sass/primer-support/variables/color-system.scss +0 -114
- data/_sass/primer-support/variables/colors.scss +0 -67
- data/_sass/primer-support/variables/layout.scss +0 -78
- data/_sass/primer-support/variables/misc.scss +0 -40
- data/_sass/primer-support/variables/typography.scss +0 -43
- data/_sass/primer-utilities/animations.scss +0 -184
- data/_sass/primer-utilities/borders.scss +0 -100
- data/_sass/primer-utilities/box-shadow.scss +0 -26
- data/_sass/primer-utilities/colors.scss +0 -106
- data/_sass/primer-utilities/details.scss +0 -18
- data/_sass/primer-utilities/flexbox.scss +0 -52
- data/_sass/primer-utilities/index.scss +0 -13
- data/_sass/primer-utilities/layout.scss +0 -85
- data/_sass/primer-utilities/margin.scss +0 -53
- data/_sass/primer-utilities/padding.scss +0 -54
- data/_sass/primer-utilities/typography.scss +0 -215
- data/_sass/primer-utilities/visibility-display.scss +0 -87
@@ -0,0 +1,220 @@
|
|
1
|
+
$gap-sizes: 0 0.5 1 1.5 2 2.5 3 4 5 6 7 8 9 !default;
|
2
|
+
$col-gap-multiplier: 0.5rem !default; // i.e. 7.5px
|
3
|
+
$col-gap-multiplier-lg: false !default;
|
4
|
+
$col-gap-multiplier-md: false !default;
|
5
|
+
$col-gap-multiplier-sm: false !default;
|
6
|
+
$col-gap-multiplier-xs: false !default;
|
7
|
+
|
8
|
+
/* ---- Columns ---------------------- */
|
9
|
+
|
10
|
+
.cols {
|
11
|
+
margin-right: $col-gap-multiplier * 1.5 * -1;
|
12
|
+
margin-left: $col-gap-multiplier * 1.5* -1;
|
13
|
+
display: flex;
|
14
|
+
flex-wrap: wrap;
|
15
|
+
}
|
16
|
+
.col-none, // flex none
|
17
|
+
.col-initial, // flex initial/0
|
18
|
+
.col, // flex 1
|
19
|
+
.col-1, // 12 columns
|
20
|
+
.col-1-5, // 8 columns
|
21
|
+
.col-2, // 6 columns
|
22
|
+
.col-2-5, // 2.08 columns
|
23
|
+
.col-3,
|
24
|
+
.col-4,
|
25
|
+
.col-5,
|
26
|
+
.col-6,
|
27
|
+
.col-7,
|
28
|
+
.col-8,
|
29
|
+
.col-9,
|
30
|
+
.col-10,
|
31
|
+
.col-11,
|
32
|
+
.col-12 {
|
33
|
+
flex: none;
|
34
|
+
position: relative;
|
35
|
+
min-height: 1px;
|
36
|
+
padding-left: $col-gap-multiplier * 1.5;
|
37
|
+
padding-right: $col-gap-multiplier * 1.5;
|
38
|
+
box-sizing: border-box;
|
39
|
+
}
|
40
|
+
@mixin sizes($pre, $post) {
|
41
|
+
#{$pre}12#{$post} { width: 100%; }
|
42
|
+
#{$pre}11#{$post} { width: 91.6666667%; }
|
43
|
+
#{$pre}10#{$post} { width: 83.33333333%; }
|
44
|
+
#{$pre}9#{$post} { width: 75%; }
|
45
|
+
#{$pre}8#{$post} { width: 66.66666667%; }
|
46
|
+
#{$pre}7#{$post} { width: 58.33333333%; }
|
47
|
+
#{$pre}6#{$post} { width: 50%; }
|
48
|
+
#{$pre}5#{$post} { width: 41.66666667%; }
|
49
|
+
#{$pre}4#{$post} { width: 33.33333333%; }
|
50
|
+
#{$pre}3#{$post} { width: 25%; }
|
51
|
+
#{$pre}2-5#{$post} { width: 20%; }
|
52
|
+
#{$pre}2#{$post} { width: 16.66666667%; }
|
53
|
+
#{$pre}1-5#{$post} { width: 12.5%; } // 8 columns
|
54
|
+
#{$pre}1#{$post} { width: 8.333333333%; }
|
55
|
+
}
|
56
|
+
@mixin cols-responsive-lg($class) {
|
57
|
+
#{$class} {
|
58
|
+
.col-1,
|
59
|
+
.col-1-5,
|
60
|
+
.col-2 {
|
61
|
+
width: 33.33333333%;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
@mixin cols-responsive-md($class) {
|
66
|
+
#{$class} {
|
67
|
+
.col-5,
|
68
|
+
.col-6,
|
69
|
+
.col-7,
|
70
|
+
.col-8,
|
71
|
+
.col-9,
|
72
|
+
.col-10,
|
73
|
+
.col-11,
|
74
|
+
.col-12 {
|
75
|
+
width: 100%;
|
76
|
+
}
|
77
|
+
.col-1,
|
78
|
+
.col-1-5,
|
79
|
+
.col-2,
|
80
|
+
.col-2-5,
|
81
|
+
.col-3,
|
82
|
+
.col-4 {
|
83
|
+
width: 50%;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
@mixin cols-responsive-sm($class) {
|
88
|
+
#{$class} {
|
89
|
+
.col-3,
|
90
|
+
.col-4 {
|
91
|
+
width: 100%;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
@mixin cols-responsive-xs($class) {
|
96
|
+
#{$class} {
|
97
|
+
.col-1,
|
98
|
+
.col-1-5,
|
99
|
+
.col-2,
|
100
|
+
.col-2-5 {
|
101
|
+
width: 100%;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
@include sizes('.col-', '');
|
107
|
+
@include sizes('.print\\:col-', '');
|
108
|
+
.col { flex: 1; }
|
109
|
+
.col-initial { flex: 0; }
|
110
|
+
|
111
|
+
@media screen and (max-width: $breakpoint-lg) {
|
112
|
+
@include cols-responsive-lg('.cols-responsive');
|
113
|
+
@include sizes('.lg\\:cols-', ' > [class*="col"]');
|
114
|
+
@include sizes('.lg\\:print\\:cols-', ' > [class*="col"]');
|
115
|
+
@include sizes('.cols > [class*="lg\\:col-', '"]');
|
116
|
+
@include sizes('.cols > [class*="lg\\:print\\:col-', '"]');
|
117
|
+
}
|
118
|
+
@media screen and (max-width: $breakpoint-md) {
|
119
|
+
@include cols-responsive-md('.cols-responsive');
|
120
|
+
@include sizes('.md\\:cols-', ' > [class*="col"]');
|
121
|
+
@include sizes('.md\\:print\\:cols-', ' > [class*="col"]');
|
122
|
+
@include sizes('.cols > [class*="md\\:col-', '"]');
|
123
|
+
@include sizes('.cols > [class*="md\\:print\\:col-', '"]');
|
124
|
+
}
|
125
|
+
@media screen and (max-width: $breakpoint-sm) {
|
126
|
+
@include cols-responsive-sm('.cols-responsive');
|
127
|
+
@include sizes('.sm\\:cols-', ' > [class*="col"]');
|
128
|
+
@include sizes('.sm\\:print\\:cols-', ' > [class*="col"]');
|
129
|
+
@include sizes('.cols > [class*="sm\\:col-', '"]');
|
130
|
+
@include sizes('.cols > [class*="sm\\:print\\:col-', '"]');
|
131
|
+
}
|
132
|
+
@media screen and (max-width: $breakpoint-xs) {
|
133
|
+
@include cols-responsive-xs('.cols-responsive');
|
134
|
+
@include sizes('.xs\\:cols-', ' > [class*="col"]');
|
135
|
+
@include sizes('.xs\\:print\\:cols-', ' > [class*="col"]');
|
136
|
+
@include sizes('.cols > [class*="xs\\:col-', '"]');
|
137
|
+
@include sizes('.cols > [class*="xs\\:print\\:col-', '"]');
|
138
|
+
}
|
139
|
+
|
140
|
+
/* cols-gap */
|
141
|
+
|
142
|
+
@mixin cols-gap($prefix, $multipler) {
|
143
|
+
@each $i in $gap-sizes {
|
144
|
+
$ii: $i;
|
145
|
+
@if $i == 0.5 { $ii: '0-5'; }
|
146
|
+
@if $i == 1.5 { $ii: '1-5'; }
|
147
|
+
@if $i == 2.5 { $ii: '2-5'; }
|
148
|
+
.#{$prefix}gap-#{$ii},
|
149
|
+
.#{$prefix}cols-gap-#{$ii} {
|
150
|
+
margin-right: -#{$col-gap-multiplier * $i * $multipler};
|
151
|
+
margin-left: -#{$col-gap-multiplier * $i * $multipler};
|
152
|
+
}
|
153
|
+
.#{$prefix}gap-#{$ii} > .col,
|
154
|
+
.#{$prefix}gap-#{$ii} > [class*="col-"],
|
155
|
+
.#{$prefix}cols-gap-#{$ii} > .col,
|
156
|
+
.#{$prefix}cols-gap-#{$ii} > [class*="col-"] {
|
157
|
+
padding-right: #{$col-gap-multiplier * $i * $multipler};
|
158
|
+
padding-left: #{$col-gap-multiplier * $i * $multipler};
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
@include cols-gap('', 1.0);
|
164
|
+
@media screen and (max-width: $breakpoint-lg) {
|
165
|
+
@if ($col-gap-multiplier-lg != false) { @include cols-gap('', $col-gap-multiplier-lg); }
|
166
|
+
@include cols-gap('lg\\:', 1.0);
|
167
|
+
}
|
168
|
+
@media screen and (max-width: $breakpoint-md) {
|
169
|
+
@if ($col-gap-multiplier-md != false) { @include cols-gap('', $col-gap-multiplier-md); }
|
170
|
+
@include cols-gap('md\\:', 1.0);
|
171
|
+
}
|
172
|
+
@media screen and (max-width: $breakpoint-sm) {
|
173
|
+
@if ($col-gap-multiplier-sm != false) { @include cols-gap('', $col-gap-multiplier-sm); }
|
174
|
+
@include cols-gap('sm\\:', 1.0);
|
175
|
+
}
|
176
|
+
@media screen and (max-width: $breakpoint-xs) {
|
177
|
+
@if ($col-gap-multiplier-xs != false) { @include cols-gap('', $col-gap-multiplier-xs); }
|
178
|
+
@include cols-gap('xs\\:', 1.0);
|
179
|
+
}
|
180
|
+
|
181
|
+
/* ---- Text columns ----------------- */
|
182
|
+
|
183
|
+
.text3 {
|
184
|
+
column-count: 3;
|
185
|
+
column-gap: 50px;
|
186
|
+
padding: 0 1px;
|
187
|
+
}
|
188
|
+
.text3 p {
|
189
|
+
margin: 0px;
|
190
|
+
display: inline;
|
191
|
+
}
|
192
|
+
@media (max-width: 880px) {
|
193
|
+
.text3 {
|
194
|
+
column-count: 2;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
@media (max-width: 680px) {
|
198
|
+
.text3 {
|
199
|
+
column-count: 1;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
/* ---- Narrow typo --------------- */
|
204
|
+
|
205
|
+
.typo-narrow p,
|
206
|
+
.typo-narrow ul {
|
207
|
+
width: 70%;
|
208
|
+
}
|
209
|
+
@media (max-width: 1000px) {
|
210
|
+
.typo-narrow p,
|
211
|
+
.typo-narrow ul {
|
212
|
+
width: 88%;
|
213
|
+
}
|
214
|
+
}
|
215
|
+
@media (max-width: 550px) {
|
216
|
+
.typo-narrow p,
|
217
|
+
.typo-narrow ul {
|
218
|
+
width: 100%;
|
219
|
+
}
|
220
|
+
}
|
@@ -0,0 +1,339 @@
|
|
1
|
+
/* ---- Avatar ----------------------- */
|
2
|
+
|
3
|
+
.avatar {
|
4
|
+
display: inline-block;
|
5
|
+
vertical-align: middle;
|
6
|
+
width: 35px;
|
7
|
+
height: 35px;
|
8
|
+
border-radius: 60px;
|
9
|
+
background-position: center;
|
10
|
+
background-size: cover;
|
11
|
+
object-fit: cover;
|
12
|
+
object-position: center center;
|
13
|
+
overflow: hidden;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* ---- Infinite loading ------------- */
|
17
|
+
|
18
|
+
.infinite-status-prompt {
|
19
|
+
padding: 0 !important;
|
20
|
+
}
|
21
|
+
.infinite-loader {
|
22
|
+
display: inline-block;
|
23
|
+
vertical-align: top;
|
24
|
+
width: 18px;
|
25
|
+
height: 18px;
|
26
|
+
margin: 0px;
|
27
|
+
padding: 0;
|
28
|
+
border: 2px solid;
|
29
|
+
border-top-color: transparent;
|
30
|
+
border-left-color: transparent;
|
31
|
+
border-radius: 50%;
|
32
|
+
opacity: 0.9;
|
33
|
+
color: rgba(0, 0, 0, 0.85);
|
34
|
+
color: $primary;
|
35
|
+
background-color: transparent;
|
36
|
+
animation: infinite-loader .9s cubic-bezier(.435,.165,.615,.81) infinite
|
37
|
+
}
|
38
|
+
@keyframes infinite-loader {
|
39
|
+
100% {
|
40
|
+
transform: rotate(360deg)
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
/* ---- NProgress -------------------- */
|
45
|
+
|
46
|
+
#nprogress {
|
47
|
+
/* Make clicks pass-through */
|
48
|
+
// opacity: 0;
|
49
|
+
// animation-name: example;
|
50
|
+
// animation-duration: 0.2s;
|
51
|
+
// animation-delay: 0.2s;
|
52
|
+
// animation-fill-mode: both;
|
53
|
+
pointer-events: none;
|
54
|
+
}
|
55
|
+
@keyframes example {
|
56
|
+
from {opacity: 0;}
|
57
|
+
to {opacity: 1;}
|
58
|
+
}
|
59
|
+
#nprogress .bar {
|
60
|
+
background: $primary;
|
61
|
+
position: fixed;
|
62
|
+
z-index: 1031;
|
63
|
+
top: 0;
|
64
|
+
left: 0;
|
65
|
+
width: 100%;
|
66
|
+
height: 2px;
|
67
|
+
}
|
68
|
+
/* Fancy blur effect */
|
69
|
+
#nprogress .peg {
|
70
|
+
display: block;
|
71
|
+
position: absolute;
|
72
|
+
right: 0px;
|
73
|
+
width: 100px;
|
74
|
+
height: 100%;
|
75
|
+
box-shadow: 0 0 8px $primary, 0 0 4px $primary;
|
76
|
+
opacity: 1.0;
|
77
|
+
transform: rotate(3deg) translate(0px, -4px);
|
78
|
+
}
|
79
|
+
.nprogress-custom-parent {
|
80
|
+
overflow: hidden;
|
81
|
+
position: relative;
|
82
|
+
}
|
83
|
+
.nprogress-custom-parent #nprogress .bar {
|
84
|
+
position: absolute;
|
85
|
+
}
|
86
|
+
|
87
|
+
/* ---- X ---------------------------- */
|
88
|
+
|
89
|
+
.x1 {}
|
90
|
+
.x1,
|
91
|
+
.x2 {
|
92
|
+
width: 34px;
|
93
|
+
height: 34px;
|
94
|
+
display: block;
|
95
|
+
cursor: pointer;
|
96
|
+
position: absolute;
|
97
|
+
top: 0px;
|
98
|
+
right: 0px;
|
99
|
+
}
|
100
|
+
.x1:after,
|
101
|
+
.x1:before,
|
102
|
+
.x2:after,
|
103
|
+
.x2:before {
|
104
|
+
display: block;
|
105
|
+
position: absolute;
|
106
|
+
top: 50%;
|
107
|
+
left: 50%;
|
108
|
+
margin-top: -1px;
|
109
|
+
margin-left: -7px;
|
110
|
+
content: '';
|
111
|
+
width: 14px;
|
112
|
+
height: 2px;
|
113
|
+
border-radius: 8px;
|
114
|
+
-ms-transform-origin: center;
|
115
|
+
transform-origin: center;
|
116
|
+
transition: color ease .2s
|
117
|
+
}
|
118
|
+
.x1:before,
|
119
|
+
.x2:before {
|
120
|
+
-ms-transform: rotate(45deg);
|
121
|
+
transform: rotate(45deg)
|
122
|
+
}
|
123
|
+
.x1:after,
|
124
|
+
.x2:after {
|
125
|
+
-ms-transform: rotate(-45deg);
|
126
|
+
transform: rotate(-45deg)
|
127
|
+
}
|
128
|
+
.x1:before,
|
129
|
+
.x1:after,
|
130
|
+
.x2:before,
|
131
|
+
.x2:after {
|
132
|
+
background-color: #111;
|
133
|
+
box-shadow: 0 0 1px rgba(255,255,255,.12)
|
134
|
+
}
|
135
|
+
.x1:hover:before,
|
136
|
+
.x1:hover:after,
|
137
|
+
.x2:hover:before,
|
138
|
+
.x2:hover:after {
|
139
|
+
width: 16px;
|
140
|
+
margin-left: -8px
|
141
|
+
}
|
142
|
+
|
143
|
+
/* x2 deviations */
|
144
|
+
|
145
|
+
|
146
|
+
.x2:before,
|
147
|
+
.x2:after {
|
148
|
+
margin-top: -2px;
|
149
|
+
margin-left: -8px;
|
150
|
+
width: 17px;
|
151
|
+
height: 2.5px;
|
152
|
+
border-radius: 0px;
|
153
|
+
}
|
154
|
+
.x2:hover:before,
|
155
|
+
.x2:hover:after {
|
156
|
+
width: 19px;
|
157
|
+
margin-left: -9px
|
158
|
+
}
|
159
|
+
|
160
|
+
/* white */
|
161
|
+
|
162
|
+
.x-white:before,
|
163
|
+
.x-white:after {
|
164
|
+
background-color: #fff;
|
165
|
+
box-shadow: none;
|
166
|
+
}
|
167
|
+
|
168
|
+
/* ---- table ------------------------ */
|
169
|
+
|
170
|
+
/* Thanks to Bulma for the following.. */
|
171
|
+
|
172
|
+
$table-color: $text !default;
|
173
|
+
$table-background-color: #fff !default;
|
174
|
+
|
175
|
+
$table-cell-border: 1px solid $grey-lightest !default;
|
176
|
+
$table-cell-border-width: 0 0 1px !default;
|
177
|
+
$table-cell-padding: 0.6em 0.9em !default;
|
178
|
+
$table-cell-heading-color: $text-strong !default;
|
179
|
+
|
180
|
+
$table-head-cell-border-width: 0 0 1px !default;
|
181
|
+
$table-head-cell-color: $text-strong !default;
|
182
|
+
$table-foot-cell-border-width: 1px 0 0 !default;
|
183
|
+
$table-foot-cell-color: $text-strong !default;
|
184
|
+
|
185
|
+
$table-head-background-color: transparent !default;
|
186
|
+
$table-body-background-color: transparent !default;
|
187
|
+
$table-foot-background-color: transparent !default;
|
188
|
+
|
189
|
+
$table-row-hover-background-color: darken($table-background-color, 8%) !default;
|
190
|
+
$table-row-active-background-color: $primary !default;
|
191
|
+
$table-row-active-color: $primary-invert !default;
|
192
|
+
$table-striped-row-even-background-color: #fafafa !default;
|
193
|
+
$table-striped-row-even-hover-background-color: darken($table-striped-row-even-background-color, 8%) !default;
|
194
|
+
|
195
|
+
$table-colors: $app-colors !default;
|
196
|
+
|
197
|
+
.table {
|
198
|
+
background-color: $table-background-color;
|
199
|
+
color: $table-color;
|
200
|
+
td,
|
201
|
+
th,
|
202
|
+
.td,
|
203
|
+
.th {
|
204
|
+
border: $table-cell-border;
|
205
|
+
border-width: $table-cell-border-width;
|
206
|
+
padding: $table-cell-padding;
|
207
|
+
// Colors
|
208
|
+
@each $name, $pair in $table-colors {
|
209
|
+
$color: nth($pair, 1);
|
210
|
+
$color-invert: nth($pair, 2);
|
211
|
+
&.is-#{$name} {
|
212
|
+
background-color: $color;
|
213
|
+
border-color: $color;
|
214
|
+
color: $color-invert;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
// Modifiers
|
218
|
+
&.is-narrow {
|
219
|
+
white-space: nowrap;
|
220
|
+
width: 1%;
|
221
|
+
}
|
222
|
+
&.is-selected {
|
223
|
+
background-color: $table-row-active-background-color;
|
224
|
+
color: $table-row-active-color;
|
225
|
+
a,
|
226
|
+
strong {
|
227
|
+
color: currentColor;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
&.is-vcentered {
|
231
|
+
vertical-align: middle;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
th,
|
235
|
+
.th {
|
236
|
+
color: $table-cell-heading-color;
|
237
|
+
}
|
238
|
+
tr.is-selected,
|
239
|
+
.tr.is-selected {
|
240
|
+
background-color: $table-row-active-background-color;
|
241
|
+
color: $table-row-active-color;
|
242
|
+
a,
|
243
|
+
strong {
|
244
|
+
color: currentColor;
|
245
|
+
}
|
246
|
+
td,
|
247
|
+
th,
|
248
|
+
.td,
|
249
|
+
.th {
|
250
|
+
border-color: $table-row-active-color;
|
251
|
+
color: currentColor;
|
252
|
+
}
|
253
|
+
}
|
254
|
+
thead,
|
255
|
+
.thead {
|
256
|
+
background-color: $table-head-background-color;
|
257
|
+
td,
|
258
|
+
th,
|
259
|
+
.td,
|
260
|
+
.th {
|
261
|
+
border-width: $table-head-cell-border-width;
|
262
|
+
color: $table-head-cell-color;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
tfoot,
|
266
|
+
.tfoot {
|
267
|
+
background-color: $table-foot-background-color;
|
268
|
+
td,
|
269
|
+
th,
|
270
|
+
.td,
|
271
|
+
.th {
|
272
|
+
border-width: $table-foot-cell-border-width;
|
273
|
+
color: $table-foot-cell-color;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
tbody,
|
277
|
+
.tbody {
|
278
|
+
background-color: $table-body-background-color;
|
279
|
+
tr:last-child,
|
280
|
+
.tr:last-child {
|
281
|
+
td,
|
282
|
+
th,
|
283
|
+
.td,
|
284
|
+
.th {
|
285
|
+
border-bottom-width: 0;
|
286
|
+
}
|
287
|
+
}
|
288
|
+
}
|
289
|
+
// Modifiers
|
290
|
+
&.is-bordered {
|
291
|
+
td,
|
292
|
+
th,
|
293
|
+
.td,
|
294
|
+
.th {
|
295
|
+
border-width: 1px;
|
296
|
+
}
|
297
|
+
tr:last-child,
|
298
|
+
.tr:last-child {
|
299
|
+
td,
|
300
|
+
th,
|
301
|
+
.td,
|
302
|
+
.th {
|
303
|
+
border-bottom-width: 1px;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
&.is-full {
|
308
|
+
width: 100%;
|
309
|
+
}
|
310
|
+
&.is-hoverable {
|
311
|
+
tbody tr:not(.is-selected):hover,
|
312
|
+
.tbody .tr:not(.is-selected):hover {
|
313
|
+
background-color: $table-row-hover-background-color;
|
314
|
+
}
|
315
|
+
&.is-striped tbody tr:not(.is-selected):hover,
|
316
|
+
&.is-striped .tbody .tr:not(.is-selected):hover {
|
317
|
+
background-color: $table-row-hover-background-color;
|
318
|
+
&:nth-child(even) {
|
319
|
+
background-color: $table-striped-row-even-hover-background-color;
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
&.is-narrow td,
|
324
|
+
&.is-narrow th,
|
325
|
+
&.is-narrow .td,
|
326
|
+
&.is-narrow .th {
|
327
|
+
padding: 0.25em 0.5em;
|
328
|
+
}
|
329
|
+
&.is-striped tbody tr:not(.is-selected):nth-child(even),
|
330
|
+
&.is-striped .tbody .tr:not(.is-selected):nth-child(even) {
|
331
|
+
background-color: $table-striped-row-even-background-color;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
.table-container {
|
335
|
+
-webkit-overflow-scrolling: touch;
|
336
|
+
overflow: auto;
|
337
|
+
overflow-y: hidden;
|
338
|
+
max-width: 100%;
|
339
|
+
}
|