@castlabs/ui 6.0.3 → 7.0.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/README.md +1 -1
- package/dist/assets/castlabs-logo-eggshell.svg +31 -162
- package/dist/assets/castlabs-logo.svg +31 -162
- package/dist/castlabs-ui-editor.css +1 -1
- package/dist/castlabs-ui-editor.umd.js +30 -30
- package/dist/castlabs-ui.common.js +5 -5
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +28 -35
- package/dist/castlabs-ui.css +7 -7
- package/dist/castlabs-ui.module.js +28 -35
- package/dist/castlabs-ui.umd.js +13 -13
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +18 -18
- package/src/assets/castlabs-logo-eggshell.svg +31 -162
- package/src/assets/castlabs-logo.svg +31 -162
- package/src/components/ClAlert/style.scss +46 -43
- package/src/components/ClBadge/style.scss +13 -15
- package/src/components/ClBadge/style.variables.scss +39 -33
- package/src/components/ClButton/style.scss +47 -249
- package/src/components/ClCard/style.scss +20 -20
- package/src/components/ClCard/style.variables.scss +121 -106
- package/src/components/ClDropdown/style.scss +47 -150
- package/src/components/ClDropzone/style.scss +4 -4
- package/src/components/ClFooter/style.scss +6 -105
- package/src/components/ClIconotron/style.scss +3 -8
- package/src/components/ClList/style.scss +10 -13
- package/src/components/ClList/style.variables.scss +27 -22
- package/src/components/ClPagination/style.scss +48 -85
- package/src/components/ClProgress/style.scss +8 -23
- package/src/components/ClSpinner/style.scss +1 -1
- package/src/components/ClTabs/style.scss +9 -9
- package/src/components/ClToggle/style.scss +18 -59
- package/src/components/ClTooltip/style.scss +9 -24
- package/src/components/ClWizard/style.scss +14 -12
- package/src/components/form/ClField/style.scss +4 -4
- package/src/components/form/ClFieldCheck/style.scss +25 -20
- package/src/components/form/ClFieldFile/style.scss +11 -13
- package/src/components/form/ClFieldGroup/style.scss +38 -4
- package/src/components/form/ClFieldInput/style.scss +15 -11
- package/src/components/form/ClFieldSelect/style.scss +6 -5
- package/src/components/form/ClFieldSet/style.scss +2 -2
- package/src/components/form/ClForm/style.scss +6 -8
- package/src/components/modal/ClModal/style.scss +50 -35
- package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +112 -180
- package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +0 -23
- package/src/components/navigation/ClNavSide/style.scss +11 -17
- package/src/components/navigation/ClNavTop/style.scss +39 -35
- package/src/components/section/ClSectionForm/style.scss +6 -3
- package/src/components/section/ClSectionHeadline/style.scss +23 -25
- package/src/components/table/ClTable/style.variables.scss +18 -69
- package/src/components/table/ClTableCel/Actions/style.scss +1 -1
- package/src/components/table/ClTableCel/Audit/style.scss +2 -4
- package/src/components/table/ClTableCel/Boolean/style.scss +1 -1
- package/src/components/table/ClTableCel/Checkbox/style.scss +2 -2
- package/src/components/table/ClTableCel/Code/style.scss +1 -1
- package/src/components/table/ClTableCel/Currency/style.scss +1 -1
- package/src/components/table/ClTableCel/Date/style.scss +1 -1
- package/src/components/table/ClTableCel/ID/style.scss +2 -2
- package/src/components/table/ClTableCel/Links/style.scss +10 -11
- package/src/components/table/ClTableCel/style.variables.scss +3 -3
- package/src/components/text/ClCopy/style.scss +4 -21
- package/src/components/text/ClHashtag/style.scss +7 -25
- package/src/components/text/ClLinkExternal/style.scss +21 -19
- package/src/components/text/ClOrg/style.scss +1 -19
- package/src/components/text/ClPlan/style.scss +7 -25
- package/src/components/text/ClRole/style.scss +7 -25
- package/src/components/widget/ClCookieBanner/style.scss +5 -1
- package/src/fonts/DMMono/DMMono.scss +36 -0
- package/src/fonts/DMMono/DM_Mono_300.woff2 +0 -0
- package/src/fonts/DMMono/DM_Mono_300italic.woff2 +0 -0
- package/src/fonts/DMMono/DM_Mono_400.woff2 +0 -0
- package/src/fonts/DMMono/DM_Mono_400italic.woff2 +0 -0
- package/src/fonts/DMMono/DM_Mono_500.woff2 +0 -0
- package/src/fonts/DMMono/DM_Mono_500italic.woff2 +0 -0
- package/src/fonts/FontAwesome5/FontAwesome5.scss +2 -2
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2 +0 -0
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2 +0 -0
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2 +0 -0
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +21 -0
- package/src/styles/_global.scss +2 -0
- package/src/styles/abstracts/brand.scss +9 -0
- package/src/styles/abstracts/color.scss +243 -98
- package/src/styles/abstracts/spacing.scss +2 -2
- package/src/styles/abstracts/tools.scss +0 -82
- package/src/styles/assets/fontawesome.scss +2 -0
- package/src/styles/assets/fontawesome.variables.scss +88 -0
- package/src/styles/assets/logo.scss +12 -6
- package/src/styles/components/button.variables.scss +79 -6
- package/src/styles/components/form.variables.scss +15 -16
- package/src/styles/layout/app.scss +29 -0
- package/src/styles/layout/color.scss +115 -0
- package/src/styles/layout/grid.scss +2 -1
- package/src/styles/layout/helper.scss +14 -2
- package/src/styles/layout/section.scss +46 -47
- package/src/styles/layout/spacing.scss +4 -4
- package/src/styles/layout/typography.scss +91 -112
- package/src/styles/layout/typography.variables.scss +281 -168
- package/src/styles/ui.scss +4 -5
- package/src/styles/vendors/bootstrap.scss +1 -1
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.9f9ebd6f.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.d7aed4ec.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.860d704d.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.196096f5.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.60896ebf.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.c5d717bd.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e6581016.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.ed9c080e.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.65f5554a.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.ffa02f1c.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.157a9634.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.ae9457b8.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.3c6000b1.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.1244aaff.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.32149fc9.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.16910b81.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.16652597.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.e1ba37a1.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.b50868a3.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.1250c5ba.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.3ec09e79.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.woff2 +0 -0
- package/src/fonts/NotoSansMono/NotoSansMono.scss +0 -84
- package/src/fonts/OpenSansVariable/OpenSansVariable.scss +0 -187
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0bdc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFUZ0bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFV50bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVZ0b.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVp0bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFW50bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWJ0bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWZ0bbck.woff2 +0 -0
- package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWp0bbck.woff2 +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/// @access public
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
-
// This file defines how we structure pages with <section class="cl-section
|
|
6
|
+
// This file defines how we structure pages with <section class="cl-section">s.
|
|
7
7
|
|
|
8
8
|
%section-padding {
|
|
9
9
|
padding-left: $spacing-tiny;
|
|
@@ -15,74 +15,73 @@
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
.cl-section
|
|
19
|
-
.cl-section-secondary,
|
|
20
|
-
.cl-section-dark,
|
|
21
|
-
.cl-section-light,
|
|
22
|
-
.cl-section-regular,
|
|
23
|
-
.cl-section-alternate {
|
|
18
|
+
.cl-section {
|
|
24
19
|
@extend %section-padding;
|
|
25
|
-
}
|
|
26
20
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
background-color: var(--cl-color-background);
|
|
22
|
+
color: var(--cl-color-text);
|
|
23
|
+
|
|
24
|
+
&:not([class*='cl-color-']) + &:not([class*='cl-color-']),
|
|
25
|
+
&.cl-color-red + &.cl-color-red,
|
|
26
|
+
&.cl-color-sky + &.cl-color-sky,
|
|
27
|
+
&.cl-color-night + &.cl-color-night,
|
|
28
|
+
&.cl-color-eggshell + &.cl-color-eggshell,
|
|
29
|
+
&.cl-color-clay + &.cl-color-clay,
|
|
30
|
+
&.cl-color-ash + &.cl-color-ash,
|
|
31
|
+
&.cl-color-petrol + &.cl-color-petrol,
|
|
32
|
+
&.cl-color-berry + &.cl-color-berry {
|
|
33
|
+
@include media-breakpoint-up(sm) {
|
|
34
|
+
margin-top: $spacing-small * -3;
|
|
35
|
+
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.cl-section-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
// .cl-section:not(.cl-color-red):not(.cl-color-sky):not(.cl-color-night):not(.cl-color-eggshell):not(.cl-color-clay):not(.cl-color-ash):not(.cl-color-petrol):not(.cl-color-berry) + .cl-section:not(.cl-color-red):not(.cl-color-sky):not(.cl-color-night):not(.cl-color-eggshell):not(.cl-color-clay):not(.cl-color-ash):not(.cl-color-petrol):not(.cl-color-berry) {
|
|
40
|
+
// @include media-breakpoint-up(sm) {
|
|
41
|
+
// margin-top: $spacing-small * -3;
|
|
42
|
+
// }
|
|
43
|
+
// }
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
45
|
+
// pre-2005 legacy mappings
|
|
46
|
+
.cl-section-regular {
|
|
47
|
+
@extend %section-padding;
|
|
48
|
+
@extend %cl-color-night-outline;
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
$color-ci-white,
|
|
53
|
-
rgba($color-white-80a, $color-hover-opacity),
|
|
54
|
-
2px,
|
|
55
|
-
$color-ci-white,
|
|
56
|
-
rgba($color-white-80a, $color-hover-opacity)
|
|
57
|
-
);
|
|
58
|
-
}
|
|
50
|
+
background-color: var(--cl-color-background);
|
|
51
|
+
color: var(--cl-color-text);
|
|
59
52
|
}
|
|
60
53
|
|
|
61
54
|
.cl-section-primary {
|
|
62
|
-
|
|
55
|
+
@extend %section-padding;
|
|
56
|
+
@extend %cl-color-red;
|
|
63
57
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
58
|
+
background-color: var(--cl-color-background);
|
|
59
|
+
color: var(--cl-color-text);
|
|
67
60
|
}
|
|
68
61
|
|
|
69
62
|
.cl-section-secondary {
|
|
70
|
-
|
|
63
|
+
@extend %section-padding;
|
|
64
|
+
@extend %cl-color-sky;
|
|
65
|
+
|
|
66
|
+
background-color: var(--cl-color-background);
|
|
67
|
+
color: var(--cl-color-text);
|
|
71
68
|
}
|
|
72
69
|
|
|
70
|
+
.cl-section-night,
|
|
73
71
|
.cl-section-dark {
|
|
74
|
-
|
|
72
|
+
@extend %section-padding;
|
|
73
|
+
@extend %cl-color-night;
|
|
74
|
+
|
|
75
|
+
background-color: var(--cl-color-background);
|
|
76
|
+
color: var(--cl-color-text);
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
.cl-section-light,
|
|
78
80
|
.cl-section-alternate {
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
+
@extend %section-padding;
|
|
81
82
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
padding-bottom: 1rem;
|
|
85
|
-
padding-top: 0;
|
|
83
|
+
border-bottom: $brand-line-width solid $color-ci-clay;
|
|
84
|
+
border-top: $brand-line-width solid $color-ci-clay;
|
|
86
85
|
}
|
|
87
86
|
|
|
88
87
|
main {
|
|
@@ -188,14 +188,14 @@ main {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
> *:last-child {
|
|
192
|
+
margin-right: 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
191
195
|
@include media-breakpoint-up(sm) {
|
|
192
196
|
&.cl-spread {
|
|
193
197
|
display: flex;
|
|
194
198
|
justify-content: space-between;
|
|
195
|
-
|
|
196
|
-
> *:last-child {
|
|
197
|
-
margin-right: 0;
|
|
198
|
-
}
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
|
|
@@ -5,101 +5,112 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines our basic typography rules.
|
|
7
7
|
|
|
8
|
-
@import '../../fonts/OpenSansVariable/OpenSansVariable';
|
|
9
|
-
@import '../../fonts/
|
|
10
|
-
|
|
8
|
+
// @import '../../fonts/OpenSansVariable/OpenSansVariable';
|
|
9
|
+
// @import '../../fonts/NotoSansMono/NotoSansMono';
|
|
10
|
+
|
|
11
|
+
@import '../../fonts/DMMono/DMMono';
|
|
12
|
+
@import '../../fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap';
|
|
13
|
+
|
|
11
14
|
@import 'typography.variables';
|
|
12
15
|
|
|
13
16
|
// --- text --------------------------------------------------------------------
|
|
14
17
|
|
|
18
|
+
.cl-font-sans {
|
|
19
|
+
font-family: $typography-sans-font-list !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.cl-font-monospace {
|
|
23
|
+
font-family: $typography-monospace-font-list !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
15
26
|
html {
|
|
16
27
|
font-size: 16px; // root font size
|
|
17
28
|
}
|
|
18
29
|
|
|
19
30
|
html,
|
|
20
31
|
body {
|
|
21
|
-
@extend %p-medium;
|
|
32
|
+
@extend %cl-p-medium;
|
|
22
33
|
|
|
23
|
-
color:
|
|
24
|
-
|
|
34
|
+
color: var(--cl-color-text);
|
|
35
|
+
overflow-wrap: break-word;
|
|
25
36
|
}
|
|
26
37
|
|
|
27
38
|
.cl-p {
|
|
28
39
|
overflow-wrap: anywhere;
|
|
29
40
|
}
|
|
30
41
|
|
|
31
|
-
.cl-p-tiny {
|
|
32
|
-
@extend %p-tiny;
|
|
33
|
-
|
|
34
|
-
font-weight: 700;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
42
|
.cl-p-small {
|
|
38
|
-
@extend %p-small;
|
|
43
|
+
@extend %cl-p-small;
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
.cl-p-medium {
|
|
42
|
-
@extend %p-medium;
|
|
47
|
+
@extend %cl-p-medium;
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
.cl-p-large {
|
|
46
|
-
@extend %p-large;
|
|
51
|
+
@extend %cl-p-large;
|
|
52
|
+
}
|
|
47
53
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
.cl-p-x-large {
|
|
55
|
+
@extend %cl-p-x-large;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.cl-p-tag {
|
|
59
|
+
@extend %cl-p-tag;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
.cl-p-label {
|
|
54
|
-
@extend %p-label;
|
|
63
|
+
@extend %cl-p-label;
|
|
55
64
|
}
|
|
56
65
|
|
|
57
66
|
.cl-p-form-label {
|
|
58
|
-
@extend %p-form-label;
|
|
67
|
+
@extend %cl-p-form-label;
|
|
59
68
|
}
|
|
60
69
|
|
|
61
70
|
.cl-p-nav {
|
|
62
|
-
@extend %p-nav;
|
|
71
|
+
@extend %cl-p-nav;
|
|
63
72
|
}
|
|
64
73
|
|
|
65
74
|
.cl-font-condensed {
|
|
66
75
|
@extend %cl-font-condensed;
|
|
67
76
|
}
|
|
68
77
|
|
|
78
|
+
.cl-h0 {
|
|
79
|
+
@extend %cl-h0;
|
|
80
|
+
|
|
81
|
+
@include spacing-before-auto($spacing-large + $spacing-small);
|
|
82
|
+
|
|
83
|
+
overflow-wrap: anywhere;
|
|
84
|
+
}
|
|
85
|
+
|
|
69
86
|
.cl-h1 {
|
|
70
|
-
@extend %h1;
|
|
87
|
+
@extend %cl-h1;
|
|
71
88
|
|
|
72
|
-
@include spacing-before-auto($spacing-large);
|
|
89
|
+
@include spacing-before-auto($spacing-large + $spacing-small);
|
|
73
90
|
|
|
74
|
-
|
|
75
|
-
overflow-wrap: anywhere;
|
|
76
|
-
}
|
|
91
|
+
overflow-wrap: anywhere;
|
|
77
92
|
}
|
|
78
93
|
|
|
79
94
|
.cl-h2 {
|
|
80
|
-
@extend %h2;
|
|
95
|
+
@extend %cl-h2;
|
|
81
96
|
|
|
82
|
-
@include spacing-before-auto($spacing-large);
|
|
97
|
+
@include spacing-before-auto($spacing-large + $spacing-tiny);
|
|
83
98
|
|
|
84
|
-
|
|
85
|
-
overflow-wrap: anywhere;
|
|
86
|
-
}
|
|
99
|
+
overflow-wrap: anywhere;
|
|
87
100
|
}
|
|
88
101
|
|
|
89
102
|
.cl-h3 {
|
|
90
|
-
@extend %h3;
|
|
103
|
+
@extend %cl-h3;
|
|
91
104
|
|
|
92
105
|
@include spacing-before-auto($spacing-large);
|
|
93
106
|
|
|
94
|
-
|
|
95
|
-
overflow-wrap: anywhere;
|
|
96
|
-
}
|
|
107
|
+
overflow-wrap: anywhere;
|
|
97
108
|
}
|
|
98
109
|
|
|
99
110
|
.cl-h4,
|
|
100
111
|
.cl-h5,
|
|
101
112
|
.cl-h6 {
|
|
102
|
-
@extend %h4;
|
|
113
|
+
@extend %cl-h4;
|
|
103
114
|
|
|
104
115
|
margin-top: $spacing-large;
|
|
105
116
|
overflow-wrap: anywhere;
|
|
@@ -108,23 +119,21 @@ body {
|
|
|
108
119
|
main {
|
|
109
120
|
// apply style to typical html elements only in <main>, so it does not interfer with header/footer
|
|
110
121
|
h1 {
|
|
111
|
-
@extend %h1;
|
|
122
|
+
@extend %cl-h1;
|
|
112
123
|
|
|
113
124
|
@include spacing-before-auto($spacing-small); // h1 is only used in special places
|
|
114
125
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
126
|
+
color: var(--cl-color-text);
|
|
127
|
+
overflow-wrap: anywhere;
|
|
118
128
|
}
|
|
119
129
|
|
|
120
130
|
h2 {
|
|
121
|
-
@extend %h2;
|
|
131
|
+
@extend %cl-h2;
|
|
122
132
|
|
|
123
|
-
@include spacing-before-auto($spacing-large);
|
|
133
|
+
@include spacing-before-auto($spacing-large + $spacing-tiny);
|
|
124
134
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
135
|
+
color: var(--cl-color-text);
|
|
136
|
+
overflow-wrap: anywhere;
|
|
128
137
|
|
|
129
138
|
&:first-child {
|
|
130
139
|
@include spacing-before-auto($spacing-medium);
|
|
@@ -132,13 +141,12 @@ main {
|
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
h3 {
|
|
135
|
-
@extend %h3;
|
|
144
|
+
@extend %cl-h3;
|
|
136
145
|
|
|
137
|
-
@include spacing-before-auto($spacing-
|
|
146
|
+
@include spacing-before-auto($spacing-large);
|
|
138
147
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
148
|
+
color: var(--cl-color-text);
|
|
149
|
+
overflow-wrap: anywhere;
|
|
142
150
|
|
|
143
151
|
&:first-child {
|
|
144
152
|
@include spacing-before-auto($spacing-medium);
|
|
@@ -148,16 +156,16 @@ main {
|
|
|
148
156
|
h4,
|
|
149
157
|
h5,
|
|
150
158
|
h6 {
|
|
151
|
-
@extend %h4;
|
|
159
|
+
@extend %cl-h4;
|
|
152
160
|
|
|
153
161
|
@include spacing-before-auto($spacing-medium);
|
|
154
162
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
163
|
+
color: var(--cl-color-text);
|
|
164
|
+
overflow-wrap: anywhere;
|
|
158
165
|
}
|
|
159
166
|
|
|
160
167
|
p {
|
|
168
|
+
color: var(--cl-color-text);
|
|
161
169
|
overflow-wrap: anywhere;
|
|
162
170
|
}
|
|
163
171
|
|
|
@@ -167,34 +175,11 @@ main {
|
|
|
167
175
|
}
|
|
168
176
|
|
|
169
177
|
small {
|
|
170
|
-
@extend %p-small;
|
|
178
|
+
@extend %cl-p-small;
|
|
171
179
|
}
|
|
172
180
|
|
|
173
181
|
label {
|
|
174
|
-
@extend %p-label;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// --- ruler -------------------------------------------------------------------
|
|
178
|
-
|
|
179
|
-
hr {
|
|
180
|
-
$typography-hr-spacing: 2rem;
|
|
181
|
-
|
|
182
|
-
@include spacing-before-auto($typography-hr-spacing);
|
|
183
|
-
|
|
184
|
-
& {
|
|
185
|
-
border: 0;
|
|
186
|
-
border-bottom: px(2) solid $color-line;
|
|
187
|
-
margin-bottom: $typography-hr-spacing;
|
|
188
|
-
opacity: 1;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
&.cl-spacing-small {
|
|
192
|
-
@include spacing-before-auto($spacing-small);
|
|
193
|
-
|
|
194
|
-
& {
|
|
195
|
-
margin-bottom: $spacing-small;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
182
|
+
@extend %cl-p-label;
|
|
198
183
|
}
|
|
199
184
|
|
|
200
185
|
// --- code & monospace --------------------------------------------------------
|
|
@@ -203,7 +188,9 @@ main {
|
|
|
203
188
|
kbd,
|
|
204
189
|
code,
|
|
205
190
|
samp {
|
|
206
|
-
@extend %p-pre;
|
|
191
|
+
@extend %cl-p-pre;
|
|
192
|
+
|
|
193
|
+
color: var(--cl-color-text);
|
|
207
194
|
}
|
|
208
195
|
|
|
209
196
|
code {
|
|
@@ -212,7 +199,6 @@ main {
|
|
|
212
199
|
}
|
|
213
200
|
|
|
214
201
|
pre {
|
|
215
|
-
background-color: $color-ci-haze;
|
|
216
202
|
padding: $spacing-tiny;
|
|
217
203
|
|
|
218
204
|
code {
|
|
@@ -221,11 +207,9 @@ main {
|
|
|
221
207
|
}
|
|
222
208
|
|
|
223
209
|
kbd {
|
|
224
|
-
|
|
225
|
-
border: px(1) solid $color-ci-silver;
|
|
210
|
+
border: px(1) solid $color-ci-night;
|
|
226
211
|
border-radius: px(4);
|
|
227
|
-
|
|
228
|
-
color: $color-ci-dim;
|
|
212
|
+
font-size: 0.8em;
|
|
229
213
|
margin: 0 $spacing-micro;
|
|
230
214
|
padding: 0 $spacing-micro;
|
|
231
215
|
}
|
|
@@ -233,29 +217,34 @@ main {
|
|
|
233
217
|
// --- block quotes ----------------------------------------------------------
|
|
234
218
|
|
|
235
219
|
blockquote {
|
|
236
|
-
|
|
220
|
+
@include cl-accent;
|
|
221
|
+
|
|
222
|
+
border-left: $bar-ui-width solid var(--cl-color-accent);
|
|
237
223
|
padding-left: calc($spacing-medium - $bar-ui-width);
|
|
224
|
+
}
|
|
238
225
|
|
|
239
|
-
|
|
240
|
-
border-left: $bar-ui-width solid $color-primary;
|
|
241
|
-
}
|
|
226
|
+
// --- lists -------------------------------------------------------------------
|
|
242
227
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
228
|
+
// see Lists.scss
|
|
229
|
+
}
|
|
246
230
|
|
|
247
|
-
|
|
248
|
-
border-left: $bar-ui-width solid $color-ci-smoke; // same as normal bockquote
|
|
249
|
-
}
|
|
231
|
+
// --- ruler -------------------------------------------------------------------
|
|
250
232
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}
|
|
254
|
-
}
|
|
233
|
+
hr {
|
|
234
|
+
$typography-hr-spacing: 2rem;
|
|
255
235
|
|
|
256
|
-
|
|
236
|
+
@include spacing-before-auto($typography-hr-spacing);
|
|
257
237
|
|
|
258
|
-
|
|
238
|
+
border: 0;
|
|
239
|
+
border-bottom: $brand-line-width solid var(--cl-color-text);
|
|
240
|
+
margin-bottom: $typography-hr-spacing;
|
|
241
|
+
opacity: 1;
|
|
242
|
+
|
|
243
|
+
&.cl-spacing-small {
|
|
244
|
+
@include spacing-before-auto($spacing-small);
|
|
245
|
+
|
|
246
|
+
margin-bottom: $spacing-small;
|
|
247
|
+
}
|
|
259
248
|
}
|
|
260
249
|
|
|
261
250
|
// --- redefine bs utilities we use so we don't need to pull the whole set -----
|
|
@@ -291,16 +280,6 @@ main {
|
|
|
291
280
|
// --- text select -------------------------------------------------------------
|
|
292
281
|
|
|
293
282
|
::selection {
|
|
294
|
-
background: $color-ci-
|
|
283
|
+
background: $color-ci-night;
|
|
295
284
|
color: $color-ci-white;
|
|
296
285
|
}
|
|
297
|
-
|
|
298
|
-
// --- text colors -------------------------------------------------------------
|
|
299
|
-
|
|
300
|
-
.color-ci-blue {
|
|
301
|
-
color: $color-ci-blue;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.color-ci-red {
|
|
305
|
-
color: $color-ci-red;
|
|
306
|
-
}
|