@codecademy/gamut-styles 18.0.1-alpha.f8b396.0 → 19.0.1-alpha.416911.0

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.
package/core/_reboot.scss DELETED
@@ -1,487 +0,0 @@
1
- // https://raw.githubusercontent.com/twbs/bootstrap/v4-dev/scss/_reboot.scss
2
-
3
- // stylelint-disable at-rule-no-vendor-prefix, declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
4
-
5
- // Reboot
6
- //
7
- // Normalization of HTML elements, manually forked from Normalize.css to remove
8
- // styles targeting irrelevant browsers while applying new styles.
9
- //
10
- // Normalize is licensed MIT. https://github.com/necolas/normalize.css
11
-
12
- // Document
13
- //
14
- // 1 Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
15
- // 2 Change the default font family in all browsers.
16
- // 3 Correct the line height in all browsers.
17
- // 4 Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
18
- // 5 Setting @viewport causes scrollbars to overlap content in IE11 and Edge, so
19
- // we force a non-overlapping, non-auto-hiding scrollbar to counteract.
20
- // 6 Change the default tap highlight to be completely transparent in iOS.
21
-
22
- *,
23
- *::before,
24
- *::after {
25
- box-sizing: inherit; // 1
26
- }
27
-
28
- html {
29
- box-sizing: border-box;
30
- font-family: sans-serif; // 2
31
- line-height: 1.15; // 3
32
- -webkit-text-size-adjust: 100%; // 4
33
- -ms-text-size-adjust: 100%; // 4
34
- -ms-overflow-style: scrollbar; // 5
35
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); // 6
36
- }
37
-
38
- // stylelint-disable selector-list-comma-newline-after
39
- // Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
40
- article,
41
- aside,
42
- dialog,
43
- figcaption,
44
- figure,
45
- footer,
46
- header,
47
- hgroup,
48
- main,
49
- nav,
50
- section {
51
- display: block;
52
- }
53
- // stylelint-enable selector-list-comma-newline-after
54
-
55
- // Body
56
- //
57
- // 1. Remove the margin in all browsers.
58
- // 2. As a best practice, apply a default `background-color`.
59
- // 3. Set an explicit initial text-align value so that we can later use the
60
- // the `inherit` value on things like `<th>` elements.
61
-
62
- body {
63
- margin: 0; // 1
64
- font-family: $font-family-base;
65
- font-weight: $font-weight-base;
66
- line-height: $line-height-base;
67
- color: $color-body;
68
- text-align: left; // 3
69
- background-color: $bg-body; // 2
70
- }
71
-
72
- // Suppress the focus outline on elements that cannot be accessed via keyboard.
73
- // This prevents an unwanted focus outline from appearing around elements that
74
- // might still respond to pointer events.
75
- //
76
- // Credit: https://github.com/suitcss/base
77
- [tabindex="-1"]:focus {
78
- outline: 0 !important;
79
- }
80
-
81
- // Content grouping
82
- //
83
- // 1. Add the correct box sizing in Firefox.
84
- // 2. Show the overflow in Edge and IE.
85
-
86
- hr {
87
- box-sizing: content-box; // 1
88
- height: 0; // 1
89
- overflow: visible; // 2
90
- }
91
-
92
- //
93
- // Typography
94
- //
95
-
96
- // Remove top margins from headings
97
- //
98
- // By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
99
- // margin for easier control within type scales as it avoids margin collapsing.
100
- // stylelint-disable selector-list-comma-newline-after
101
- h1,
102
- h2,
103
- h3,
104
- h4,
105
- h5,
106
- h6 {
107
- margin-top: 0;
108
- margin-bottom: $margin-bottom-headings;
109
- }
110
- // stylelint-enable selector-list-comma-newline-after
111
-
112
- // Reset margins on paragraphs
113
- //
114
- // Similarly, the top margin on `<p>`s get reset. However, we also reset the
115
- // bottom margin to use `rem` units instead of `em`.
116
- p {
117
- margin-top: 0;
118
- margin-bottom: $margin-bottom-paragraph;
119
- }
120
-
121
- // Abbreviations
122
- //
123
- // 1. Remove the bottom border in Firefox 39-.
124
- // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
125
- // 3. Add explicit cursor to indicate changed behavior.
126
- // 4. Duplicate behavior to the data-* attribute for our tooltip plugin
127
-
128
- abbr[title],
129
- abbr[data-original-title] {
130
- // 4
131
- text-decoration: underline; // 2
132
- text-decoration: underline dotted; // 2
133
- cursor: help; // 3
134
- border-bottom: 0; // 1
135
- }
136
-
137
- address {
138
- margin-bottom: 1rem;
139
- font-style: normal;
140
- line-height: inherit;
141
- }
142
-
143
- ol,
144
- ul,
145
- dl {
146
- margin-top: 0;
147
- margin-bottom: 1rem;
148
- }
149
-
150
- ol ol,
151
- ul ul,
152
- ol ul,
153
- ul ol {
154
- margin-bottom: 0;
155
- }
156
-
157
- dt {
158
- font-weight: $font-weight-dt;
159
- }
160
-
161
- dd {
162
- margin-bottom: 0.5rem;
163
- margin-left: 0; // Undo browser default
164
- }
165
-
166
- blockquote {
167
- margin: 0 0 1rem;
168
- }
169
-
170
- dfn {
171
- font-style: italic; // Add the correct font style in Android 4.3-
172
- }
173
-
174
- // stylelint-disable font-weight-notation
175
- b,
176
- strong {
177
- font-weight: $font-weight-bold; // Add the correct font weight in Chrome, Edge, and Safari
178
- }
179
- // stylelint-enable font-weight-notation
180
-
181
- small {
182
- font-size: $font-size-small; // Add the correct font size in all browsers
183
- }
184
-
185
- //
186
- // Prevent `sub` and `sup` elements from affecting the line height in
187
- // all browsers.
188
- //
189
-
190
- sub,
191
- sup {
192
- position: relative;
193
- font-size: 75%;
194
- line-height: 0;
195
- vertical-align: baseline;
196
- }
197
-
198
- sub {
199
- bottom: -0.25em;
200
- }
201
- sup {
202
- top: -0.5em;
203
- }
204
-
205
- //
206
- // Links
207
- //
208
-
209
- a {
210
- color: $color-link;
211
- text-decoration: $decoration-link;
212
- background-color: transparent; // Remove the gray background on active links in IE 10.
213
- -webkit-text-decoration-skip: objects; // Remove gaps in links underline in iOS 8+ and Safari 8+.
214
-
215
- &:hover {
216
- text-decoration: $hover-decoration-link;
217
- }
218
- }
219
-
220
- // And undo these styles for placeholder links/named anchors (without href)
221
- // which have not been made explicitly keyboard-focusable (without tabindex).
222
- // It would be more straightforward to just use a[href] in previous block, but that
223
- // causes specificity issues in many other styles that are too complex to fix.
224
- // See https://github.com/twbs/bootstrap/issues/19402
225
-
226
- a:not([href]):not([tabindex]) {
227
- color: inherit;
228
- text-decoration: none;
229
-
230
- &:hover,
231
- &:focus {
232
- color: inherit;
233
- text-decoration: none;
234
- }
235
-
236
- &:focus {
237
- outline: 0;
238
- }
239
- }
240
-
241
- //
242
- // Code
243
- //
244
-
245
- // stylelint-disable font-family-no-duplicate-names
246
- pre,
247
- code,
248
- kbd,
249
- samp {
250
- font-family: monospace, monospace; // Correct the inheritance and scaling of font size in all browsers.
251
- font-size: 1em; // Correct the odd `em` font sizing in all browsers.
252
- }
253
- // stylelint-enable font-family-no-duplicate-names
254
-
255
- pre {
256
- // Remove browser default top margin
257
- margin-top: 0;
258
- // Reset browser default of `1em` to use `rem`s
259
- margin-bottom: 1rem;
260
- // Don't allow content to break outside
261
- overflow: auto;
262
- // We have @viewport set which causes scrollbars to overlap content in IE11 and Edge, so
263
- // we force a non-overlapping, non-auto-hiding scrollbar to counteract.
264
- -ms-overflow-style: scrollbar;
265
- }
266
-
267
- //
268
- // Figures
269
- //
270
-
271
- figure {
272
- // Apply a consistent margin strategy (matches our type styles).
273
- margin: 0 0 1rem;
274
- }
275
-
276
- //
277
- // Images and content
278
- //
279
-
280
- img {
281
- vertical-align: middle;
282
- border-style: none; // Remove the border on images inside links in IE 10-.
283
- }
284
-
285
- svg:not(:root) {
286
- overflow: hidden; // Hide the overflow in IE
287
- }
288
-
289
- //
290
- // Tables
291
- //
292
-
293
- table {
294
- border-collapse: collapse; // Prevent double borders
295
- }
296
-
297
- caption {
298
- padding-top: $spacer;
299
- padding-bottom: $spacer;
300
- color: $spacer;
301
- text-align: left;
302
- caption-side: bottom;
303
- }
304
-
305
- th {
306
- // Matches default `<td>` alignment by inheriting from the `<body>`, or the
307
- // closest parent with a set `text-align`.
308
- text-align: inherit;
309
- }
310
-
311
- //
312
- // Forms
313
- //
314
-
315
- label {
316
- // Allow labels to use `margin` for spacing.
317
- display: inline-block;
318
- margin-bottom: $margin-bottom-label;
319
- }
320
-
321
- // Remove the default `border-radius` that macOS Chrome adds.
322
- //
323
- // Details at https://github.com/twbs/bootstrap/issues/24093
324
- button {
325
- border-radius: 0;
326
- }
327
-
328
- // Work around a Firefox/IE bug where the transparent `button` background
329
- // results in a loss of the default `button` focus styles.
330
- //
331
- // Credit: https://github.com/suitcss/base/
332
- button:focus-visible {
333
- outline: 1px dotted;
334
- outline: 5px auto -webkit-focus-ring-color;
335
- }
336
-
337
- input,
338
- button,
339
- select,
340
- optgroup,
341
- textarea {
342
- margin: 0; // Remove the margin in Firefox and Safari
343
- font-family: inherit;
344
- font-size: inherit;
345
- line-height: inherit;
346
- }
347
-
348
- button,
349
- input {
350
- overflow: visible; // Show the overflow in Edge
351
- }
352
-
353
- button,
354
- select {
355
- text-transform: none; // Remove the inheritance of text transform in Firefox
356
- }
357
-
358
- // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
359
- // controls in Android 4.
360
- // 2. Correct the inability to style clickable types in iOS and Safari.
361
- button,
362
- html [type="button"],
363
- // 1 [type="reset"],
364
- [type="submit"] {
365
- -webkit-appearance: button; // 2
366
- }
367
-
368
- // Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
369
- button::-moz-focus-inner,
370
- [type="button"]::-moz-focus-inner,
371
- [type="reset"]::-moz-focus-inner,
372
- [type="submit"]::-moz-focus-inner {
373
- padding: 0;
374
- border-style: none;
375
- }
376
-
377
- input[type="radio"],
378
- input[type="checkbox"] {
379
- box-sizing: border-box; // 1. Add the correct box sizing in IE 10-
380
- padding: 0; // 2. Remove the padding in IE 10-
381
- }
382
-
383
- input[type="date"],
384
- input[type="time"],
385
- input[type="datetime-local"],
386
- input[type="month"] {
387
- // Remove the default appearance of temporal inputs to avoid a Mobile Safari
388
- // bug where setting a custom line-height prevents text from being vertically
389
- // centered within the input.
390
- // See https://bugs.webkit.org/show_bug.cgi?id=139848
391
- // and https://github.com/twbs/bootstrap/issues/11266
392
- -webkit-appearance: listbox;
393
- }
394
-
395
- textarea {
396
- overflow: auto; // Remove the default vertical scrollbar in IE.
397
- // Textareas should really only resize vertically so they don't break their (horizontal) containers.
398
- resize: vertical;
399
- }
400
-
401
- fieldset {
402
- // Browsers set a default `min-width: min-content;` on fieldsets,
403
- // unlike e.g. `<div>`s, which have `min-width: 0;` by default.
404
- // So we reset that to ensure fieldsets behave more like a standard block element.
405
- // See https://github.com/twbs/bootstrap/issues/12359
406
- // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
407
- min-width: 0;
408
- // Reset the default outline behavior of fieldsets so they don't affect page layout.
409
- padding: 0;
410
- margin: 0;
411
- border: 0;
412
- }
413
-
414
- // 1. Correct the text wrapping in Edge and IE.
415
- // 2. Correct the color inheritance from `fieldset` elements in IE.
416
- legend {
417
- display: block;
418
- width: 100%;
419
- max-width: 100%; // 1
420
- padding: 0;
421
- margin-bottom: 0.5rem;
422
- font-size: 1.5rem;
423
- line-height: inherit;
424
- color: inherit; // 2
425
- white-space: normal; // 1
426
- }
427
-
428
- progress {
429
- vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.
430
- }
431
-
432
- // Correct the cursor style of increment and decrement buttons in Chrome.
433
- [type="number"]::-webkit-inner-spin-button,
434
- [type="number"]::-webkit-outer-spin-button {
435
- height: auto;
436
- }
437
-
438
- [type="search"] {
439
- // This overrides the extra rounded corners on search inputs in iOS so that our
440
- // `.form-control` class can properly style them. Note that this cannot simply
441
- // be added to `.form-control` as it's not specific enough. For details, see
442
- // https://github.com/twbs/bootstrap/issues/11586.
443
- outline-offset: -2px; // 2. Correct the outline style in Safari.
444
- -webkit-appearance: none;
445
- }
446
-
447
- //
448
- // Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
449
- //
450
-
451
- [type="search"]::-webkit-search-cancel-button,
452
- [type="search"]::-webkit-search-decoration {
453
- -webkit-appearance: none;
454
- }
455
-
456
- //
457
- // 1. Correct the inability to style clickable types in iOS and Safari.
458
- // 2. Change font properties to `inherit` in Safari.
459
- //
460
-
461
- ::-webkit-file-upload-button {
462
- font: inherit; // 2
463
- -webkit-appearance: button; // 1
464
- }
465
-
466
- //
467
- // Correct element displays
468
- //
469
-
470
- output {
471
- display: inline-block;
472
- }
473
-
474
- summary {
475
- display: list-item; // Add the correct display in all browsers
476
- cursor: pointer;
477
- }
478
-
479
- template {
480
- display: none; // Add the correct display in IE
481
- }
482
-
483
- // Always hide an element with the `hidden` HTML attribute (from PureCSS).
484
- // Needed for proper display in IE 10-.
485
- [hidden] {
486
- display: none !important;
487
- }
@@ -1,36 +0,0 @@
1
- // https://raw.githubusercontent.com/twbs/bootstrap/v4-dev/scss/_type.scss
2
-
3
- h1,
4
- h2,
5
- h3,
6
- h4,
7
- h5,
8
- h6 {
9
- margin-bottom: $margin-bottom-headings;
10
- font-weight: $font-weight-headings;
11
- line-height: $line-height-headings;
12
- }
13
-
14
- h1 {
15
- font-size: $font-size-h1;
16
- }
17
- h2 {
18
- font-size: $font-size-h2;
19
- }
20
- h3 {
21
- font-size: $font-size-h3;
22
- }
23
- h4 {
24
- font-size: $font-size-h4;
25
- }
26
- h5 {
27
- font-size: $font-size-h5;
28
- }
29
- h6 {
30
- font-size: $font-size-h6;
31
- }
32
-
33
- small {
34
- font-size: $font-size-small;
35
- font-weight: $font-weight-normal;
36
- }
package/core/index.scss DELETED
@@ -1,4 +0,0 @@
1
- @forward "../utils";
2
- @forward "reboot";
3
- @forward "fonts";
4
- @forward "typography";
package/core.scss DELETED
@@ -1 +0,0 @@
1
- @forward "core/index";
@@ -1,156 +0,0 @@
1
- /**
2
- * @deprecated
3
- * Using these variables directly is no longer supported.
4
- *
5
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
6
- */
7
- export declare const interactiveColors: {
8
- readonly dark: "#3A10E5";
9
- readonly light: "#FFD300";
10
- };
11
- /**
12
- * @deprecated
13
- * Using these variables directly is no longer supported.
14
- *
15
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
16
- */
17
- export declare const editorColors: {
18
- readonly blue: "#83fff5";
19
- readonly deepPurple: "#cc7bc2";
20
- readonly gray: "#939598";
21
- readonly green: "#b4d353";
22
- readonly orange: "#ff8973";
23
- readonly purple: "#b3ccff";
24
- readonly red: "#ea6c8b";
25
- readonly yellow: "#ffe083";
26
- };
27
- /**
28
- * @deprecated
29
- * Using these variables directly is no longer supported.
30
- *
31
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
32
- */
33
- export declare const platformColors: {
34
- readonly mint: {
35
- readonly '500': "#37c3be";
36
- readonly '600': "#2c9c98";
37
- readonly '700': "#217572";
38
- };
39
- readonly purple: {
40
- readonly '200': "#c3c1d7";
41
- readonly '300': "#a5a1c2";
42
- readonly '400': "#8782ae";
43
- readonly '500': "#69639a";
44
- readonly '600': "#544f7b";
45
- readonly '700': "#3f3b5c";
46
- readonly '800': "#2a283e";
47
- readonly '900': "#15141f";
48
- };
49
- };
50
- /**
51
- * @deprecated
52
- * Using these variables directly is no longer supported.
53
- *
54
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
55
- */
56
- export declare const swatches: {
57
- readonly beige: {
58
- readonly '0': "#FFF0E5";
59
- };
60
- readonly blue: {
61
- readonly '0': "#F5FCFF";
62
- readonly '300': "#66C4FF";
63
- readonly '500': "#1557FF";
64
- readonly '800': "#1D2340";
65
- readonly '900': "#10162f";
66
- };
67
- readonly green: {
68
- readonly '0': "#F5FFE3";
69
- readonly '400': "#AEE938";
70
- readonly '700': "#008A27";
71
- };
72
- readonly yellow: {
73
- readonly '0': "#FFFAE5";
74
- readonly '400': "#CCA900";
75
- readonly '500': "#FFD300";
76
- };
77
- readonly pink: {
78
- readonly '0': "#FFF5FF";
79
- readonly '400': "#F966FF";
80
- };
81
- readonly red: {
82
- readonly '500': "#E91C11";
83
- };
84
- readonly orange: {
85
- readonly '500': "#FF8C00";
86
- };
87
- readonly hyper: {
88
- readonly '400': "#5533FF";
89
- readonly '500': "#3A10E5";
90
- };
91
- readonly gray: {
92
- readonly '0': "#ffffff";
93
- readonly '100': "#f6f5fa";
94
- readonly '200': "#dddce0";
95
- readonly '300': "#c4c3c7";
96
- readonly '400': "#a2a2a6";
97
- readonly '500': "#828285";
98
- readonly '600': "#646466";
99
- readonly '700': "#4b4b4d";
100
- readonly '800': "#323233";
101
- readonly '900': "#19191a";
102
- };
103
- };
104
- /**
105
- * @deprecated
106
- * Using these variables directly is no longer supported.
107
- *
108
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
109
- */
110
- export declare const colors: {
111
- readonly beige: "#FFF0E5";
112
- readonly blue: "#1557FF";
113
- readonly green: "#008A27";
114
- readonly hyper: "#3A10E5";
115
- readonly lightBlue: "#66C4FF";
116
- readonly lightGreen: "#AEE938";
117
- readonly navy: "#10162f";
118
- readonly orange: "#FF8C00";
119
- readonly paleBlue: "#F5FCFF";
120
- readonly paleGreen: "#F5FFE3";
121
- readonly palePink: "#FFF5FF";
122
- readonly paleYellow: "#FFFAE5";
123
- readonly pink: "#F966FF";
124
- readonly red: "#E91C11";
125
- readonly yellow: "#FFD300";
126
- readonly black: "#000000";
127
- readonly white: "#ffffff";
128
- readonly "blue-0": "#F5FCFF";
129
- readonly "blue-300": "#66C4FF";
130
- readonly "blue-500": "#1557FF";
131
- readonly "blue-800": "#1D2340";
132
- readonly "green-0": "#F5FFE3";
133
- readonly "green-400": "#AEE938";
134
- readonly "green-700": "#008A27";
135
- readonly "yellow-0": "#FFFAE5";
136
- readonly "yellow-400": "#CCA900";
137
- readonly "yellow-500": "#FFD300";
138
- readonly "pink-0": "#FFF5FF";
139
- readonly "pink-400": "#F966FF";
140
- readonly "red-500": "#E91C11";
141
- readonly "orange-500": "#FF8C00";
142
- readonly "hyper-400": "#5533FF";
143
- readonly "hyper-500": "#3A10E5";
144
- readonly "gray-100": "#f6f5fa";
145
- readonly "gray-300": "#c4c3c7";
146
- readonly "gray-800": "#323233";
147
- readonly "gray-200": "#dddce0";
148
- readonly "gray-600": "#646466";
149
- readonly "gray-900": "#19191a";
150
- readonly "beige-0": "#FFF0E5";
151
- readonly "blue-900": "#10162f";
152
- readonly "gray-0": "#ffffff";
153
- readonly "gray-400": "#a2a2a6";
154
- readonly "gray-500": "#828285";
155
- readonly "gray-700": "#4b4b4d";
156
- };