@castlabs/ui 6.0.2 → 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 +30 -9
- 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
|
@@ -5,9 +5,16 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines how the stuff inside the sidenav drawer looks like.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$sidenav-
|
|
8
|
+
@use 'sass:color';
|
|
9
|
+
|
|
10
|
+
$sidenav-background: $color-ci-eggshell;
|
|
11
|
+
$sidenav-color-text: $color-ci-night;
|
|
12
|
+
$sidenav-color-background: $color-ci-eggshell;
|
|
13
|
+
$sidenav-color-separator: rgba(#fff, 0.25);
|
|
14
|
+
|
|
15
|
+
$sidenav-color-account: $color-ci-night;
|
|
16
|
+
$sidenav-color-organization: #313644; // color.adjust($sidenav-color-account, $lightness: 5%);
|
|
17
|
+
$sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness: 10%);
|
|
11
18
|
|
|
12
19
|
@mixin cl-nav-fadeout($color) {
|
|
13
20
|
overflow: hidden;
|
|
@@ -38,7 +45,7 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
38
45
|
// --- meta/common -----------------------------------------------------------
|
|
39
46
|
|
|
40
47
|
.cl-label {
|
|
41
|
-
@extend %p-
|
|
48
|
+
@extend %cl-p-label;
|
|
42
49
|
@extend %cl-grid-flex-centered;
|
|
43
50
|
|
|
44
51
|
height: 2.5rem;
|
|
@@ -59,10 +66,10 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
59
66
|
|
|
60
67
|
.cl-nav-user {
|
|
61
68
|
// ------------------------------------------------------------
|
|
62
|
-
@extend %p-nav;
|
|
69
|
+
@extend %cl-p-nav;
|
|
63
70
|
|
|
64
|
-
$background: $color-
|
|
65
|
-
$foreground: $color-ci-
|
|
71
|
+
$background: $sidenav-color-account;
|
|
72
|
+
$foreground: $color-ci-eggshell;
|
|
66
73
|
|
|
67
74
|
align-items: center;
|
|
68
75
|
background-color: $background;
|
|
@@ -70,38 +77,34 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
70
77
|
color: $foreground;
|
|
71
78
|
display: flex;
|
|
72
79
|
flex-direction: row;
|
|
80
|
+
font-weight: 500;
|
|
73
81
|
justify-content: space-between;
|
|
82
|
+
letter-spacing: 0.025em;
|
|
74
83
|
min-height: $header-nav-height;
|
|
75
84
|
padding: 0 $spacing-small;
|
|
76
85
|
|
|
77
86
|
a {
|
|
78
|
-
@include typography-
|
|
79
|
-
@include color-focus-outline($foreground);
|
|
87
|
+
@include typography-link($foreground, $foreground, 0);
|
|
88
|
+
@include cl-color-focus-outline($foreground);
|
|
80
89
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
90
|
+
line-height: 1;
|
|
91
|
+
padding-bottom: 0;
|
|
84
92
|
|
|
85
93
|
&:first-of-type {
|
|
86
94
|
// the username
|
|
87
95
|
@include cl-nav-fadeout($background);
|
|
88
96
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
margin-top: -0.25em;
|
|
92
|
-
width: 100%;
|
|
93
|
-
}
|
|
97
|
+
margin-right: $spacing-micro;
|
|
98
|
+
width: 100%;
|
|
94
99
|
|
|
95
100
|
&::before {
|
|
96
101
|
// user icon
|
|
97
102
|
@include cl-fontawesome('\f2bd');
|
|
98
103
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
margin-right: $spacing-tiny;
|
|
104
|
-
}
|
|
104
|
+
color: $color-ci-haze;
|
|
105
|
+
font-size: px(22);
|
|
106
|
+
line-height: 1;
|
|
107
|
+
margin-right: $spacing-tiny;
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
}
|
|
@@ -115,31 +118,28 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
115
118
|
div.cl-nav-organization,
|
|
116
119
|
a.cl-nav-organization,
|
|
117
120
|
details.cl-nav-organization {
|
|
118
|
-
#{'--
|
|
119
|
-
#{'--
|
|
120
|
-
background-color: var(--
|
|
121
|
-
color: var(--
|
|
121
|
+
#{'--cl-color-text'}: $color-ci-eggshell;
|
|
122
|
+
#{'--cl-color-background'}: $sidenav-color-organization;
|
|
123
|
+
background-color: var(--cl-color-background);
|
|
124
|
+
color: var(--cl-color-text);
|
|
122
125
|
display: block;
|
|
123
126
|
overflow: hidden;
|
|
124
127
|
text-decoration: none;
|
|
125
128
|
|
|
126
129
|
label {
|
|
127
|
-
@extend %p-
|
|
128
|
-
|
|
129
|
-
color: var(--element-fg-color);
|
|
130
|
+
@extend %cl-p-label;
|
|
130
131
|
}
|
|
131
132
|
|
|
132
133
|
.cl-nav-organization-name {
|
|
133
134
|
display: flex;
|
|
134
135
|
flex-direction: column;
|
|
135
136
|
justify-content: space-around;
|
|
136
|
-
min-height: 42px;
|
|
137
137
|
overflow: hidden;
|
|
138
138
|
white-space: nowrap;
|
|
139
139
|
|
|
140
140
|
p {
|
|
141
141
|
font-size: px(16);
|
|
142
|
-
font-weight:
|
|
142
|
+
font-weight: 500;
|
|
143
143
|
letter-spacing: 0.03125em;
|
|
144
144
|
margin-left: $spacing-medium + $spacing-micro;
|
|
145
145
|
margin-top: 0;
|
|
@@ -151,20 +151,19 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
151
151
|
// globe icon
|
|
152
152
|
@include cl-fontawesome('\f0ac');
|
|
153
153
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
154
|
+
display: block;
|
|
155
|
+
font-size: 22px;
|
|
156
|
+
left: calc(-24px - $spacing-micro);
|
|
157
|
+
position: absolute;
|
|
158
|
+
top: 0.15em;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
+ p {
|
|
164
163
|
// parent org
|
|
165
|
-
@extend %p-small;
|
|
164
|
+
@extend %cl-p-small;
|
|
166
165
|
|
|
167
|
-
color: $color-ci-
|
|
166
|
+
color: $color-ci-clay;
|
|
168
167
|
letter-spacing: 0;
|
|
169
168
|
line-height: 1.4; // avoids cutoff g/y
|
|
170
169
|
margin-top: -2px; // avoids cutoff g/y
|
|
@@ -176,26 +175,24 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
176
175
|
details.cl-nav-organization summary,
|
|
177
176
|
div.cl-nav-organization,
|
|
178
177
|
a.cl-nav-organization {
|
|
179
|
-
height:
|
|
180
|
-
padding: 0 $spacing-small;
|
|
178
|
+
min-height: 3.25rem;
|
|
179
|
+
padding: 0 $spacing-small $spacing-tiny;
|
|
181
180
|
position: relative;
|
|
182
181
|
|
|
183
182
|
&::after {
|
|
184
183
|
@include cl-fontawesome('\f078'); // chevron-down
|
|
185
184
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
width: calc($spacing-small * 2 - 2px);
|
|
198
|
-
}
|
|
185
|
+
align-items: center;
|
|
186
|
+
background-color: var(--cl-color-background);
|
|
187
|
+
box-shadow: -8px 0 4px var(--cl-color-background);
|
|
188
|
+
color: $color-ci-clay;
|
|
189
|
+
display: flex;
|
|
190
|
+
height: calc(100% - 4px);
|
|
191
|
+
justify-content: flex-start;
|
|
192
|
+
position: absolute;
|
|
193
|
+
right: 4px;
|
|
194
|
+
top: 2px;
|
|
195
|
+
width: calc($spacing-small * 2 - 2px);
|
|
199
196
|
}
|
|
200
197
|
|
|
201
198
|
&.active {
|
|
@@ -206,19 +203,19 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
206
203
|
}
|
|
207
204
|
|
|
208
205
|
a.cl-nav-organization {
|
|
209
|
-
@include color-focus-outline($color-ci-
|
|
206
|
+
@include cl-color-focus-outline($color-ci-eggshell);
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
details.cl-nav-organization {
|
|
213
210
|
summary {
|
|
214
|
-
@include color-focus-outline(var(--
|
|
211
|
+
@include cl-color-focus-outline(var(--cl-color-text));
|
|
215
212
|
}
|
|
216
213
|
|
|
217
214
|
&[open] {
|
|
218
215
|
padding-bottom: $spacing-tiny;
|
|
219
216
|
|
|
220
217
|
summary {
|
|
221
|
-
border-bottom: 2px solid $color-
|
|
218
|
+
border-bottom: 2px solid $color-ci-clay;
|
|
222
219
|
margin-bottom: $spacing-tiny;
|
|
223
220
|
}
|
|
224
221
|
|
|
@@ -229,22 +226,15 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
229
226
|
|
|
230
227
|
.cl-nav-item,
|
|
231
228
|
.cl-dropdown-item {
|
|
232
|
-
@include color-focus-outline(var(--
|
|
229
|
+
@include cl-color-focus-outline(var(--cl-color-text));
|
|
233
230
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
color: var(--element-fg-color);
|
|
237
|
-
line-height: 1;
|
|
238
|
-
padding: $spacing-small;
|
|
239
|
-
}
|
|
231
|
+
line-height: 1;
|
|
232
|
+
padding: $spacing-small;
|
|
240
233
|
|
|
241
234
|
&.active {
|
|
242
|
-
#{'--element-fg-color'}: $color-ci-dim;
|
|
243
|
-
#{'--element-bg-color'}: $color-ci-haze;
|
|
244
|
-
|
|
245
235
|
&::after {
|
|
246
236
|
// we use a block item, not a border, so content does not jump
|
|
247
|
-
background-color: $color-ci-
|
|
237
|
+
background-color: $color-ci-clay;
|
|
248
238
|
content: '';
|
|
249
239
|
display: block;
|
|
250
240
|
height: 100%;
|
|
@@ -256,7 +246,7 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
256
246
|
}
|
|
257
247
|
|
|
258
248
|
&:hover:not(.active) {
|
|
259
|
-
background-color: $color-ci-
|
|
249
|
+
background-color: $color-ci-night;
|
|
260
250
|
}
|
|
261
251
|
}
|
|
262
252
|
|
|
@@ -267,66 +257,9 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
267
257
|
}
|
|
268
258
|
}
|
|
269
259
|
|
|
270
|
-
.cl-nav-site {
|
|
271
|
-
// --- red site/product switcher ------------------------------
|
|
272
|
-
@extend %p-nav;
|
|
273
|
-
|
|
274
|
-
$background: $color-ci-red;
|
|
275
|
-
$foreground: $color-ci-white;
|
|
276
|
-
|
|
277
|
-
@include color-focus-outline($foreground);
|
|
278
|
-
|
|
279
|
-
& {
|
|
280
|
-
background-color: $background;
|
|
281
|
-
color: $foreground;
|
|
282
|
-
margin-bottom: $spacing-small;
|
|
283
|
-
margin-top: 0;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.dropdown-toggle {
|
|
287
|
-
border: 0;
|
|
288
|
-
color: $foreground;
|
|
289
|
-
font-size: px(18);
|
|
290
|
-
height: 4rem;
|
|
291
|
-
text-align: start;
|
|
292
|
-
width: 100%;
|
|
293
|
-
|
|
294
|
-
&:focus {
|
|
295
|
-
box-shadow: none;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.dropdown-menu {
|
|
300
|
-
background-color: $color-ci-red;
|
|
301
|
-
border: 0;
|
|
302
|
-
border-radius: 0;
|
|
303
|
-
box-shadow: 0 4px 0 $color-black-25a; // downward
|
|
304
|
-
width: 100%;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
li {
|
|
308
|
-
display: flex;
|
|
309
|
-
flex-direction: column;
|
|
310
|
-
height: 4rem;
|
|
311
|
-
justify-content: center;
|
|
312
|
-
overflow: hidden;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.dropdown-item {
|
|
316
|
-
@extend %p-nav;
|
|
317
|
-
|
|
318
|
-
@include typography-links($color-ci-white, $color-ci-red, 0);
|
|
319
|
-
|
|
320
|
-
& {
|
|
321
|
-
padding: 0.75em $spacing-small;
|
|
322
|
-
white-space: nowrap;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
|
|
327
260
|
.cl-nav-label {
|
|
328
261
|
// -----------------------------------------------------------
|
|
329
|
-
@extend %p-
|
|
262
|
+
@extend %cl-p-tag;
|
|
330
263
|
|
|
331
264
|
color: inherit !important; // sass-lint:disable-line no-important
|
|
332
265
|
margin-bottom: $spacing-tiny;
|
|
@@ -335,23 +268,24 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
335
268
|
|
|
336
269
|
.cl-nav-item {
|
|
337
270
|
// ------------------------------------------------------------
|
|
338
|
-
@extend %p-nav;
|
|
271
|
+
@extend %cl-p-nav;
|
|
339
272
|
|
|
340
|
-
@include typography-
|
|
341
|
-
@include color-focus-outline($sidenav-color-text);
|
|
273
|
+
@include typography-link($sidenav-color-text, $sidenav-color-text, 0);
|
|
274
|
+
@include cl-color-focus-outline($sidenav-color-text);
|
|
342
275
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
276
|
+
display: inline-block;
|
|
277
|
+
font-weight: 500;
|
|
278
|
+
letter-spacing: 0.025em;
|
|
279
|
+
line-height: 1.5em;
|
|
280
|
+
padding: $spacing-tiny $spacing-small;
|
|
281
|
+
position: relative;
|
|
282
|
+
width: 100%;
|
|
350
283
|
|
|
351
284
|
.cl-nav-item-info {
|
|
352
|
-
@extend %p-small;
|
|
285
|
+
@extend %cl-p-small;
|
|
353
286
|
|
|
354
|
-
color: $color-ci-
|
|
287
|
+
color: $color-ci-ash;
|
|
288
|
+
letter-spacing: 0.025em;
|
|
355
289
|
line-height: 1.4em;
|
|
356
290
|
margin-top: px(3);
|
|
357
291
|
|
|
@@ -360,30 +294,27 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
360
294
|
}
|
|
361
295
|
}
|
|
362
296
|
|
|
363
|
-
>
|
|
297
|
+
> .cl-badge {
|
|
364
298
|
position: absolute;
|
|
365
299
|
right: $spacing-small;
|
|
366
|
-
top: $spacing-tiny
|
|
300
|
+
top: $spacing-tiny;
|
|
367
301
|
}
|
|
368
302
|
|
|
369
|
-
&:hover
|
|
370
|
-
background-color:
|
|
303
|
+
&:hover {
|
|
304
|
+
background-color: var(--cl-color-highlight);
|
|
371
305
|
}
|
|
372
306
|
|
|
373
307
|
&.active {
|
|
374
|
-
@include typography-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
padding: $spacing-tiny $spacing-small;
|
|
381
|
-
position: relative;
|
|
382
|
-
}
|
|
308
|
+
@include typography-link($color-ci-red, $color-ci-red, 0);
|
|
309
|
+
|
|
310
|
+
// color: $color-ci-red;
|
|
311
|
+
display: inline-block;
|
|
312
|
+
padding: $spacing-tiny $spacing-small;
|
|
313
|
+
position: relative;
|
|
383
314
|
|
|
384
315
|
&::after {
|
|
385
316
|
// we use a block item, not a border, so content does not jump
|
|
386
|
-
background-color: $color-ci-
|
|
317
|
+
background-color: $color-ci-red;
|
|
387
318
|
content: '';
|
|
388
319
|
display: block;
|
|
389
320
|
height: 100%;
|
|
@@ -401,40 +332,42 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
401
332
|
}
|
|
402
333
|
}
|
|
403
334
|
|
|
404
|
-
.cl-dropdown
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
335
|
+
.cl-dropdown {
|
|
336
|
+
#{'--cl-color-text'}: $color-ci-eggshell;
|
|
337
|
+
#{'--cl-color-background'}: $sidenav-color-app;
|
|
338
|
+
background-color: var(--cl-color-background);
|
|
339
|
+
color: var(--cl-color-text);
|
|
409
340
|
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
top: 0;
|
|
419
|
-
width: $bar-ui-width;
|
|
341
|
+
summary {
|
|
342
|
+
border: 0;
|
|
343
|
+
padding-left: $spacing-small;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
&[open] {
|
|
347
|
+
summary {
|
|
348
|
+
border-bottom: 1px solid $sidenav-color-separator;
|
|
420
349
|
}
|
|
421
350
|
}
|
|
422
|
-
}
|
|
423
351
|
|
|
424
|
-
|
|
425
|
-
|
|
352
|
+
+ .cl-nav-item {
|
|
353
|
+
margin-top: $spacing-small;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
+ .cl-dropdown-arrow {
|
|
357
|
+
background-color: $sidenav-color-app;
|
|
358
|
+
}
|
|
426
359
|
}
|
|
427
360
|
|
|
428
361
|
.cl-nav-separator {
|
|
429
362
|
// -------------------------------------------------------
|
|
430
|
-
background-color: $color-ci-
|
|
363
|
+
background-color: $color-ci-clay;
|
|
431
364
|
border: 0;
|
|
432
|
-
height:
|
|
365
|
+
height: $brand-line-width;
|
|
433
366
|
margin: $spacing-small 0;
|
|
434
367
|
opacity: 1;
|
|
435
368
|
|
|
436
369
|
&:not([size]) {
|
|
437
|
-
height:
|
|
370
|
+
height: $brand-line-width;
|
|
438
371
|
}
|
|
439
372
|
}
|
|
440
373
|
}
|
|
@@ -444,11 +377,9 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
444
377
|
span:first-of-type::after {
|
|
445
378
|
@include cl-fontawesome('\f023');
|
|
446
379
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
top: inherit;
|
|
451
|
-
}
|
|
380
|
+
margin-left: $spacing-tiny;
|
|
381
|
+
opacity: 0.5;
|
|
382
|
+
top: inherit;
|
|
452
383
|
}
|
|
453
384
|
}
|
|
454
385
|
|
|
@@ -456,6 +387,7 @@ $sidenav-color-background: $color-ci-haze;
|
|
|
456
387
|
opacity: 0.5;
|
|
457
388
|
|
|
458
389
|
&:hover {
|
|
390
|
+
background-color: transparent;
|
|
459
391
|
cursor: not-allowed;
|
|
460
392
|
}
|
|
461
393
|
}
|
|
@@ -11,29 +11,6 @@
|
|
|
11
11
|
padding: $spacing-tiny 0;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
&-label {
|
|
15
|
-
@extend %p-tiny;
|
|
16
|
-
|
|
17
|
-
padding: $spacing-small;
|
|
18
|
-
|
|
19
|
-
&[data-bs-toggle] {
|
|
20
|
-
// small triangles for section labels
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
|
|
23
|
-
&::after {
|
|
24
|
-
content: '\f0d7';
|
|
25
|
-
display: inline-block;
|
|
26
|
-
font-family: 'Font Awesome 5 Free';
|
|
27
|
-
font-weight: 900;
|
|
28
|
-
margin-left: $spacing-micro;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.collapsed::after {
|
|
32
|
-
content: '\f0da';
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
14
|
ul {
|
|
38
15
|
list-style: none;
|
|
39
16
|
margin: 0;
|
|
@@ -9,31 +9,25 @@
|
|
|
9
9
|
$sidenav-width-open: 18rem;
|
|
10
10
|
$sidenav-width-closed: 0;
|
|
11
11
|
$sidenav-z-index: $layer-z-sidenav;
|
|
12
|
-
$sidenav-backdrop: $color-black-40a;
|
|
13
12
|
$sidenav-breakpoint: xl;
|
|
14
13
|
|
|
15
14
|
.cl-nav-side {
|
|
16
15
|
@include spacing-before(0);
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
z-index: $sidenav-z-index;
|
|
24
|
-
}
|
|
17
|
+
box-shadow: 1px 0 0 $color-ci-night;
|
|
18
|
+
left: 0;
|
|
19
|
+
position: fixed;
|
|
20
|
+
top: 0;
|
|
21
|
+
z-index: $sidenav-z-index;
|
|
25
22
|
|
|
26
23
|
.cl-nav-drawer {
|
|
27
24
|
@include spacing-before(0);
|
|
28
25
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
width: $sidenav-width-closed;
|
|
35
|
-
z-index: $sidenav-z-index + 1;
|
|
36
|
-
}
|
|
26
|
+
height: 100vh;
|
|
27
|
+
overflow-x: hidden;
|
|
28
|
+
position: relative;
|
|
29
|
+
width: $sidenav-width-closed;
|
|
30
|
+
z-index: $sidenav-z-index + 1;
|
|
37
31
|
|
|
38
32
|
> div {
|
|
39
33
|
height: 100%;
|
|
@@ -55,7 +49,7 @@ $sidenav-breakpoint: xl;
|
|
|
55
49
|
|
|
56
50
|
@include media-breakpoint-down($sidenav-breakpoint) {
|
|
57
51
|
~ nav .cl-nav-backdrop {
|
|
58
|
-
background-color: $
|
|
52
|
+
background-color: $color-ci-backdrop;
|
|
59
53
|
width: 100%; // show on small screens where sidenav overlaps content
|
|
60
54
|
}
|
|
61
55
|
}
|