@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
|
@@ -7,27 +7,25 @@
|
|
|
7
7
|
|
|
8
8
|
@import 'style.variables';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
&:
|
|
14
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
@
|
|
19
|
+
.badge, // bs badge class is deprecated
|
|
20
|
+
.cl-badge {
|
|
21
|
+
@extend %cl-badge;
|
|
22
|
+
}
|
|
21
23
|
|
|
22
|
-
|
|
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-
|
|
14
|
+
@extend %cl-p-tag;
|
|
9
15
|
|
|
10
|
-
background-color:
|
|
11
|
-
border
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
font-weight: 650;
|
|
21
|
+
letter-spacing: 0;
|
|
16
22
|
line-height: 1em;
|
|
17
|
-
|
|
18
|
-
|
|
23
|
+
padding: px(5) px(16);
|
|
24
|
+
text-transform: uppercase;
|
|
19
25
|
white-space: nowrap;
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
32
|
-
|
|
34
|
+
&.cl-badge-sm {
|
|
35
|
+
@include cl-badge-small;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
i {
|
|
39
|
+
line-height: 0.75em;
|
|
40
|
+
margin-right: $spacing-micro;
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
%cl-badge-derived {
|
|
41
|
-
|
|
45
|
+
@extend %cl-badge;
|
|
42
46
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
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-
|
|
51
|
-
|
|
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:
|
|
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
|
|
87
|
-
border-color:
|
|
88
|
-
color: $
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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-
|
|
50
|
+
@include typography-link($color-text, $color-ci-red, 0);
|
|
201
51
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
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
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
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-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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-
|
|
60
|
-
@extend %cl-
|
|
59
|
+
.card.cl-tight {
|
|
60
|
+
@extend %cl-tight;
|
|
61
61
|
}
|