@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.
Files changed (145) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/castlabs-logo-eggshell.svg +31 -162
  3. package/dist/assets/castlabs-logo.svg +31 -162
  4. package/dist/castlabs-ui-editor.css +1 -1
  5. package/dist/castlabs-ui-editor.umd.js +30 -30
  6. package/dist/castlabs-ui.common.js +5 -5
  7. package/dist/castlabs-ui.common.js.map +1 -1
  8. package/dist/castlabs-ui.core.js +28 -35
  9. package/dist/castlabs-ui.css +7 -7
  10. package/dist/castlabs-ui.module.js +28 -35
  11. package/dist/castlabs-ui.umd.js +13 -13
  12. package/dist/castlabs-ui.umd.js.map +1 -1
  13. package/package.json +18 -18
  14. package/src/assets/castlabs-logo-eggshell.svg +31 -162
  15. package/src/assets/castlabs-logo.svg +31 -162
  16. package/src/components/ClAlert/style.scss +46 -43
  17. package/src/components/ClBadge/style.scss +13 -15
  18. package/src/components/ClBadge/style.variables.scss +39 -33
  19. package/src/components/ClButton/style.scss +47 -249
  20. package/src/components/ClCard/style.scss +20 -20
  21. package/src/components/ClCard/style.variables.scss +121 -106
  22. package/src/components/ClDropdown/style.scss +47 -150
  23. package/src/components/ClDropzone/style.scss +4 -4
  24. package/src/components/ClFooter/style.scss +6 -105
  25. package/src/components/ClIconotron/style.scss +3 -8
  26. package/src/components/ClList/style.scss +10 -13
  27. package/src/components/ClList/style.variables.scss +27 -22
  28. package/src/components/ClPagination/style.scss +48 -85
  29. package/src/components/ClProgress/style.scss +8 -23
  30. package/src/components/ClSpinner/style.scss +1 -1
  31. package/src/components/ClTabs/style.scss +9 -9
  32. package/src/components/ClToggle/style.scss +18 -59
  33. package/src/components/ClTooltip/style.scss +9 -24
  34. package/src/components/ClWizard/style.scss +14 -12
  35. package/src/components/form/ClField/style.scss +4 -4
  36. package/src/components/form/ClFieldCheck/style.scss +25 -20
  37. package/src/components/form/ClFieldFile/style.scss +11 -13
  38. package/src/components/form/ClFieldGroup/style.scss +38 -4
  39. package/src/components/form/ClFieldInput/style.scss +15 -11
  40. package/src/components/form/ClFieldSelect/style.scss +6 -5
  41. package/src/components/form/ClFieldSet/style.scss +2 -2
  42. package/src/components/form/ClForm/style.scss +6 -8
  43. package/src/components/modal/ClModal/style.scss +50 -35
  44. package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +112 -180
  45. package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +0 -23
  46. package/src/components/navigation/ClNavSide/style.scss +11 -17
  47. package/src/components/navigation/ClNavTop/style.scss +39 -35
  48. package/src/components/section/ClSectionForm/style.scss +6 -3
  49. package/src/components/section/ClSectionHeadline/style.scss +23 -25
  50. package/src/components/table/ClTable/style.variables.scss +18 -69
  51. package/src/components/table/ClTableCel/Actions/style.scss +1 -1
  52. package/src/components/table/ClTableCel/Audit/style.scss +2 -4
  53. package/src/components/table/ClTableCel/Boolean/style.scss +1 -1
  54. package/src/components/table/ClTableCel/Checkbox/style.scss +2 -2
  55. package/src/components/table/ClTableCel/Code/style.scss +1 -1
  56. package/src/components/table/ClTableCel/Currency/style.scss +1 -1
  57. package/src/components/table/ClTableCel/Date/style.scss +1 -1
  58. package/src/components/table/ClTableCel/ID/style.scss +2 -2
  59. package/src/components/table/ClTableCel/Links/style.scss +10 -11
  60. package/src/components/table/ClTableCel/style.variables.scss +3 -3
  61. package/src/components/text/ClCopy/style.scss +4 -21
  62. package/src/components/text/ClHashtag/style.scss +7 -25
  63. package/src/components/text/ClLinkExternal/style.scss +21 -19
  64. package/src/components/text/ClOrg/style.scss +1 -19
  65. package/src/components/text/ClPlan/style.scss +7 -25
  66. package/src/components/text/ClRole/style.scss +7 -25
  67. package/src/components/widget/ClCookieBanner/style.scss +5 -1
  68. package/src/fonts/DMMono/DMMono.scss +36 -0
  69. package/src/fonts/DMMono/DM_Mono_300.woff2 +0 -0
  70. package/src/fonts/DMMono/DM_Mono_300italic.woff2 +0 -0
  71. package/src/fonts/DMMono/DM_Mono_400.woff2 +0 -0
  72. package/src/fonts/DMMono/DM_Mono_400italic.woff2 +0 -0
  73. package/src/fonts/DMMono/DM_Mono_500.woff2 +0 -0
  74. package/src/fonts/DMMono/DM_Mono_500italic.woff2 +0 -0
  75. package/src/fonts/FontAwesome5/FontAwesome5.scss +2 -2
  76. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2 +0 -0
  77. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2 +0 -0
  78. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2 +0 -0
  79. package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +21 -0
  80. package/src/styles/_global.scss +2 -0
  81. package/src/styles/abstracts/brand.scss +9 -0
  82. package/src/styles/abstracts/color.scss +243 -98
  83. package/src/styles/abstracts/spacing.scss +2 -2
  84. package/src/styles/abstracts/tools.scss +0 -82
  85. package/src/styles/assets/fontawesome.scss +2 -0
  86. package/src/styles/assets/fontawesome.variables.scss +88 -0
  87. package/src/styles/assets/logo.scss +30 -9
  88. package/src/styles/components/button.variables.scss +79 -6
  89. package/src/styles/components/form.variables.scss +15 -16
  90. package/src/styles/layout/app.scss +29 -0
  91. package/src/styles/layout/color.scss +115 -0
  92. package/src/styles/layout/grid.scss +2 -1
  93. package/src/styles/layout/helper.scss +14 -2
  94. package/src/styles/layout/section.scss +46 -47
  95. package/src/styles/layout/spacing.scss +4 -4
  96. package/src/styles/layout/typography.scss +91 -112
  97. package/src/styles/layout/typography.variables.scss +281 -168
  98. package/src/styles/ui.scss +4 -5
  99. package/src/styles/vendors/bootstrap.scss +1 -1
  100. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.9f9ebd6f.woff2 +0 -0
  101. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.d7aed4ec.woff2 +0 -0
  102. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.860d704d.woff2 +0 -0
  103. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.196096f5.woff2 +0 -0
  104. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.60896ebf.woff2 +0 -0
  105. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.c5d717bd.woff2 +0 -0
  106. package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e6581016.woff2 +0 -0
  107. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.ed9c080e.woff2 +0 -0
  108. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.65f5554a.woff2 +0 -0
  109. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.ffa02f1c.woff2 +0 -0
  110. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.157a9634.woff2 +0 -0
  111. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.ae9457b8.woff2 +0 -0
  112. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.3c6000b1.woff2 +0 -0
  113. package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.1244aaff.woff2 +0 -0
  114. package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.32149fc9.woff2 +0 -0
  115. package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.16910b81.woff2 +0 -0
  116. package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.16652597.woff2 +0 -0
  117. package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.e1ba37a1.woff2 +0 -0
  118. package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.b50868a3.woff2 +0 -0
  119. package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.1250c5ba.woff2 +0 -0
  120. package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.3ec09e79.woff2 +0 -0
  121. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.woff2 +0 -0
  122. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.woff2 +0 -0
  123. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.woff2 +0 -0
  124. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.woff2 +0 -0
  125. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.woff2 +0 -0
  126. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.woff2 +0 -0
  127. package/src/fonts/NotoSansMono/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.woff2 +0 -0
  128. package/src/fonts/NotoSansMono/NotoSansMono.scss +0 -84
  129. package/src/fonts/OpenSansVariable/OpenSansVariable.scss +0 -187
  130. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2 +0 -0
  131. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2 +0 -0
  132. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2 +0 -0
  133. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2 +0 -0
  134. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2 +0 -0
  135. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2 +0 -0
  136. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0bdc1UAw.woff2 +0 -0
  137. package/src/fonts/OpenSansVariable/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2 +0 -0
  138. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFUZ0bbck.woff2 +0 -0
  139. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFV50bbck.woff2 +0 -0
  140. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVZ0b.woff2 +0 -0
  141. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFVp0bbck.woff2 +0 -0
  142. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFW50bbck.woff2 +0 -0
  143. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWJ0bbck.woff2 +0 -0
  144. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWZ0bbck.woff2 +0 -0
  145. package/src/fonts/OpenSansVariable/mem8YaGs126MiZpBA-UFWp0bbck.woff2 +0 -0
@@ -7,27 +7,25 @@
7
7
 
8
8
  @import 'style.variables';
9
9
 
10
- .badge, // bs badge class is deprecated
11
- [class^='cl-badge'],
12
- [class*=' cl-badge'] {
13
- &:not(.cl-badge-derived) {
14
- @extend %cl-badge;
10
+ @mixin cl-unlink {
11
+ text-decoration: none;
12
+
13
+ &:hover {
14
+ color: var(--cl-color-text);
15
+ text-decoration: underline;
15
16
  }
16
17
  }
17
18
 
18
- a[class^='cl-badge'],
19
- a[class*=' cl-badge'] {
20
- @include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
19
+ .badge, // bs badge class is deprecated
20
+ .cl-badge {
21
+ @extend %cl-badge;
22
+ }
21
23
 
22
- display: inline-block !important;
24
+ a.badge,
25
+ a.cl-badge {
26
+ @include cl-unlink;
23
27
  }
24
28
 
25
29
  .cl-badge-derived {
26
30
  @extend %cl-badge-derived;
27
-
28
- + .badge, // bs badge class is deprecated
29
- + [class^='cl-badge'],
30
- + [class*=' cl-badge'] {
31
- margin-left: -1.66em;
32
- }
33
31
  }
@@ -4,58 +4,64 @@ $badge-padding: px(4) px(8);
4
4
  $badge-min-height: 1.642857143em; // 23px @ 14pt
5
5
  $badge-baseline-shift: 0.055555em; // 1px @ 14pt
6
6
 
7
+ @mixin cl-badge-small {
8
+ font-size: px(12);
9
+ font-weight: 500;
10
+ padding: px(2) px(7);
11
+ }
12
+
7
13
  %cl-badge {
8
- @extend %cl-font-condensed;
14
+ @extend %cl-p-tag;
9
15
 
10
- background-color: $badge-color-bg;
11
- border-radius: 2rem;
12
- color: $badge-color-fg;
16
+ background-color: var(--cl-color-background);
17
+ border: $brand-line-width solid var(--cl-color-border);
18
+ border-radius: $brand-border-radius;
19
+ color: var(--cl-color-text);
13
20
  display: inline-block;
14
- font-size: 0.77777778em; // 18px->14px
15
- font-weight: 650;
21
+ letter-spacing: 0;
16
22
  line-height: 1em;
17
- min-height: $badge-min-height;
18
- padding: (0.2857em + $badge-baseline-shift) 0.5714em (0.2857em - $badge-baseline-shift); // 4px 8px @ 14px
23
+ padding: px(5) px(16);
24
+ text-transform: uppercase;
19
25
  white-space: nowrap;
20
26
 
21
- &[class*='-text'],
22
- &[class*='-dark'] {
23
- background-color: $badge-color-bg;
24
- }
25
-
26
- &[class*='-light'] {
27
- background-color: $color-ci-smoke;
28
- color: $color-ci-dim;
27
+ &:not([class*='cl-color-']) {
28
+ #{'--cl-color-background'}: $color-ci-clay;
29
+ #{'--cl-color-border'}: $color-ci-clay;
30
+ #{'--cl-color-text'}: $color-ci-night;
31
+ #{'--cl-color-accent'}: $color-ci-night;
29
32
  }
30
33
 
31
- &[class*='-primary'] {
32
- background-color: $color-primary;
34
+ &.cl-badge-sm {
35
+ @include cl-badge-small;
33
36
  }
34
37
 
35
- &[class*='-secondary'] {
36
- background-color: $color-secondary;
38
+ i {
39
+ line-height: 0.75em;
40
+ margin-right: $spacing-micro;
37
41
  }
38
42
  }
39
43
 
40
44
  %cl-badge-derived {
41
- $badge-color: $color-ci-silver;
45
+ @extend %cl-badge;
42
46
 
43
- background-color: transparent;
44
- border-radius: 2rem;
45
- box-shadow: 0 0 0 2px $badge-color inset;
46
- color: $badge-color;
47
- display: inline-block;
48
- font-size: 0.77777778em; // 18px->14px
49
- line-height: 1em;
50
- margin-right: 0 !important;
51
- min-height: $badge-min-height;
52
- padding: (0.2857em + $badge-baseline-shift) 0.5714em (0.2857em - $badge-baseline-shift); // 4px 8px @ 14px
53
- white-space: nowrap;
47
+ content: ' ';
48
+ padding-left: $spacing-tiny;
49
+ padding-right: 0;
50
+ width: 3em;
51
+
52
+ + * {
53
+ margin-left: -1.75em;
54
+ }
55
+
56
+ &.cl-badge-sm + * {
57
+ margin-left: -2em;
58
+ }
54
59
 
55
60
  &::before {
56
61
  @include cl-fontawesome('\f064');
57
62
 
58
- color: $badge-color !important;
63
+ font-size: 0.95em;
64
+ line-height: 0.75em;
59
65
  position: relative;
60
66
  top: 0;
61
67
  transform: scale(0.75) scaleY(-1) translate(-0.4em, -0.025em);
@@ -5,210 +5,59 @@
5
5
 
6
6
  // This file adds & customizes bootstrap's buttons.
7
7
 
8
- @import 'bootstrap/scss/buttons';
9
-
10
- $button-disabled-color: $color-ci-silver;
11
-
12
- // custom outline colors for bootstrap buttons
13
- @mixin button-outline-variant-cl($color, $background) {
14
- @include button-variant(
15
- // background - border - text
16
- $background,
17
- $color,
18
- $color,
19
- $background,
20
- $color,
21
- $color,
22
- $background,
23
- $color,
24
- $color
25
- );
26
-
27
- // our focus (tab'ed) buttons are outline
28
- .btn-check:focus + &,
29
- &:focus {
30
- background-color: $background;
31
- border-color: $color;
32
- color: $color;
33
- }
34
-
35
- // our active (mouse-down) buttons don't look different
36
- .btn-check:checked + &,
37
- .btn-check:active + &,
38
- &:active,
39
- &.active,
40
- .show > &.dropdown-toggle {
41
- background-color: $background;
42
- border-color: $color;
43
- color: $color;
44
- }
45
- }
8
+ // @import 'bootstrap/scss/buttons';
46
9
 
47
10
  .btn {
48
- @extend %p-nav;
49
-
50
- @include button-variant(
51
- transparent,
52
- transparent,
53
- $color-text,
54
- transparent,
55
- transparent,
56
- $color-text,
57
- transparent,
58
- transparent,
59
- $color-text
60
- );
61
- @include button-focus-outline($color-text);
62
-
63
- & {
64
- background-image: none;
65
- border-width: 2px;
66
- font-weight: 600; // repeat as @include overrides
67
- line-height: 1em; // repeat as @include overrides
68
- min-width: 8em;
69
- opacity: 1;
70
- overflow: hidden;
71
- padding: px(12) px(18);
72
- transition: opacity 0.15s;
73
- white-space: nowrap;
74
- }
11
+ @extend %cl-p-nav;
12
+ @include cl-button;
13
+ @include cl-button-color;
14
+ @include cl-button-focus-outline(var(--cl-color-text));
75
15
 
76
16
  &.cl-btn-icon {
77
- min-width: 0;
78
- }
79
-
80
- &:hover {
81
- opacity: $button-hover-opacity;
17
+ min-width: 2.1em;
18
+ padding-left: 0;
19
+ padding-right: 0;
82
20
  }
83
21
 
84
22
  &:disabled,
85
23
  &.disabled {
86
- background-color: transparent !important; // sass-lint:disable-line no-important
87
- border-color: transparent !important; // sass-lint:disable-line no-important
88
- color: $button-disabled-color !important; // sass-lint:disable-line no-important
24
+ background-color: transparent; // sass-lint:disable-line no-important
25
+ border-color: $color-disabled; // sass-lint:disable-line no-important
26
+ color: $color-disabled; // sass-lint:disable-line no-important
89
27
  cursor: not-allowed;
90
28
  opacity: 1 !important; // sass-lint:disable-line no-important
91
29
  pointer-events: initial;
92
30
  }
93
31
 
94
- i {
95
- margin-left: 0.5em;
96
- margin-right: 0.5em;
97
-
98
- &:first-child {
99
- margin-left: 0;
100
- }
101
-
102
- &:last-child {
103
- margin-right: 0;
104
- }
105
- }
106
-
107
32
  &-xs {
108
33
  font-size: 0.5em;
109
34
  }
110
35
 
111
36
  &.btn-sm {
112
37
  font-size: px(14);
113
- line-height: px(14);
114
- min-width: 0;
115
- padding: $spacing-tiny $spacing-small;
116
-
117
- .fa {
118
- line-height: px(14);
119
- }
120
- }
121
- }
122
-
123
- %cl-btn-text,
124
- .cl-btn-text {
125
- @include button-variant(
126
- $color-ci-silver,
127
- $color-ci-silver,
128
- $color-ci-white,
129
- $color-ci-silver,
130
- $color-ci-silver,
131
- $color-ci-white,
132
- $color-ci-silver,
133
- $color-ci-silver,
134
- $color-ci-white
135
- );
136
- @include button-focus-outline($color-ci-silver);
137
-
138
- &:disabled,
139
- &.disabled {
140
- border-color: $button-disabled-color !important; // sass-lint:disable-line no-important
141
- }
142
- }
143
-
144
- %cl-btn-primary,
145
- .cl-btn-primary {
146
- @include button-variant(
147
- $color-primary,
148
- $color-primary,
149
- $color-ci-white,
150
- $color-primary,
151
- $color-primary,
152
- $color-ci-white,
153
- $color-primary,
154
- $color-primary,
155
- $color-ci-white
156
- );
157
- @include button-focus-outline($color-primary);
158
-
159
- &:disabled,
160
- &.disabled {
161
- border-color: $button-disabled-color !important; // sass-lint:disable-line no-important
162
- }
163
- }
164
-
165
- %cl-btn-outline-primary,
166
- .cl-btn-outline-primary {
167
- @include button-outline-variant-cl($color-primary, transparent);
168
- @include button-focus-outline($color-primary);
169
-
170
- &:disabled,
171
- &.disabled {
172
- border-color: $button-disabled-color !important; // sass-lint:disable-line no-important
173
- }
174
- }
175
-
176
- %cl-btn-outline-text,
177
- .cl-btn-outline-text {
178
- @include button-outline-variant-cl($color-text, transparent);
179
- @include button-focus-outline($color-text);
180
-
181
- &:disabled,
182
- &.disabled {
183
- border-color: $button-disabled-color !important; // sass-lint:disable-line no-important
184
- }
185
- }
186
-
187
- .cl-btn-outline-blue {
188
- @include button-outline-variant-cl($color-ci-blue, transparent);
189
- @include button-focus-outline($color-ci-blue);
190
-
191
- &:disabled,
192
- &.disabled {
193
- border-color: $button-disabled-color !important; // sass-lint:disable-line no-important
38
+ font-weight: 700; // repeat as @include overrides
39
+ line-height: 1em; // repeat as @include overrides
40
+ opacity: 1;
41
+ overflow: hidden;
42
+ padding: typography-sans-baselineshift($spacing-tiny, px(14)) $spacing-medium
43
+ typography-sans-baselineunshift($spacing-tiny, px(14));
194
44
  }
195
45
  }
196
46
 
197
47
  .cl-btn-quickaction {
198
48
  @extend %cl-a-btn;
199
49
 
200
- @include typography-links($color-text, $color-text, 0);
50
+ @include typography-link($color-text, $color-ci-red, 0);
201
51
 
202
- & {
203
- border: 0;
204
- line-height: 1;
205
- margin-left: $spacing-tiny;
206
- min-width: 0;
207
- padding: 0;
208
- }
52
+ border: 0;
53
+ font-weight: 500;
54
+ line-height: 1;
55
+ margin-left: $spacing-tiny;
56
+ min-width: 0;
57
+ padding: 0;
209
58
 
210
59
  &:not(:hover) {
211
- color: $color-ci-silver;
60
+ opacity: 0.25;
212
61
  }
213
62
  }
214
63
 
@@ -219,28 +68,21 @@ $button-disabled-color: $color-ci-silver;
219
68
 
220
69
  .cl-btn-ghost {
221
70
  // an accessible, invisible button that can trigger clicks
222
- @include button-focus-outline($color-text);
223
-
224
- & {
225
- background: transparent;
226
- border: 0;
227
- color: unset;
228
- cursor: pointer;
229
- font-size: unset;
230
- font-style: unset;
231
- font-weight: unset;
232
- letter-spacing: unset;
233
- margin: 0;
234
- min-width: unset;
235
- padding: 0;
236
- text-transform: unset;
237
- width: unset;
238
- }
239
- }
240
-
241
- .btn,
242
- .btn:hover {
243
- background-image: none; // remove our link underlines
71
+ @include cl-button-focus-outline($color-text);
72
+
73
+ background: transparent;
74
+ border: 0;
75
+ color: unset;
76
+ cursor: pointer;
77
+ font-size: unset;
78
+ font-style: unset;
79
+ font-weight: unset;
80
+ letter-spacing: unset;
81
+ margin: 0;
82
+ min-width: unset;
83
+ padding: 0;
84
+ text-transform: unset;
85
+ width: unset;
244
86
  }
245
87
 
246
88
  .box {
@@ -253,48 +95,6 @@ $button-disabled-color: $color-ci-silver;
253
95
  }
254
96
  }
255
97
 
256
- .cl-section-primary {
257
- .cl-btn-outline-text {
258
- @include button-outline-variant-cl($color-ci-white, transparent);
259
- @include button-focus-outline($color-ci-white);
260
- }
261
-
262
- .cl-btn-primary {
263
- @include button-variant(
264
- $color-ci-white,
265
- $color-ci-white,
266
- $color-primary,
267
- $color-ci-white,
268
- $color-ci-white,
269
- $color-primary,
270
- $color-ci-white,
271
- $color-ci-white,
272
- $color-primary
273
- );
274
- @include button-focus-outline($color-ci-white);
275
- }
276
- }
277
-
278
- .btn.cl-btn-micro {
279
- @extend %p-tiny;
280
-
281
- color: inherit;
282
- font-size: px(10);
283
- letter-spacing: 0.5px;
284
- min-width: 0;
285
- overflow: hidden;
286
- padding: 0 $spacing-micro;
287
-
288
- &.cl-btn-primary,
289
- &.cl-btn-text {
290
- color: $color-white-100;
291
- }
292
-
293
- &.cl-btn-outline-primary {
294
- color: $color-primary;
295
- }
296
- }
297
-
298
98
  // --- spinner buttons ---------------------------------------------------------
299
99
 
300
100
  @keyframes cl-btn-spinner-spin {
@@ -318,20 +118,18 @@ $button-disabled-color: $color-ci-silver;
318
118
  &::before {
319
119
  @include cl-fontawesome('\f110');
320
120
 
321
- & {
322
- animation: cl-btn-spinner-spin 2s linear infinite;
323
- display: block;
324
- left: 0;
325
- position: absolute;
326
- right: 0;
327
- top: 50%;
328
- }
121
+ animation: cl-btn-spinner-spin 2s linear infinite;
122
+ display: block;
123
+ left: 0;
124
+ position: absolute;
125
+ right: 0;
126
+ top: 50%;
329
127
  }
330
128
  }
331
129
 
332
130
  // --- responsive tweaks -------------------------------------------------------
333
131
 
334
- .btn:not(.cl-btn-micro, .cl-btn-quickaction) {
132
+ .btn:not(.cl-btn-quickaction) {
335
133
  @include media-breakpoint-down(sm) {
336
134
  width: 100%;
337
135
  }
@@ -5,19 +5,21 @@
5
5
 
6
6
  // This file adds & customizes bootstrap's cards.
7
7
 
8
- @import 'bootstrap/scss/card';
9
8
  @import 'style.variables';
10
9
 
11
10
  .card {
12
11
  @extend %cl-card;
13
- }
14
12
 
15
- .card.cl-card-max {
16
- height: 100%; // cards in responsive grid colums should have full height
17
- margin-top: 0;
13
+ &[class^='col-'] {
14
+ padding: 0;
15
+ }
18
16
  }
19
17
 
20
18
  details.card {
19
+ > * {
20
+ border: 0 !important;
21
+ }
22
+
21
23
  // collapsible cards
22
24
  summary {
23
25
  list-style: none;
@@ -25,22 +27,20 @@ details.card {
25
27
  &::after {
26
28
  @include cl-fontawesome('\f078'); // chevron-down
27
29
 
28
- & {
29
- align-items: center;
30
- background-color: var(--element-bg-color);
31
- box-shadow: -8px 0 4px var(--element-bg-color);
32
- color: $color-ci-silver;
33
- display: flex;
34
- height: 100%;
35
- justify-content: flex-start;
36
- position: absolute;
37
- right: $card-spacing;
38
- top: 0;
39
- }
30
+ align-items: center;
31
+ background-color: var(--cl-color-background);
32
+ box-shadow: -8px 0 4px var(--cl-color-background);
33
+ color: $color-ci-silver;
34
+ display: flex;
35
+ height: 100%;
36
+ justify-content: flex-start;
37
+ position: absolute;
38
+ right: $card-spacing;
39
+ top: 0;
40
40
  }
41
41
 
42
42
  &:focus {
43
- @include color-focus-outline;
43
+ @include cl-color-focus-outline;
44
44
  }
45
45
  }
46
46
 
@@ -56,6 +56,6 @@ details.card {
56
56
  }
57
57
  }
58
58
 
59
- .card.cl-card-tight {
60
- @extend %cl-card-tight;
59
+ .card.cl-tight {
60
+ @extend %cl-tight;
61
61
  }