@stackoverflow/stacks 1.6.7 → 1.7.1

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.
@@ -1,214 +0,0 @@
1
- a,
2
- .s-link {
3
- text-decoration: none;
4
- color: var(--theme-link-color);
5
- cursor: pointer;
6
- user-select: auto;
7
-
8
- .highcontrast-mode({
9
- text-decoration: underline;
10
- });
11
-
12
- &.s-link__visited:visited {
13
- color: var(--theme-link-color-visited);
14
- }
15
-
16
- &:hover,
17
- &.s-link__visited:hover,
18
- &:active,
19
- &.s-link__visited:active {
20
- color: var(--theme-link-color-hover);
21
- }
22
-
23
- &.s-link__grayscale {
24
- color: var(--black-800);
25
-
26
- &.s-link__visited:visited {
27
- color: var(--black-700);
28
- }
29
-
30
- &:hover,
31
- &.s-link__visited:hover,
32
- &:active,
33
- &.s-link__visited:active {
34
- color: var(--black-900);
35
- }
36
- }
37
-
38
- &.s-link__muted {
39
- color: var(--black-500);
40
-
41
- &.s-link__visited:visited {
42
- color: var(--black-700);
43
- }
44
-
45
- &:hover,
46
- &.s-link__visited:hover,
47
- &:active,
48
- &.s-link__visited:active {
49
- color: var(--black-600);
50
- }
51
- }
52
-
53
- &.s-link__danger {
54
- color: var(--red-500);
55
-
56
- &.s-link__visited:visited {
57
- color: var(--red-600);
58
- }
59
-
60
- &:hover,
61
- &.s-link__visited:hover,
62
- &:active,
63
- &.s-link__visited:active {
64
- color: var(--red-400);
65
- }
66
- }
67
-
68
- &.s-link__inherit {
69
- color: inherit !important;
70
-
71
- &:hover,
72
- &:active,
73
- &.s-link__visited:visited {
74
- color: inherit !important;
75
- }
76
- }
77
-
78
- &.s-link__underlined {
79
- text-decoration: underline !important;
80
- }
81
-
82
- &.s-link__dropdown {
83
- position: relative;
84
- padding-right: 0.9em;
85
-
86
- &:after {
87
- content: "";
88
- position: absolute;
89
- z-index: var(--zi-active);
90
- top: calc(50% - 2px);
91
- right: 0;
92
- border-style: solid;
93
- border-width: var(--su-static4);
94
- border-top-width: var(--su-static4);
95
- border-bottom-width: 0;
96
- border-color: currentColor transparent;
97
- pointer-events: none;
98
- }
99
- }
100
- }
101
-
102
- button.s-link {
103
- -webkit-appearance: none;
104
- -moz-appearance: none;
105
- background: transparent;
106
- border: 0;
107
- padding: 0;
108
- line-height: inherit;
109
- user-select: auto;
110
- font-family: inherit;
111
-
112
- &:focus {
113
- outline: none;
114
- }
115
- }
116
-
117
- .s-anchors {
118
- .colorize-all(@name, @normal, @hover) {
119
- &.s-anchors__@{name},
120
- & .s-anchors.s-anchors__@{name} {
121
- a:not(.s-link),
122
- .s-btn.s-btn__link {
123
- color: @normal;
124
-
125
- &:hover,
126
- &:active {
127
- color: @hover;
128
- }
129
-
130
- &:visited {
131
- color: @normal;
132
-
133
- &:hover,
134
- &:active {
135
- color: @hover;
136
- }
137
- }
138
- }
139
- }
140
- }
141
- &.s-anchors__underlined {
142
- a:not(.s-link),
143
- .s-btn.s-btn__link {
144
- text-decoration: underline;
145
- }
146
- }
147
- .colorize-all(default, var(--theme-link-color), var(--theme-link-color-hover));
148
- .colorize-all(grayscale, var(--black-700), var(--black-600));
149
- .colorize-all(inherit, inherit, inherit);
150
- .colorize-all(muted, var(--black-500), var(--black-400));
151
- .colorize-all(danger, var(--red-500), var(--red-400));
152
- }
153
-
154
- .s-block-link {
155
- display: block;
156
- width: 100%;
157
- color: var(--black-600);
158
- padding: var(--su6) var(--su12);
159
-
160
- // Normalize for when applying to a button
161
- cursor: pointer;
162
- border: none;
163
- background: transparent;
164
- border-radius: 0;
165
- text-align: left;
166
- line-height: inherit;
167
- font-family: inherit;
168
-
169
- &:hover,
170
- &:active {
171
- color: var(--black-800);
172
- }
173
-
174
- @focus-styles();
175
-
176
- &.is-selected {
177
- --_li-block-bs: inset var(--_li-block-bs-offset-x, 3px) 0 0 var(--theme-primary-color);
178
-
179
- color: var(--black-800);
180
- font-weight: bold;
181
- background-color: var(--black-050);
182
-
183
- .dark-mode({
184
- background-color: var(--black-025);
185
- });
186
-
187
- &.s-block-link__right {
188
- --_li-block-bs-offset-x: -3px;
189
- }
190
-
191
- &.s-block-link__left,
192
- &.s-block-link__right {
193
- box-shadow: var(--_li-block-bs);
194
-
195
- &:focus:not(:focus-visible),
196
- &:focus-visible {
197
- outline: none;
198
- }
199
-
200
- &:focus-visible {
201
- box-shadow: var(--_li-block-bs), 0 0 0 var(--su-static4) var(--focus-ring-muted);
202
- }
203
- }
204
- }
205
-
206
- &.s-block-link__danger {
207
- color: var(--red-500);
208
-
209
- &:hover,
210
- &:active {
211
- color: var(--red-700);
212
- }
213
- }
214
- }
@@ -1,313 +0,0 @@
1
- // ============================================================================
2
- // $ CONTAINER
3
- // Give tables an optional container for responsive scrolling
4
- // ----------------------------------------------------------------------------
5
- .s-table-container {
6
- overflow-x: auto;
7
- @scrollbar-styles();
8
- }
9
-
10
- // ============================================================================
11
- // $ BASE TABLE STYLE
12
- // ----------------------------------------------------------------------------
13
- .s-table {
14
- display: table;
15
- width: 100%;
16
- max-width: 100%;
17
- border-collapse: collapse;
18
- border-spacing: 0;
19
- font-size: var(--fs-body1);
20
-
21
- th,
22
- td {
23
- padding: var(--su8);
24
- border-top: 1px solid var(--bc-medium);
25
- border-left: 1px solid var(--bc-medium);
26
- border-right: 1px solid var(--bc-medium);
27
- vertical-align: middle;
28
- color: var(--fc-medium);
29
- text-align: left;
30
-
31
- &.s-table--bulk {
32
- width: calc(var(--su32) - var(--su2));
33
- }
34
-
35
- .s-checkbox {
36
- display: block;
37
- }
38
- }
39
-
40
- th {
41
- font-weight: bold;
42
- color: var(--fc-dark);
43
- }
44
-
45
- // Custom styles when in a table head
46
- thead th {
47
- vertical-align: bottom;
48
- white-space: nowrap;
49
- background-color: var(--black-025);
50
- line-height: var(--lh-sm);
51
- }
52
-
53
- // When in a table body, don't make it bold.
54
- tbody th {
55
- font-weight: normal;
56
- }
57
-
58
- // If it's the last row, add a bottom border
59
- tr:last-of-type td,
60
- tr:last-of-type th {
61
- border-bottom: 1px solid var(--bc-medium);
62
- }
63
-
64
- // If two table bodies are next to each other, visually separate them
65
- tbody + tbody {
66
- border-top: var(--su-static2) solid var(--bc-medium);
67
- }
68
- }
69
-
70
- // ============================================================================
71
- // $ ALIGNMENTS
72
- // ----------------------------------------------------------------------------
73
- .s-table {
74
- // $$ VERTICAL ALIGNMENT
75
- // This applies vertical alignment classes to all of a table's cells.
76
- // ------------------------------------------------------------------------
77
- // -- TOP
78
- &.va-top {
79
- th,
80
- td {
81
- vertical-align: top;
82
- }
83
- }
84
-
85
- // -- MIDDLE
86
- &.va-middle {
87
- th,
88
- td {
89
- vertical-align: middle;
90
- }
91
- }
92
-
93
- // -- BOTTOM
94
- &.va-bottom {
95
- th,
96
- td {
97
- vertical-align: bottom;
98
- }
99
- }
100
-
101
- // $$ TEXT ALIGNMENT
102
- // This applies the text alignment classes to all of a table's cells.
103
- // ------------------------------------------------------------------------
104
- // -- LEFT ALIGN
105
- &.ta-left {
106
- th,
107
- td {
108
- text-align: left;
109
- }
110
- }
111
-
112
- // -- CENTER ALIGN
113
- &.ta-center {
114
- th,
115
- td {
116
- text-align: center;
117
- }
118
- }
119
-
120
- // -- RIGHT ALIGN
121
- &.ta-right {
122
- th,
123
- td {
124
- text-align: right;
125
- }
126
- }
127
-
128
- // -- JUSTIFY ALIGN
129
- &.ta-justify {
130
- th,
131
- td {
132
- text-align: justify;
133
- }
134
- }
135
- }
136
-
137
- // ============================================================================
138
- // $ LAYOUT VARIATIONS
139
- // ----------------------------------------------------------------------------
140
- .s-table {
141
- // $$ STRIPES
142
- // ------------------------------------------------------------------------
143
- &.s-table__stripes {
144
- // Darken the header
145
- thead th {
146
- background-color: var(--black-050);
147
- }
148
- // Add in stripes
149
- tbody tr:nth-child(even) {
150
- background-color: var(--black-025);
151
- }
152
- }
153
-
154
- // $$ SPACING
155
- // ------------------------------------------------------------------------
156
- // -- SMALL
157
- &.s-table__sm {
158
- th,
159
- td {
160
- padding: var(--su4);
161
- }
162
- }
163
- // -- LARGE
164
- &.s-table__lg {
165
- th,
166
- td {
167
- padding: var(--su12);
168
- }
169
- }
170
-
171
- // $$ BORDERS
172
- // ------------------------------------------------------------------------
173
- // -- No Borders
174
- &.s-table__b0 {
175
- th,
176
- td,
177
- tr:last-of-type th,
178
- tr:last-of-type td {
179
- border-color: transparent;
180
- }
181
-
182
- // Clear Header Styles
183
- thead th {
184
- background-color: transparent;
185
- text-transform: initial;
186
- font-size: inherit;
187
- letter-spacing: initial;
188
- }
189
-
190
- // This makes the border transparent, so we need to use whitespace
191
- // to achieve the same effect a 2px gray border achieves.
192
- tbody + tbody {
193
- border-color: transparent;
194
- border-width: var(--su-static12);
195
- }
196
- }
197
-
198
- // -- Horizontal Only with Table Outline
199
- &.s-table__bx {
200
- tr {
201
- > *:not(:first-child) {
202
- border-left-color: transparent;
203
- }
204
- > *:not(:last-child) {
205
- border-right-color: transparent;
206
- }
207
- }
208
- }
209
-
210
- // -- Horizontal Only without Table Outline
211
- &.s-table__bx-simple {
212
- th,
213
- td {
214
- border-left-color: transparent;
215
- border-right-color: transparent;
216
- }
217
- thead th {
218
- border-top-color: transparent;
219
- border-bottom-color: var(--bc-darker);
220
- // Clear Header Styles
221
- background-color: transparent;
222
- text-transform: initial;
223
- font-size: inherit;
224
- letter-spacing: initial;
225
- }
226
- tbody tr {
227
- &:first-of-type th,
228
- &:first-of-type td {
229
- border-top-color: transparent;
230
- }
231
- &:last-of-type th,
232
- &:last-of-type td {
233
- border-bottom-color: transparent;
234
- }
235
- }
236
- tfoot th,
237
- tfoot td {
238
- border-bottom-color: transparent;
239
- }
240
- }
241
-
242
- // $$ TOTALS ROW
243
- // ------------------------------------------------------------------------
244
- .s-table--totals {
245
- th,
246
- td {
247
- padding-top: var(--su12);
248
- font-size: var(--fs-subheading);
249
- font-weight: bold;
250
- }
251
- }
252
-
253
- // $$ Sortable Table Columns
254
- // ------------------------------------------------------------------------
255
- &.s-table__sortable thead th {
256
- color: var(--fc-light);
257
- cursor: pointer;
258
-
259
- // If an anchor is used, it should appear like a normal header
260
- a {
261
- color: inherit;
262
- }
263
-
264
- // Selected state
265
- &.is-sorted {
266
- color: var(--black-900);
267
- }
268
- }
269
-
270
- // $$ Progress Bar
271
- // ------------------------------------------------------------------------
272
- td.s-table--progress {
273
- border-right: none;
274
- text-align: right;
275
- }
276
-
277
- td.s-table--progress-bar {
278
- border-left: none;
279
- padding-left: 0;
280
- width: 120px;
281
- }
282
-
283
- // $$ Disabled rows
284
- // ------------------------------------------------------------------------
285
- tr.is-disabled {
286
- background-color: var(--black-025);
287
-
288
- th:not(.is-enabled),
289
- td:not(.is-enabled) {
290
- opacity: calc(var(--_o-disabled) * 0.6); // 0.5 * 0.6 = 0.3
291
- }
292
- }
293
- }
294
-
295
- // ============================================================================
296
- // $ TABLE CELL SIZES
297
- // ============================================================================
298
- // $$ General Column Sizes
299
- // ----------------------------------------------------------------------------
300
- @table-columns: (100% / 12);
301
-
302
- .s-table--cell1 { width: @table-columns * 1; }
303
- .s-table--cell2 { width: @table-columns * 2; }
304
- .s-table--cell3 { width: @table-columns * 3; }
305
- .s-table--cell4 { width: @table-columns * 4; }
306
- .s-table--cell5 { width: @table-columns * 5; }
307
- .s-table--cell6 { width: @table-columns * 6; }
308
- .s-table--cell7 { width: @table-columns * 7; }
309
- .s-table--cell8 { width: @table-columns * 8; }
310
- .s-table--cell9 { width: @table-columns * 9; }
311
- .s-table--cell10 { width: @table-columns * 10; }
312
- .s-table--cell11 { width: @table-columns * 11; }
313
- .s-table--cell12 { width: @table-columns * 12; }