@castlabs/ui 4.18.2
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 +94 -0
- package/dist/assets/castlabs-logo.svg +2 -0
- package/dist/assets/cookie.svg +1 -0
- package/dist/castlabs-ui-editor.common.js +23189 -0
- package/dist/castlabs-ui-editor.common.js.map +1 -0
- package/dist/castlabs-ui-editor.css +1 -0
- package/dist/castlabs-ui-editor.umd.js +23208 -0
- package/dist/castlabs-ui-editor.umd.js.map +1 -0
- package/dist/castlabs-ui-editor.umd.min.js +10 -0
- package/dist/castlabs-ui-editor.umd.min.js.map +1 -0
- package/dist/castlabs-ui.common.js +6828 -0
- package/dist/castlabs-ui.common.js.map +1 -0
- package/dist/castlabs-ui.core.js +1031 -0
- package/dist/castlabs-ui.css +12 -0
- package/dist/castlabs-ui.module.d.ts +83 -0
- package/dist/castlabs-ui.module.js +1031 -0
- package/dist/castlabs-ui.umd.js +6847 -0
- package/dist/castlabs-ui.umd.js.map +1 -0
- package/dist/castlabs-ui.umd.min.js +8 -0
- package/dist/castlabs-ui.umd.min.js.map +1 -0
- package/dist/demo.html +1 -0
- package/dist/favicon/192.png +0 -0
- package/dist/favicon/512.png +0 -0
- package/dist/favicon/apple-touch-icon.png +0 -0
- package/dist/favicon/favicon-unread.svg +75 -0
- package/dist/favicon/favicon.ico +0 -0
- package/dist/favicon/favicon.svg +43 -0
- package/dist/favicon/manifest.webmanifest +6 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCCwR26eg.f31394d2.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCFwR26eg.00073a59.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCGwR0.faa92a75.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCIwR26eg.f8e38fba.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCJwR26eg.f1d5cd16.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCKwR26eg.ebbe259f.woff2 +0 -0
- package/dist/fonts/BngRUXNETWXI6LwhGYvaxZikqbCLwR26eg.e3d460d0.woff2 +0 -0
- package/dist/fonts/fa-brands-400.18993be8.woff2 +0 -0
- package/dist/fonts/fa-regular-400.e45bb696.woff2 +0 -0
- package/dist/fonts/fa-solid-900.16e3d2f0.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Udc1UAw.6de93dc1.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.55c9461f.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.111f8c99.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0Zdc0.92257a03.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0adc1UAw.1844ded3.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0bdc1UAw.719267ea.woff2 +0 -0
- package/dist/fonts/mem6YaGs126MiZpBA-UFUK0ddc1UAw.037dea2d.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFUZ0bbck.6869bd80.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFV50bbck.05a41692.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFVZ0b.38ffdf27.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFVp0bbck.f12c0c2c.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFW50bbck.03f14837.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFWJ0bbck.abcca84a.woff2 +0 -0
- package/dist/fonts/mem8YaGs126MiZpBA-UFWp0bbck.4d1e267c.woff2 +0 -0
- package/package.json +71 -0
- package/plugins/uid/index.js +16 -0
- package/plugins/uid/index.ts +16 -0
- package/src/assets/castlabs-logo.svg +2 -0
- package/src/assets/cookie.svg +1 -0
- package/src/components/ClAlert/style.scss +117 -0
- package/src/components/ClBadge/style.scss +122 -0
- package/src/components/ClButton/style.scss +338 -0
- package/src/components/ClCard/style.scss +61 -0
- package/src/components/ClCard/style.variables.scss +179 -0
- package/src/components/ClDropdown/style.scss +272 -0
- package/src/components/ClDropzone/style.scss +21 -0
- package/src/components/ClFooter/style.scss +119 -0
- package/src/components/ClIcon/style.scss +58 -0
- package/src/components/ClIconotron/style.scss +86 -0
- package/src/components/ClList/style.scss +93 -0
- package/src/components/ClList/style.variables.scss +133 -0
- package/src/components/ClListGroup/style.scss +9 -0
- package/src/components/ClPagination/style.scss +123 -0
- package/src/components/ClProgress/style.scss +49 -0
- package/src/components/ClScrollbar/style.scss +14 -0
- package/src/components/ClSpinner/style.scss +26 -0
- package/src/components/ClTabs/style.scss +90 -0
- package/src/components/ClToggle/style.scss +97 -0
- package/src/components/ClTooltip/style.scss +46 -0
- package/src/components/ClWizard/style.scss +173 -0
- package/src/components/form/ClField/style.scss +45 -0
- package/src/components/form/ClFieldCheck/style.scss +99 -0
- package/src/components/form/ClFieldFile/style.scss +71 -0
- package/src/components/form/ClFieldGroup/style.scss +73 -0
- package/src/components/form/ClFieldInput/style.scss +118 -0
- package/src/components/form/ClFieldSelect/style.scss +39 -0
- package/src/components/form/ClFieldSet/style.scss +16 -0
- package/src/components/form/ClForm/style.scss +87 -0
- package/src/components/modal/ClModal/style.scss +138 -0
- package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +444 -0
- package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +51 -0
- package/src/components/navigation/ClNavSide/style.scss +81 -0
- package/src/components/navigation/ClNavTop/style.scss +305 -0
- package/src/components/section/ClSectionHeadline/style.scss +49 -0
- package/src/components/section/ClSectionMainSide/style.scss +60 -0
- package/src/components/table/ClTable/style.scss +23 -0
- package/src/components/table/ClTable/style.variables.scss +155 -0
- package/src/components/table/ClTableCel/Actions/style.scss +11 -0
- package/src/components/table/ClTableCel/Audit/style.scss +26 -0
- package/src/components/table/ClTableCel/Boolean/style.scss +12 -0
- package/src/components/table/ClTableCel/Checkbox/style.scss +18 -0
- package/src/components/table/ClTableCel/Code/style.scss +13 -0
- package/src/components/table/ClTableCel/Currency/style.scss +9 -0
- package/src/components/table/ClTableCel/Date/style.scss +12 -0
- package/src/components/table/ClTableCel/ID/style.scss +16 -0
- package/src/components/table/ClTableCel/Links/style.scss +44 -0
- package/src/components/table/ClTableCel/style.scss +7 -0
- package/src/components/table/ClTableCel/style.variables.scss +25 -0
- package/src/components/table/ClTableFootChecked/style.scss +2 -0
- package/src/components/table/ClTableHead/style.scss +36 -0
- package/src/components/text/ClCopy/style.scss +42 -0
- package/src/components/text/ClHashtag/style.scss +31 -0
- package/src/components/text/ClLinkExternal/style.scss +147 -0
- package/src/components/text/ClOrg/style.scss +40 -0
- package/src/components/text/ClPlan/style.scss +35 -0
- package/src/components/text/ClRole/style.scss +39 -0
- package/src/components/widget/ClBackCancelOk/style.scss +3 -0
- package/src/components/widget/ClCookieBanner/style.scss +40 -0
- package/src/components/widget/ClPage/style.scss +11 -0
- package/src/fonts/FontAwesome5/FontAwesome5.scss +6121 -0
- package/src/fonts/NotoSansMono/NotoSansMono.scss +82 -0
- package/src/fonts/OpenSansVariable/OpenSansVariable.scss +183 -0
- package/src/styles/_global.scss +70 -0
- package/src/styles/abstracts/color.scss +127 -0
- package/src/styles/abstracts/layer.scss +10 -0
- package/src/styles/abstracts/spacing.scss +35 -0
- package/src/styles/abstracts/tools.scss +117 -0
- package/src/styles/assets/logo.scss +22 -0
- package/src/styles/components/button.variables.scss +18 -0
- package/src/styles/components/form.variables.scss +51 -0
- package/src/styles/layout/animation.scss +39 -0
- package/src/styles/layout/grid.scss +144 -0
- package/src/styles/layout/grid.variables.scss +50 -0
- package/src/styles/layout/section.scss +90 -0
- package/src/styles/layout/spacing.scss +295 -0
- package/src/styles/layout/typography.scss +321 -0
- package/src/styles/layout/typography.variables.scss +363 -0
- package/src/styles/ui.scss +98 -0
- package/src/styles/vendors/bootstrap.scss +28 -0
- package/src/styles/vendors/castlabs.scss +17 -0
- package/types/castlabs-ui.module.d.ts +83 -0
- package/types/index.d.ts +140 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file define our (bullet) lists. They use fontawesome icons as bullets.
|
|
7
|
+
|
|
8
|
+
$list-indent: $spacing-small * 2.5;
|
|
9
|
+
|
|
10
|
+
%cl-list {
|
|
11
|
+
li {
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
@include cl-fontawesome('\f054'); // chevron
|
|
16
|
+
|
|
17
|
+
& {
|
|
18
|
+
color: $color-ci-silver;
|
|
19
|
+
margin-left: -$list-indent;
|
|
20
|
+
position: static;
|
|
21
|
+
text-align: center;
|
|
22
|
+
width: $list-indent;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> ul {
|
|
27
|
+
margin-top: $spacing-tiny;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-none {
|
|
32
|
+
margin-left: 0;
|
|
33
|
+
|
|
34
|
+
li {
|
|
35
|
+
margin-top: $spacing-micro;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&-none li::before,
|
|
40
|
+
li.cl-list-none::before {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-check li::before,
|
|
45
|
+
li.cl-list-check::before {
|
|
46
|
+
content: '\f00c';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&-x li::before,
|
|
50
|
+
li.cl-list-x::before {
|
|
51
|
+
content: '\f00d';
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&-plus li::before,
|
|
55
|
+
li.cl-list-plus::before {
|
|
56
|
+
content: '\f067';
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&-minus li::before,
|
|
60
|
+
li.cl-list-minus::before {
|
|
61
|
+
content: '\f068';
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-lock li::before,
|
|
65
|
+
li.cl-list-lock::before {
|
|
66
|
+
content: '\f023';
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&-bulb li::before,
|
|
70
|
+
li.cl-list-bulb::before {
|
|
71
|
+
content: '\f0eb';
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// -----------------------------------------------------------------------------
|
|
76
|
+
|
|
77
|
+
$list-dt-width: 14rem;
|
|
78
|
+
|
|
79
|
+
%cl-dl {
|
|
80
|
+
dt {
|
|
81
|
+
@extend %p-form-label;
|
|
82
|
+
|
|
83
|
+
display: block;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
dd {
|
|
87
|
+
display: block;
|
|
88
|
+
margin-top: $spacing-tiny;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
@include media-breakpoint-up(md) {
|
|
92
|
+
dt {
|
|
93
|
+
display: inline-block;
|
|
94
|
+
vertical-align: top;
|
|
95
|
+
width: $list-dt-width;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
dd {
|
|
99
|
+
display: inline-block;
|
|
100
|
+
margin-top: $spacing-small;
|
|
101
|
+
width: calc(100% - #{$list-dt-width} - 0.5rem);
|
|
102
|
+
|
|
103
|
+
&:first-of-type {
|
|
104
|
+
margin-top: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
+ dd {
|
|
108
|
+
margin-left: $list-dt-width;
|
|
109
|
+
margin-top: $spacing-tiny;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&.cl-dl-tight {
|
|
115
|
+
@include media-breakpoint-up(md) {
|
|
116
|
+
dt {
|
|
117
|
+
margin-top: $spacing-tiny;
|
|
118
|
+
|
|
119
|
+
&:first-of-type {
|
|
120
|
+
margin-top: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
dd {
|
|
125
|
+
margin-top: $spacing-tiny;
|
|
126
|
+
|
|
127
|
+
&:first-of-type {
|
|
128
|
+
margin-top: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file adds & customizes bootstrap's paginators.
|
|
7
|
+
|
|
8
|
+
@import 'bootstrap/scss/pagination';
|
|
9
|
+
|
|
10
|
+
$pagination-color-bg: $color-ci-cloud;
|
|
11
|
+
$pagination-color-text: $color-ci-dim;
|
|
12
|
+
$pagination-color-disabled: rgba($pagination-color-text, $button-disabled-opacity);
|
|
13
|
+
$pagination-color-hover: rgba($pagination-color-text, $button-hover-opacity);
|
|
14
|
+
|
|
15
|
+
.pagination {
|
|
16
|
+
@extend %p-nav;
|
|
17
|
+
|
|
18
|
+
font-size: px(14);
|
|
19
|
+
margin: 0;
|
|
20
|
+
|
|
21
|
+
li {
|
|
22
|
+
list-style: none;
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
a,
|
|
27
|
+
a.disabled,
|
|
28
|
+
button,
|
|
29
|
+
button.disabled {
|
|
30
|
+
@include typography-links($pagination-color-text, $pagination-color-text, 0);
|
|
31
|
+
|
|
32
|
+
& {
|
|
33
|
+
border-color: $pagination-color-bg;
|
|
34
|
+
border-width: 2px;
|
|
35
|
+
font-weight: 600;
|
|
36
|
+
padding: $spacing-tiny $spacing-small;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
a:hover,
|
|
41
|
+
a.disabled:hover,
|
|
42
|
+
button:hover,
|
|
43
|
+
button.disabled:hover {
|
|
44
|
+
background-color: transparent;
|
|
45
|
+
background-image: none;
|
|
46
|
+
border-color: $pagination-color-bg;
|
|
47
|
+
color: $pagination-color-hover;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
a:focus,
|
|
51
|
+
button:focus {
|
|
52
|
+
background-color: inherit;
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
color: inherit;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.page-item {
|
|
58
|
+
&:last-of-type a,
|
|
59
|
+
&:last-of-type button {
|
|
60
|
+
border-bottom-right-radius: px(3);
|
|
61
|
+
border-top-right-radius: px(3);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:first-of-type a,
|
|
65
|
+
&:first-of-type button {
|
|
66
|
+
border-bottom-left-radius: px(3);
|
|
67
|
+
border-top-left-radius: px(3);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
+ .page-item a,
|
|
71
|
+
+ .page-item button {
|
|
72
|
+
border-left: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.active .page-link {
|
|
76
|
+
background-color: $pagination-color-bg;
|
|
77
|
+
border-color: $pagination-color-bg;
|
|
78
|
+
color: $color-ci-white;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&.disabled .page-link {
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
border-color: $pagination-color-bg;
|
|
84
|
+
color: $pagination-color-disabled;
|
|
85
|
+
cursor: not-allowed;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:not(:first-child) .page-link {
|
|
89
|
+
margin-left: 0; // disable bootstrap overlap
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.disabled {
|
|
93
|
+
border-bottom: 2px solid $pagination-color-disabled;
|
|
94
|
+
border-top: 2px solid $pagination-color-disabled;
|
|
95
|
+
color: $pagination-color-disabled;
|
|
96
|
+
padding: $spacing-tiny $spacing-small;
|
|
97
|
+
|
|
98
|
+
&:first-child {
|
|
99
|
+
border-bottom-left-radius: px(3);
|
|
100
|
+
border-left: 2px solid $pagination-color-disabled;
|
|
101
|
+
border-top-left-radius: px(3);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:last-child {
|
|
105
|
+
border-bottom-right-radius: px(3);
|
|
106
|
+
border-right: 2px solid $pagination-color-disabled;
|
|
107
|
+
border-top-right-radius: px(3);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
+ .page-item {
|
|
111
|
+
border-left: 2px solid $pagination-color-bg;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.text-center > & {
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.text-end > & {
|
|
121
|
+
justify-content: flex-end;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This is our version of Bootstrap progress.
|
|
7
|
+
|
|
8
|
+
@import 'bootstrap/scss/progress';
|
|
9
|
+
|
|
10
|
+
.progress {
|
|
11
|
+
background-color: $color-ci-smoke;
|
|
12
|
+
border-radius: $border-ui-radius;
|
|
13
|
+
height: px(16);
|
|
14
|
+
margin-top: $spacing-small;
|
|
15
|
+
|
|
16
|
+
.progress-bar {
|
|
17
|
+
@extend %p-tiny;
|
|
18
|
+
|
|
19
|
+
background-color: $color-secondary;
|
|
20
|
+
color: $color-ci-white;
|
|
21
|
+
|
|
22
|
+
&.bg-primary {
|
|
23
|
+
background-color: $color-primary;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// &.bg-success,
|
|
27
|
+
// &.bg-danger,
|
|
28
|
+
// &.bg-warning,
|
|
29
|
+
// &.bg-info,
|
|
30
|
+
// &.bg-light,
|
|
31
|
+
&.bg-secondary {
|
|
32
|
+
background-color: $color-secondary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.bg-dark {
|
|
36
|
+
background-color: $color-ci-cloud;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.progress-bar-striped {
|
|
41
|
+
background-image: none;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@for $i from 0 through 20 {
|
|
45
|
+
.w-#{$i*5} {
|
|
46
|
+
width: math.percentage($i * 0.05);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file adds & customizes the simplebar scrollbar.
|
|
7
|
+
|
|
8
|
+
@import 'simplebar/dist/simplebar.min';
|
|
9
|
+
|
|
10
|
+
// --- scrollbar ---------------------------------------------------------------
|
|
11
|
+
.simplebar-scrollbar::before {
|
|
12
|
+
background-color: $color-black-50a !important; // sass-lint:disable-line no-important
|
|
13
|
+
right: 4px !important; // sass-lint:disable-line no-important
|
|
14
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.cl-spinner {
|
|
2
|
+
@extend %p-medium;
|
|
3
|
+
@extend %spacing-small;
|
|
4
|
+
|
|
5
|
+
animation-duration: 1s;
|
|
6
|
+
animation-name: cl-spinner-fadein;
|
|
7
|
+
|
|
8
|
+
.fa-spinner {
|
|
9
|
+
margin-left: $spacing-tiny;
|
|
10
|
+
margin-right: $spacing-tiny;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@keyframes cl-spinner-fadein {
|
|
15
|
+
0% {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
80% {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
100% {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines castlabs' navigation tabs
|
|
7
|
+
|
|
8
|
+
.cl-tabs {
|
|
9
|
+
> ul {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-wrap: wrap-reverse;
|
|
12
|
+
justify-content: stretch;
|
|
13
|
+
list-style: none;
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
text-align: center;
|
|
17
|
+
|
|
18
|
+
li {
|
|
19
|
+
border-bottom: px(2) solid $color-line;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
flex-grow: 1;
|
|
22
|
+
margin: 0 px(2);
|
|
23
|
+
|
|
24
|
+
&.active {
|
|
25
|
+
border-color: $color-ci-blue;
|
|
26
|
+
color: $color-ci-blue;
|
|
27
|
+
|
|
28
|
+
> * {
|
|
29
|
+
color: $color-ci-blue;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
label {
|
|
35
|
+
@extend %p-form-label;
|
|
36
|
+
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
margin: 0 $spacing-micro;
|
|
39
|
+
min-width: $spacing-huge * 2 + $spacing-tiny * 2;
|
|
40
|
+
padding: $spacing-tiny;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
|
|
43
|
+
i {
|
|
44
|
+
margin-left: $spacing-tiny;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include media-breakpoint-down(sm) {
|
|
48
|
+
@include typography-font($typography-font-list-sans, 600, px(12), 1.2em, 0.025em);
|
|
49
|
+
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column-reverse;
|
|
52
|
+
margin: $spacing-micro 0;
|
|
53
|
+
min-width: $spacing-medium;
|
|
54
|
+
|
|
55
|
+
i {
|
|
56
|
+
font-size: px(18);
|
|
57
|
+
margin: 0 0 $spacing-micro;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// --- tab interaction ---------------------------------------------
|
|
64
|
+
|
|
65
|
+
.cl-tab-content {
|
|
66
|
+
display: none; // initially hidden
|
|
67
|
+
margin-top: $spacing-medium;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
> [type='radio'] {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
position: absolute;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@for $i from 1 through 16 {
|
|
76
|
+
.cl-tab-#{$i}:checked ~ ul {
|
|
77
|
+
.cl-tab-#{$i} {
|
|
78
|
+
border-color: $color-ci-blue;
|
|
79
|
+
|
|
80
|
+
> * {
|
|
81
|
+
color: $color-ci-blue;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cl-tab-#{$i}:checked ~ .cl-tab-content.cl-tab-#{$i} {
|
|
87
|
+
display: block;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines castlabs toggle/checkboxes.
|
|
7
|
+
|
|
8
|
+
$toggle-color-regular: $color-dark;
|
|
9
|
+
|
|
10
|
+
.cl-toggle-checkbox {
|
|
11
|
+
// hide checkbox but keep it tab-able
|
|
12
|
+
display: inline-block;
|
|
13
|
+
opacity: 0;
|
|
14
|
+
position: absolute;
|
|
15
|
+
|
|
16
|
+
+ .badge {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
padding-right: $spacing-tiny + $spacing-micro;
|
|
19
|
+
text-transform: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&:checked + .badge {
|
|
23
|
+
i:nth-of-type(1) {
|
|
24
|
+
display: inline-block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
i:nth-of-type(2) {
|
|
28
|
+
display: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&:not(:checked) + .badge {
|
|
33
|
+
background-color: $color-ci-white;
|
|
34
|
+
box-shadow: 0 0 0 2px inset $toggle-color-regular;
|
|
35
|
+
color: $toggle-color-regular;
|
|
36
|
+
|
|
37
|
+
i:nth-of-type(1) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
i:nth-of-type(2) {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.cl-badge-primary {
|
|
46
|
+
box-shadow: 0 0 0 2px inset $color-primary;
|
|
47
|
+
color: $color-primary;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.cl-badge-secondary {
|
|
51
|
+
box-shadow: 0 0 0 2px inset $color-secondary;
|
|
52
|
+
color: $color-secondary;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:disabled:not(:checked) + .badge {
|
|
57
|
+
background-color: $color-ci-white;
|
|
58
|
+
box-shadow: 0 0 0 2px inset $color-ci-silver;
|
|
59
|
+
color: $color-ci-silver;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:disabled:checked + .badge {
|
|
63
|
+
background-color: $color-ci-silver;
|
|
64
|
+
color: $color-ci-white;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus + .badge {
|
|
68
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($toggle-color-regular, 0.5); // sass-lint:disable-line no-color-literals
|
|
69
|
+
outline: 0;
|
|
70
|
+
|
|
71
|
+
&.cl-badge-primary {
|
|
72
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color-primary, 0.5); // sass-lint:disable-line no-color-literals
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.cl-badge-secondary {
|
|
76
|
+
box-shadow: 0 0 0 $btn-focus-width rgba($color-secondary, 0.5); // sass-lint:disable-line no-color-literals
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:focus:not(:checked) + .badge {
|
|
81
|
+
box-shadow:
|
|
82
|
+
0 0 0 2px inset $toggle-color-regular,
|
|
83
|
+
0 0 0 $btn-focus-width rgba($toggle-color-regular, 0.5); // sass-lint:disable-line no-color-literals
|
|
84
|
+
|
|
85
|
+
&.cl-badge-primary {
|
|
86
|
+
box-shadow:
|
|
87
|
+
0 0 0 2px inset $color-primary,
|
|
88
|
+
0 0 0 $btn-focus-width rgba($color-primary, 0.5); // sass-lint:disable-line no-color-literals
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&.cl-badge-secondary {
|
|
92
|
+
box-shadow:
|
|
93
|
+
0 0 0 2px inset $color-secondary,
|
|
94
|
+
0 0 0 $btn-focus-width rgba($color-secondary, 0.5); // sass-lint:disable-line no-color-literals
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file adds & customizes bootstrap's tooltips.
|
|
7
|
+
|
|
8
|
+
@import 'bootstrap/scss/tooltip';
|
|
9
|
+
|
|
10
|
+
.cl-tooltip {
|
|
11
|
+
#{'--bs-tooltip-bg'}: $color-secondary;
|
|
12
|
+
filter: drop-shadow($color-shadow-3d);
|
|
13
|
+
opacity: 1 !important; // sass-lint:disable-line no-important
|
|
14
|
+
z-index: $layer-z-modal + 1;
|
|
15
|
+
|
|
16
|
+
.tooltip-inner {
|
|
17
|
+
// Bootstrap class
|
|
18
|
+
color: $color-ci-white;
|
|
19
|
+
max-width: none !important; // sass-lint:disable-line no-important
|
|
20
|
+
text-align: center;
|
|
21
|
+
|
|
22
|
+
code {
|
|
23
|
+
color: $color-ci-white;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.cl-tooltip-primary {
|
|
28
|
+
#{'--bs-tooltip-bg'}: $color-primary;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.cl-tooltip-secondary {
|
|
32
|
+
#{'--bs-tooltip-bg'}: $color-secondary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.cl-tooltip-dark {
|
|
36
|
+
#{'--bs-tooltip-bg'}: $color-dark;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&.cl-tooltip-light {
|
|
40
|
+
#{'--bs-tooltip-bg'}: $color-ci-haze;
|
|
41
|
+
|
|
42
|
+
.tooltip-inner {
|
|
43
|
+
color: $color-ci-dim;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|