@castlabs/ui 7.0.1 → 7.0.3

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.
Files changed (40) hide show
  1. package/dist/castlabs-ui.common.js +4 -4
  2. package/dist/castlabs-ui.common.js.map +1 -1
  3. package/dist/castlabs-ui.css +2 -2
  4. package/dist/castlabs-ui.umd.js +7 -7
  5. package/dist/castlabs-ui.umd.js.map +1 -1
  6. package/package.json +1 -1
  7. package/src/components/ClAlert/style.scss +0 -4
  8. package/src/components/ClBadge/style.variables.scss +9 -7
  9. package/src/components/ClButton/style.scss +5 -3
  10. package/src/components/ClCard/style.scss +1 -0
  11. package/src/components/ClCard/style.variables.scss +1 -1
  12. package/src/components/ClDropdown/style.scss +10 -9
  13. package/src/components/ClDropzone/style.scss +1 -1
  14. package/src/components/ClFooter/style.scss +1 -0
  15. package/src/components/ClList/style.variables.scss +1 -2
  16. package/src/components/ClPagination/style.scss +1 -1
  17. package/src/components/ClTabs/style.scss +6 -0
  18. package/src/components/ClToggle/style.scss +6 -1
  19. package/src/components/ClTooltip/style.scss +44 -0
  20. package/src/components/form/ClField/style.scss +1 -2
  21. package/src/components/form/ClFieldCheck/style.scss +2 -4
  22. package/src/components/form/ClFieldFile/style.scss +5 -4
  23. package/src/components/form/ClFieldGroup/style.scss +60 -38
  24. package/src/components/form/ClFieldInput/style.scss +2 -9
  25. package/src/components/form/ClFieldSelect/style.scss +1 -1
  26. package/src/components/form/ClForm/style.scss +1 -1
  27. package/src/components/modal/ClModal/style.scss +1 -1
  28. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +21 -17
  29. package/src/components/navigation/ClNavTop/style.scss +2 -1
  30. package/src/components/table/ClTable/style.variables.scss +2 -14
  31. package/src/components/table/ClTableCel/Audit/style.scss +1 -1
  32. package/src/components/table/ClTableCel/Boolean/style.scss +1 -1
  33. package/src/components/text/ClLinkExternal/style.scss +3 -1
  34. package/src/components/widget/ClCookieBanner/style.scss +9 -2
  35. package/src/styles/abstracts/color.scss +27 -8
  36. package/src/styles/components/button.variables.scss +2 -2
  37. package/src/styles/components/form.variables.scss +6 -6
  38. package/src/styles/layout/typography.scss +1 -0
  39. package/src/styles/layout/typography.variables.scss +2 -2
  40. package/src/styles/vendors/castlabs.scss +4 -4
@@ -68,13 +68,13 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
68
68
  // ------------------------------------------------------------
69
69
  @extend %cl-p-nav;
70
70
 
71
- $background: $sidenav-color-account;
72
- $foreground: $color-ci-eggshell;
73
-
71
+ #{'--cl-color-background'}: $sidenav-color-account;
72
+ #{'--cl-color-text'}: $color-ci-eggshell;
73
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
74
74
  align-items: center;
75
- background-color: $background;
75
+ background-color: var(--cl-color-background);
76
76
  border-bottom: 0;
77
- color: $foreground;
77
+ color: var(--cl-color-text);
78
78
  display: flex;
79
79
  flex-direction: row;
80
80
  font-weight: 500;
@@ -84,15 +84,15 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
84
84
  padding: 0 $spacing-small;
85
85
 
86
86
  a {
87
- @include typography-link($foreground, $foreground, 0);
88
- @include cl-color-focus-outline($foreground);
87
+ @include typography-link(var(--cl-color-text), var(--cl-color-text), 0);
88
+ @include cl-color-focus-outline(var(--cl-color-focus), 0);
89
89
 
90
90
  line-height: 1;
91
91
  padding-bottom: 0;
92
92
 
93
93
  &:first-of-type {
94
94
  // the username
95
- @include cl-nav-fadeout($background);
95
+ @include cl-nav-fadeout(var(--cl-color-background));
96
96
 
97
97
  margin-right: $spacing-micro;
98
98
  width: 100%;
@@ -101,7 +101,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
101
101
  // user icon
102
102
  @include cl-fontawesome('\f2bd');
103
103
 
104
- color: $color-ci-haze;
104
+ color: var(--cl-color-text);
105
105
  font-size: px(22);
106
106
  line-height: 1;
107
107
  margin-right: $spacing-tiny;
@@ -120,6 +120,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
120
120
  details.cl-nav-organization {
121
121
  #{'--cl-color-text'}: $color-ci-eggshell;
122
122
  #{'--cl-color-background'}: $sidenav-color-organization;
123
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
123
124
  background-color: var(--cl-color-background);
124
125
  color: var(--cl-color-text);
125
126
  display: block;
@@ -187,11 +188,12 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
187
188
  box-shadow: -8px 0 4px var(--cl-color-background);
188
189
  color: $color-ci-clay;
189
190
  display: flex;
190
- height: calc(100% - 4px);
191
+ font-size: px(18);
192
+ height: calc(100% - 8px); // give room for focus outline
191
193
  justify-content: flex-start;
192
194
  position: absolute;
193
195
  right: 4px;
194
- top: 2px;
196
+ top: 4px;
195
197
  width: calc($spacing-small * 2 - 2px);
196
198
  }
197
199
 
@@ -203,7 +205,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
203
205
  }
204
206
 
205
207
  a.cl-nav-organization {
206
- @include cl-color-focus-outline($color-ci-eggshell);
208
+ @include cl-color-focus-outline;
207
209
  }
208
210
 
209
211
  details.cl-nav-organization {
@@ -215,7 +217,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
215
217
  padding-bottom: $spacing-tiny;
216
218
 
217
219
  summary {
218
- border-bottom: 2px solid $color-ci-clay;
220
+ border-bottom: $brand-line-width solid $sidenav-color-separator;
219
221
  margin-bottom: $spacing-tiny;
220
222
  }
221
223
 
@@ -228,6 +230,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
228
230
  .cl-dropdown-item {
229
231
  @include cl-color-focus-outline(var(--cl-color-text));
230
232
 
233
+ color: var(--cl-color-text);
231
234
  line-height: 1;
232
235
  padding: $spacing-small;
233
236
 
@@ -246,7 +249,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
246
249
  }
247
250
 
248
251
  &:hover:not(.active) {
249
- background-color: $color-ci-night;
252
+ background-color: $color-ci-red;
250
253
  }
251
254
  }
252
255
 
@@ -271,7 +274,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
271
274
  @extend %cl-p-nav;
272
275
 
273
276
  @include typography-link($sidenav-color-text, $sidenav-color-text, 0);
274
- @include cl-color-focus-outline($sidenav-color-text);
277
+ @include cl-color-focus-outline;
275
278
 
276
279
  display: inline-block;
277
280
  font-weight: 500;
@@ -301,7 +304,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
301
304
  }
302
305
 
303
306
  &:hover {
304
- background-color: var(--cl-color-highlight);
307
+ color: $color-ci-red;
305
308
  }
306
309
 
307
310
  &.active {
@@ -335,6 +338,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
335
338
  .cl-dropdown {
336
339
  #{'--cl-color-text'}: $color-ci-eggshell;
337
340
  #{'--cl-color-background'}: $sidenav-color-app;
341
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
338
342
  background-color: var(--cl-color-background);
339
343
  color: var(--cl-color-text);
340
344
 
@@ -345,7 +349,7 @@ $sidenav-color-app: #3b4253; // color.adjust($sidenav-color-account, $lightness:
345
349
 
346
350
  &[open] {
347
351
  summary {
348
- border-bottom: 1px solid $sidenav-color-separator;
352
+ border-bottom: $brand-line-width solid $sidenav-color-separator;
349
353
  }
350
354
  }
351
355
 
@@ -8,6 +8,7 @@
8
8
  .cl-nav-top {
9
9
  // first/top line in content area
10
10
  @extend %section-padding;
11
+ @extend %cl-color-night;
11
12
 
12
13
  @include spacing-before(0);
13
14
 
@@ -156,7 +157,7 @@
156
157
 
157
158
  &::after {
158
159
  // we use a block item, not a border, so content does not jump
159
- background-color: $color-ci-silver;
160
+ background-color: $color-ci-clay;
160
161
  content: '';
161
162
  display: block;
162
163
  height: 100%;
@@ -136,19 +136,7 @@ $table-lineheight: 1.2em;
136
136
  }
137
137
 
138
138
  %cl-table-data-light {
139
- tbody {
140
- tr {
141
- &:nth-child(odd) td {
142
- background-color: $color-ci-eggshell;
143
- }
144
- }
145
- }
146
-
147
- tr:nth-child(odd) .cl-td-links {
148
- background-color: $color-ci-eggshell;
149
- }
150
-
151
- tr:nth-child(even) .cl-td-links {
152
- background-color: var(--cl-color-highlight);
139
+ tbody tr td {
140
+ background-color: var(--cl-color-background);
153
141
  }
154
142
  }
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .cl-td-audit {
13
- color: $color-ci-silver;
13
+ color: $color-ci-clay;
14
14
  overflow-wrap: unset;
15
15
  text-align: center;
16
16
  width: 0.9em;
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .fa-minus::before {
13
- color: $color-ci-silver;
13
+ color: $color-ci-clay;
14
14
  }
15
15
  }
16
16
  }
@@ -60,12 +60,14 @@ a.cl-a-none:not(.btn) {
60
60
  .cl-a-quickaction {
61
61
  @extend %cl-a-btn;
62
62
  @extend %cl-a-transparent;
63
+ @include cl-color-focus-outline(var(--cl-color-focus), 2px);
63
64
 
65
+ border-radius: 0;
64
66
  margin-left: $spacing-tiny;
65
67
  text-decoration: none;
66
68
 
67
69
  &:not(:hover) {
68
- color: $color-ci-silver;
70
+ color: $color-ci-clay;
69
71
  }
70
72
  }
71
73
 
@@ -29,8 +29,15 @@
29
29
  width: calc(100% - $spacing-small);
30
30
 
31
31
  .card-body {
32
- padding-left: 0;
33
- padding-right: 0;
32
+ padding-left: $spacing-small;
33
+ padding-right: $spacing-small;
34
+
35
+ .cl-spacing-box.text-center {
36
+ > * {
37
+ margin-left: $spacing-tiny;
38
+ margin-right: $spacing-tiny;
39
+ }
40
+ }
34
41
  }
35
42
  }
36
43
 
@@ -32,7 +32,7 @@ $color-ci-cloud: $color-ci-ash;
32
32
  $color-ci-silver: $color-ci-clay;
33
33
  $color-ci-smoke: $color-ci-clay;
34
34
  $color-ci-haze: $color-ci-eggshell;
35
- $color-dark: $color-ci-cloud;
35
+ $color-dark: $color-ci-ash;
36
36
 
37
37
  $color-ci-green: #8cd867; //2a7a5c;
38
38
  $color-ci-orange: #d1ac00; // fec671; //f18f01;
@@ -55,19 +55,23 @@ $color-focus: $color-ci-night;
55
55
  $color-background: $color-ci-white;
56
56
  $color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
57
57
 
58
- $color-line: $color-ci-smoke;
59
- $color-line-focus: $color-ci-silver;
58
+ $color-line: $color-ci-clay;
59
+ $color-line-focus: $color-ci-clay;
60
60
 
61
61
  $bar-ui-width: px(4);
62
62
 
63
- @mixin cl-color-focus-outline($color: $color-ci-ash, $offset: -2px) {
63
+ @mixin cl-color-focus-outline-raw($color: var(--cl-color-focus), $offset: -3px) {
64
+ box-shadow: none; // disable BS outlines
65
+ outline: 1px dashed $color;
66
+ outline-offset: $offset;
67
+ z-index: 100;
68
+ }
69
+
70
+ @mixin cl-color-focus-outline($color: var(--cl-color-focus), $offset: -3px) {
64
71
  &:focus,
65
72
  &:focus-visible,
66
73
  &:focus-within {
67
- box-shadow: none; // disable BS outlines
68
- outline: 1px dashed $color;
69
- outline-offset: $offset;
70
- z-index: 100;
74
+ @include cl-color-focus-outline-raw($color, $offset);
71
75
  }
72
76
  }
73
77
 
@@ -131,6 +135,7 @@ $bar-ui-width: px(4);
131
135
  #{'--cl-color-link'}: $color-ci-berry;
132
136
  #{'--cl-color-active'}: $color-ci-berry;
133
137
  #{'--cl-color-hover'}: $color-ci-red;
138
+ #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
134
139
  }
135
140
 
136
141
  %cl-color-night-outline {
@@ -142,6 +147,7 @@ $bar-ui-width: px(4);
142
147
  #{'--cl-color-accent'}: $color-ci-night;
143
148
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
144
149
  #{'--cl-color-link'}: $color-ci-berry;
150
+ #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
145
151
  }
146
152
 
147
153
  %cl-color-red {
@@ -152,6 +158,7 @@ $bar-ui-width: px(4);
152
158
  #{'--cl-color-accent'}: $color-ci-eggshell;
153
159
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
154
160
  #{'--cl-color-link'}: $color-ci-eggshell;
161
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
155
162
  }
156
163
 
157
164
  %cl-color-red-outline {
@@ -161,6 +168,7 @@ $bar-ui-width: px(4);
161
168
  #{'--cl-color-accent'}: $color-ci-red;
162
169
  #{'--cl-color-highlight'}: rgba(#fff, 0.85);
163
170
  #{'--cl-color-link'}: $color-ci-berry;
171
+ #{'--cl-color-focus'}: rgba($color-ci-red, 0.5);
164
172
  }
165
173
 
166
174
  %cl-color-sky {
@@ -171,6 +179,7 @@ $bar-ui-width: px(4);
171
179
  #{'--cl-color-accent'}: $color-ci-night;
172
180
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
173
181
  #{'--cl-color-link'}: $color-ci-night;
182
+ #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
174
183
  }
175
184
 
176
185
  %cl-color-night {
@@ -181,6 +190,7 @@ $bar-ui-width: px(4);
181
190
  #{'--cl-color-accent'}: $color-ci-eggshell;
182
191
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
183
192
  #{'--cl-color-link'}: $color-ci-eggshell;
193
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
184
194
  }
185
195
 
186
196
  %cl-color-eggshell {
@@ -191,6 +201,7 @@ $bar-ui-width: px(4);
191
201
  #{'--cl-color-accent'}: $color-ci-night;
192
202
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
193
203
  #{'--cl-color-link'}: $color-ci-berry;
204
+ #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
194
205
  }
195
206
 
196
207
  %cl-color-clay {
@@ -201,6 +212,7 @@ $bar-ui-width: px(4);
201
212
  #{'--cl-color-accent'}: $color-ci-night;
202
213
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
203
214
  #{'--cl-color-link'}: $color-ci-night;
215
+ #{'--cl-color-focus'}: rgba($color-ci-night, 0.5);
204
216
  }
205
217
 
206
218
  %cl-color-ash {
@@ -211,6 +223,7 @@ $bar-ui-width: px(4);
211
223
  #{'--cl-color-accent'}: $color-ci-eggshell;
212
224
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
213
225
  #{'--cl-color-link'}: $color-ci-eggshell;
226
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
214
227
  }
215
228
 
216
229
  %cl-color-petrol {
@@ -221,6 +234,7 @@ $bar-ui-width: px(4);
221
234
  #{'--cl-color-accent'}: $color-ci-eggshell;
222
235
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
223
236
  #{'--cl-color-link'}: $color-ci-eggshell;
237
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
224
238
  }
225
239
 
226
240
  %cl-color-berry {
@@ -231,6 +245,7 @@ $bar-ui-width: px(4);
231
245
  #{'--cl-color-accent'}: $color-ci-eggshell;
232
246
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
233
247
  #{'--cl-color-link'}: $color-ci-eggshell;
248
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
234
249
  }
235
250
 
236
251
  %cl-color-transparent {
@@ -241,6 +256,7 @@ $bar-ui-width: px(4);
241
256
  #{'--cl-color-accent'}: $color-ci-eggshell;
242
257
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
243
258
  #{'--cl-color-link'}: $color-ci-eggshell;
259
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
244
260
  }
245
261
 
246
262
  %cl-color-disabled {
@@ -251,6 +267,7 @@ $bar-ui-width: px(4);
251
267
  #{'--cl-color-accent'}: $color-disabled;
252
268
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
253
269
  #{'--cl-color-link'}: $color-disabled;
270
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
254
271
  }
255
272
 
256
273
  %cl-color-faded {
@@ -261,6 +278,7 @@ $bar-ui-width: px(4);
261
278
  #{'--cl-color-accent'}: $color-ci-ash;
262
279
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
263
280
  #{'--cl-color-link'}: $color-ci-ash;
281
+ #{'--cl-color-focus'}: rgba($color-ci-ash, 0.5);
264
282
  }
265
283
 
266
284
  %cl-color-none {
@@ -268,6 +286,7 @@ $bar-ui-width: px(4);
268
286
  #{'--cl-color-border'}: transparent;
269
287
  #{'--cl-color-highlight'}: rgba(#fff, 0.1);
270
288
  #{'--cl-color-link'}: $color-ci-eggshell;
289
+ #{'--cl-color-focus'}: rgba($color-ci-eggshell, 0.75);
271
290
  }
272
291
 
273
292
  // ----------------------------------------------
@@ -81,10 +81,10 @@
81
81
  }
82
82
  }
83
83
 
84
- @mixin cl-button-focus-outline($color) {
84
+ @mixin cl-button-focus-outline() {
85
85
  .btn-check:focus + &,
86
86
  &:focus {
87
- @include cl-color-focus-outline($color, -3px);
87
+ @include cl-color-focus-outline;
88
88
 
89
89
  box-shadow: none;
90
90
  }
@@ -33,18 +33,18 @@ $form-spacing-label-input: px(2);
33
33
  @include typography-font($typography-monospace-font-list, 400, px(17), 1.59em, 0.025em, 80%);
34
34
  }
35
35
 
36
- @mixin form-focus-embed {
37
- background-color: var(--cl-color-highlight);
38
- border-color: $color-focus;
36
+ @mixin cl-form-focus-embed {
37
+ @include cl-button-focus-outline; // additional inner outline
38
+
39
+ border-color: $color-focus !important;
39
40
  box-shadow: none;
40
41
  color: $color-focus;
41
- outline: 0;
42
42
  }
43
43
 
44
- @mixin form-focus {
44
+ @mixin cl-form-focus {
45
45
  &:focus,
46
46
  &:focus:first-child,
47
47
  &:focus:last-child {
48
- @include form-focus-embed;
48
+ @include cl-form-focus-embed;
49
49
  }
50
50
  }
@@ -189,6 +189,7 @@ main {
189
189
  code,
190
190
  samp {
191
191
  @extend %cl-p-pre;
192
+ @include cl-color-focus-outline;
192
193
 
193
194
  color: var(--cl-color-text);
194
195
  }
@@ -92,7 +92,7 @@ $typography-monospace-line-height: 1.375;
92
92
 
93
93
  @mixin typography-link-invisible {
94
94
  @include typography-link(inherit, inherit, 0);
95
- @include cl-color-focus-outline($color-text, 1px);
95
+ @include cl-color-focus-outline(var(--cl-color-focus), 2px);
96
96
  }
97
97
 
98
98
  @mixin cl-btn-a($line-height-px) {
@@ -129,7 +129,7 @@ $typography-monospace-line-height: 1.375;
129
129
 
130
130
  %cl-a {
131
131
  @include typography-link(var(--cl-color-link), $color-ci-red);
132
- @include cl-color-focus-outline(var(--cl-color-link), 1px);
132
+ @include cl-color-focus-outline(var(--cl-color-focus), 2px);
133
133
  }
134
134
 
135
135
  %cl-a-text {
@@ -1,17 +1,17 @@
1
1
  .cl-theme-v2 {
2
2
  .cl-section-primary.cl-section-tight {
3
- background-color: $color-ci-haze;
3
+ background-color: $color-ci-eggshell;
4
4
 
5
5
  h1 {
6
- color: $color-ci-dusk;
6
+ color: $color-ci-night;
7
7
  }
8
8
  }
9
9
 
10
10
  .cl-nav-top {
11
- border-bottom: 2px solid $color-ci-red;
11
+ border-bottom: $brand-line-width solid $color-ci-red;
12
12
 
13
13
  .col-12 {
14
- height: calc(3rem - 2px) !important; // sass-lint:disable-line no-important
14
+ height: calc(3rem - $brand-line-width) !important; // sass-lint:disable-line no-important
15
15
  }
16
16
  }
17
17
  }