@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,81 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines our sidenav. It does not define the sidenav's content inside
|
|
7
|
+
// the drawer, only how the drawer operates/opens/closes.
|
|
8
|
+
|
|
9
|
+
$sidenav-width-open: 18rem;
|
|
10
|
+
$sidenav-width-closed: 0;
|
|
11
|
+
$sidenav-z-index: $layer-z-sidenav;
|
|
12
|
+
$sidenav-backdrop: $color-black-40a;
|
|
13
|
+
$sidenav-breakpoint: xl;
|
|
14
|
+
|
|
15
|
+
.cl-nav-side {
|
|
16
|
+
@include spacing-before(0);
|
|
17
|
+
|
|
18
|
+
& {
|
|
19
|
+
box-shadow: $color-shadow-3d;
|
|
20
|
+
left: 0;
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
z-index: $sidenav-z-index;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.cl-nav-drawer {
|
|
27
|
+
@include spacing-before(0);
|
|
28
|
+
|
|
29
|
+
& {
|
|
30
|
+
background-color: $color-ci-white;
|
|
31
|
+
height: 100vh;
|
|
32
|
+
overflow-x: hidden;
|
|
33
|
+
position: relative;
|
|
34
|
+
width: $sidenav-width-closed;
|
|
35
|
+
z-index: $sidenav-z-index + 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
> div {
|
|
39
|
+
height: 100%;
|
|
40
|
+
width: $sidenav-width-open;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.cl-nav-checkbox {
|
|
46
|
+
// this checkbox right before the nav opens/closes it
|
|
47
|
+
opacity: 0;
|
|
48
|
+
position: absolute;
|
|
49
|
+
|
|
50
|
+
&:checked {
|
|
51
|
+
~ .cl-nav-side .cl-nav-drawer {
|
|
52
|
+
// open drawer if checked
|
|
53
|
+
width: $sidenav-width-open;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@include media-breakpoint-down($sidenav-breakpoint) {
|
|
57
|
+
~ nav .cl-nav-backdrop {
|
|
58
|
+
background-color: $sidenav-backdrop;
|
|
59
|
+
width: 100%; // show on small screens where sidenav overlaps content
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include media-breakpoint-up($sidenav-breakpoint) {
|
|
64
|
+
~ .cl-main {
|
|
65
|
+
padding-left: $sidenav-width-open;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
~ * .modal {
|
|
69
|
+
padding-left: $sidenav-width-open;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.cl-nav-backdrop {
|
|
76
|
+
background-color: transparent;
|
|
77
|
+
height: 100%;
|
|
78
|
+
position: fixed;
|
|
79
|
+
width: 0;
|
|
80
|
+
z-index: $sidenav-z-index - 1;
|
|
81
|
+
}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines our top-nav
|
|
7
|
+
|
|
8
|
+
.cl-nav-top {
|
|
9
|
+
// first/top line in content area
|
|
10
|
+
@extend %section-padding;
|
|
11
|
+
|
|
12
|
+
@include spacing-before(0);
|
|
13
|
+
|
|
14
|
+
& {
|
|
15
|
+
background-color: $color-ci-white;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a:not(.btn) {
|
|
19
|
+
@include typography-links-invisible;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
> .container {
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
> .container > .row > .col-12 {
|
|
27
|
+
align-items: center;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
height: $header-nav-height;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.cl-nav-side-burger {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.cl-path {
|
|
39
|
+
@extend %p-tiny;
|
|
40
|
+
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0 $spacing-small;
|
|
43
|
+
|
|
44
|
+
span {
|
|
45
|
+
&:not(:first-child) {
|
|
46
|
+
&::before {
|
|
47
|
+
content: ' › ';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@include media-breakpoint-down(sm) {
|
|
51
|
+
display: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@include media-breakpoint-down(sm) {
|
|
57
|
+
text-align: left;
|
|
58
|
+
width: 100%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cl-logo {
|
|
63
|
+
align-items: center;
|
|
64
|
+
display: flex;
|
|
65
|
+
|
|
66
|
+
span {
|
|
67
|
+
@extend %p-tiny;
|
|
68
|
+
|
|
69
|
+
margin-right: $spacing-tiny;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
i {
|
|
73
|
+
line-height: px(20);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
a {
|
|
77
|
+
line-height: 0.5;
|
|
78
|
+
padding: 0;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cl-nav-top-large {
|
|
84
|
+
// cl-nav-top variant that as slightly bigger
|
|
85
|
+
> .container > .row > .col-12 {
|
|
86
|
+
height: 4rem;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cl-asset-logo {
|
|
90
|
+
height: 1.5em;
|
|
91
|
+
width: 7.5em;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// -----------------------------------------------------------------------------
|
|
96
|
+
// add & customize bootstrap navbar
|
|
97
|
+
// -----------------------------------------------------------------------------
|
|
98
|
+
|
|
99
|
+
@import 'bootstrap/scss/transitions';
|
|
100
|
+
@import 'bootstrap/scss/dropdown';
|
|
101
|
+
@import 'bootstrap/scss/nav';
|
|
102
|
+
@import 'bootstrap/scss/navbar';
|
|
103
|
+
|
|
104
|
+
@mixin navbar-expand {
|
|
105
|
+
.nav-link {
|
|
106
|
+
padding-left: 0;
|
|
107
|
+
padding-right: 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.nav-item:not(:last-of-type) {
|
|
111
|
+
margin-right: $spacing-medium;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.dropdown-menu {
|
|
115
|
+
box-shadow: $color-shadow-3d;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.cl-nav-side-burger {
|
|
119
|
+
display: none;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.cl-nav-backdrop {
|
|
123
|
+
display: none;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin navbar-responsive {
|
|
128
|
+
.cl-nav-drawer {
|
|
129
|
+
// open drawer if checked
|
|
130
|
+
background-color: $color-ci-haze;
|
|
131
|
+
height: 100vh;
|
|
132
|
+
left: 0;
|
|
133
|
+
overflow: hidden auto;
|
|
134
|
+
position: fixed;
|
|
135
|
+
top: 0;
|
|
136
|
+
width: 0;
|
|
137
|
+
z-index: $sidenav-z-index;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.cl-nav-checkbox:checked ~ & {
|
|
141
|
+
.cl-nav-backdrop {
|
|
142
|
+
background-color: $sidenav-backdrop;
|
|
143
|
+
inset: 0;
|
|
144
|
+
position: fixed;
|
|
145
|
+
z-index: $sidenav-z-index - 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.cl-nav-drawer {
|
|
149
|
+
// open drawer if checked
|
|
150
|
+
width: $sidenav-width-open;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.nav-item {
|
|
155
|
+
padding-left: $spacing-small;
|
|
156
|
+
padding-right: $spacing-small;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.active {
|
|
160
|
+
background: $color-ci-white;
|
|
161
|
+
position: relative;
|
|
162
|
+
|
|
163
|
+
a,
|
|
164
|
+
a:visited {
|
|
165
|
+
color: $color-ci-red;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&::after {
|
|
169
|
+
// we use a block item, not a border, so content does not jump
|
|
170
|
+
background-color: $color-ci-silver;
|
|
171
|
+
content: '';
|
|
172
|
+
display: block;
|
|
173
|
+
height: 100%;
|
|
174
|
+
position: absolute;
|
|
175
|
+
right: 0;
|
|
176
|
+
top: 0;
|
|
177
|
+
width: $bar-ui-width;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
$navbar-item-spacing: $spacing-medium;
|
|
183
|
+
|
|
184
|
+
.cl-navbar {
|
|
185
|
+
@extend %p-nav;
|
|
186
|
+
|
|
187
|
+
min-height: $header-nav-height;
|
|
188
|
+
padding-bottom: 0;
|
|
189
|
+
padding-top: 0;
|
|
190
|
+
|
|
191
|
+
@include media-breakpoint-down(md) {
|
|
192
|
+
padding-left: $spacing-small;
|
|
193
|
+
padding-right: $spacing-small;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.navbar-toggler {
|
|
197
|
+
height: $header-nav-height;
|
|
198
|
+
padding: 0;
|
|
199
|
+
|
|
200
|
+
&:active,
|
|
201
|
+
&:focus {
|
|
202
|
+
border: 0;
|
|
203
|
+
box-shadow: none;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.navbar-brand {
|
|
208
|
+
font-size: px(16);
|
|
209
|
+
line-height: 1;
|
|
210
|
+
margin: 0;
|
|
211
|
+
padding: 0.5em 0;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.nav-link {
|
|
215
|
+
@include typography-links($color-text, $color-ci-night, 0);
|
|
216
|
+
|
|
217
|
+
& {
|
|
218
|
+
display: block;
|
|
219
|
+
padding: math.div($navbar-item-spacing, 2) 0;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.active {
|
|
224
|
+
color: $color-ci-red;
|
|
225
|
+
|
|
226
|
+
a,
|
|
227
|
+
a:visited {
|
|
228
|
+
color: $color-ci-red;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.dropdown-menu {
|
|
233
|
+
background-color: $color-ci-haze;
|
|
234
|
+
border: 0;
|
|
235
|
+
border-radius: 0;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.dropdown-item {
|
|
239
|
+
@extend %p-nav;
|
|
240
|
+
|
|
241
|
+
padding: math.div($navbar-item-spacing, 2) $spacing-small;
|
|
242
|
+
|
|
243
|
+
&.active {
|
|
244
|
+
background-color: transparent;
|
|
245
|
+
color: $color-ci-red;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.dropdown-divider {
|
|
250
|
+
background-color: $color-ci-smoke;
|
|
251
|
+
border: 0;
|
|
252
|
+
height: px(2);
|
|
253
|
+
opacity: 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
&.navbar-expand-sm {
|
|
257
|
+
@include media-breakpoint-up(sm) {
|
|
258
|
+
@include navbar-expand;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
@include media-breakpoint-down(sm) {
|
|
262
|
+
@include navbar-responsive;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
&.navbar-expand-md {
|
|
267
|
+
@include media-breakpoint-up(md) {
|
|
268
|
+
@include navbar-expand;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
@include media-breakpoint-down(md) {
|
|
272
|
+
@include navbar-responsive;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&.navbar-expand-lg {
|
|
277
|
+
@include media-breakpoint-up(lg) {
|
|
278
|
+
@include navbar-expand;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@include media-breakpoint-down(lg) {
|
|
282
|
+
@include navbar-responsive;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
&.navbar-expand-xl {
|
|
287
|
+
@include media-breakpoint-up(xl) {
|
|
288
|
+
@include navbar-expand;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
@include media-breakpoint-down(xl) {
|
|
292
|
+
@include navbar-responsive;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&.navbar-expand-xxl {
|
|
297
|
+
@include media-breakpoint-up(xxl) {
|
|
298
|
+
@include navbar-expand;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
@include media-breakpoint-down(xxl) {
|
|
302
|
+
@include navbar-responsive;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
.cl-section-dark .cl-headline-help-icon,
|
|
2
|
+
.cl-section-primary .cl-headline-help-icon,
|
|
3
|
+
.cl-section-secondary .cl-headline-help-icon {
|
|
4
|
+
@include typography-links(rgba($color-ci-white, 0.5), $color-ci-white, 0);
|
|
5
|
+
|
|
6
|
+
& {
|
|
7
|
+
font-size: 0.5em;
|
|
8
|
+
line-height: 1;
|
|
9
|
+
margin-left: 0.25em;
|
|
10
|
+
position: relative;
|
|
11
|
+
top: -0.75em;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.cl-section-headline {
|
|
16
|
+
$height: 80;
|
|
17
|
+
|
|
18
|
+
display: flex;
|
|
19
|
+
min-height: px($height);
|
|
20
|
+
padding-bottom: 0;
|
|
21
|
+
padding-top: 0;
|
|
22
|
+
|
|
23
|
+
.row > [class^='col-'] {
|
|
24
|
+
margin-bottom: 0;
|
|
25
|
+
margin-top: 0;
|
|
26
|
+
padding-bottom: $spacing-tiny;
|
|
27
|
+
padding-top: $spacing-tiny;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.container,
|
|
31
|
+
.row {
|
|
32
|
+
min-height: px($height);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.row {
|
|
36
|
+
align-content: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@include media-breakpoint-down(sm) {
|
|
40
|
+
$height: 54;
|
|
41
|
+
|
|
42
|
+
min-height: px($height);
|
|
43
|
+
|
|
44
|
+
.container,
|
|
45
|
+
.row {
|
|
46
|
+
min-height: px($height);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file defines a type of section with a 8-4 layout (main + side area)
|
|
7
|
+
|
|
8
|
+
.cl-section-main-side {
|
|
9
|
+
padding-top: 0;
|
|
10
|
+
|
|
11
|
+
// .cl-section-primary + & { // first one right below header
|
|
12
|
+
// padding-top: $spacing-small;
|
|
13
|
+
// }
|
|
14
|
+
|
|
15
|
+
.row > [class^='col-'] {
|
|
16
|
+
margin-top: $spacing-small * 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// // two successive sections of the same bg color loose a bit of gap
|
|
20
|
+
// &.cl-section-regular + .cl-section-regular.cl-section-main-side,
|
|
21
|
+
// &.cl-section-alternate + .cl-section-alternate.cl-section-main-side,
|
|
22
|
+
// &.cl-section-dark + .cl-section-dark.cl-section-main-side,
|
|
23
|
+
// &.cl-section-primary + .cl-section-primary.cl-section-main-side,
|
|
24
|
+
// &.cl-section-secondary + .cl-section-secondary.cl-section-main-side {
|
|
25
|
+
// margin-top: $spacing-small * -2;
|
|
26
|
+
// }
|
|
27
|
+
|
|
28
|
+
@include media-breakpoint-up(lg) {
|
|
29
|
+
.col-lg-8 {
|
|
30
|
+
padding-right: $spacing-medium;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@include media-breakpoint-up(xxl) {
|
|
35
|
+
.col-lg-8 {
|
|
36
|
+
padding-right: $spacing-large;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.cl-spacing-side {
|
|
41
|
+
// to align stuff in the side area in full mode
|
|
42
|
+
display: none;
|
|
43
|
+
visibility: hidden;
|
|
44
|
+
|
|
45
|
+
@include media-breakpoint-up(lg) {
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// .cl-section-regular:not(.cl-section-main-side) + .cl-section-main-side,
|
|
52
|
+
// .cl-section-alternate:not(.cl-section-main-side) + .cl-section-main-side {
|
|
53
|
+
// margin-top: $spacing-small * -2;
|
|
54
|
+
// padding-top: 0;
|
|
55
|
+
// }
|
|
56
|
+
//
|
|
57
|
+
// .cl-section-main-side + section:not(.cl-section-main-side) {
|
|
58
|
+
// margin-top: $spacing-small * -1;
|
|
59
|
+
// padding-top: 0;
|
|
60
|
+
// }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This defines castLabs data-driven tables.
|
|
7
|
+
|
|
8
|
+
@import 'style.variables';
|
|
9
|
+
|
|
10
|
+
.cl-table-scroll {
|
|
11
|
+
display: block;
|
|
12
|
+
margin-top: $spacing-small;
|
|
13
|
+
max-width: 100%;
|
|
14
|
+
overflow: auto hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.cl-table-data {
|
|
18
|
+
@extend %cl-table-data;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.cl-table-data-light {
|
|
22
|
+
@extend %cl-table-data-light;
|
|
23
|
+
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group components
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This defines castLabs data-driven tables.
|
|
7
|
+
$table-padding-vertical: 0.5rem;
|
|
8
|
+
$table-padding-horizontal: 0.5rem;
|
|
9
|
+
$table-icon-size: 2rem;
|
|
10
|
+
$table-responsive: sm;
|
|
11
|
+
|
|
12
|
+
%cl-table-data {
|
|
13
|
+
border: 0;
|
|
14
|
+
border-collapse: separate;
|
|
15
|
+
border-spacing: 0;
|
|
16
|
+
position: relative;
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
19
|
+
th {
|
|
20
|
+
@extend %p-tiny;
|
|
21
|
+
|
|
22
|
+
padding-bottom: 0.6rem;
|
|
23
|
+
padding-top: 0.6rem;
|
|
24
|
+
|
|
25
|
+
i {
|
|
26
|
+
width: inherit; // usually sort-icons
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:not(:first-child) {
|
|
30
|
+
.cl-resizer {
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
content: ' ';
|
|
33
|
+
cursor: col-resize;
|
|
34
|
+
height: 100%;
|
|
35
|
+
margin-left: calc(-0.5rem - 3px);
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 0;
|
|
38
|
+
width: 5px;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
tbody {
|
|
45
|
+
tr {
|
|
46
|
+
&:nth-child(odd) {
|
|
47
|
+
background-color: $color-ci-haze;
|
|
48
|
+
|
|
49
|
+
td {
|
|
50
|
+
&:first-of-type {
|
|
51
|
+
border-bottom-left-radius: $border-ui-radius;
|
|
52
|
+
border-top-left-radius: $border-ui-radius;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:last-of-type {
|
|
56
|
+
border-bottom-right-radius: $border-ui-radius;
|
|
57
|
+
border-top-right-radius: $border-ui-radius;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.cl-faded {
|
|
63
|
+
opacity: 1; // undo generic fade to not fade bg
|
|
64
|
+
|
|
65
|
+
td:not(.cl-td-audit, .cl-td-links) {
|
|
66
|
+
border-color: $color-ci-silver; // compensate for fade
|
|
67
|
+
opacity: 0.5;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:hover {
|
|
72
|
+
color: $color-ci-night;
|
|
73
|
+
|
|
74
|
+
td {
|
|
75
|
+
border-color: $color-ci-smoke;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.btn {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.cl-a-btn {
|
|
83
|
+
color: $color-ci-night;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.cl-tr-no-data {
|
|
90
|
+
td {
|
|
91
|
+
height: 3em;
|
|
92
|
+
text-align: center;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.cl-spinner {
|
|
96
|
+
margin-top: 0;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// --- links in tables -------------------------------------------------------
|
|
101
|
+
|
|
102
|
+
th a {
|
|
103
|
+
// links in headline are usually sort-links
|
|
104
|
+
@include typography-links(inherit, inherit, 0); // not visible
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
td a:not(.btn, .badge, .cl-a-btn, .cl-a-none) {
|
|
108
|
+
@extend %cl-a-default;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// --- wrapping long columns -------------------------------------------------
|
|
112
|
+
|
|
113
|
+
@for $col from 1 through 16 {
|
|
114
|
+
&.cl-table-wrap-col#{$col} {
|
|
115
|
+
td:nth-child(#{$col}) {
|
|
116
|
+
word-wrap: anywhere;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// --- responsive phone tables -----------------------------------------------
|
|
122
|
+
@include media-breakpoint-down($table-responsive) {
|
|
123
|
+
&:not(.cl-table-nonresponsive) {
|
|
124
|
+
td,
|
|
125
|
+
th {
|
|
126
|
+
border-right: 0 !important; // sass-lint:disable-line no-important
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
th {
|
|
131
|
+
text-align: left !important; // sass-lint:disable-line no-important
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
td {
|
|
135
|
+
&:first-child {
|
|
136
|
+
padding-top: $spacing-small;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:last-child {
|
|
140
|
+
padding-bottom: $spacing-small;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
%cl-table-data-light {
|
|
148
|
+
tbody {
|
|
149
|
+
tr {
|
|
150
|
+
&:nth-child(odd) td {
|
|
151
|
+
background-color: $color-ci-white;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.cl-table-data {
|
|
2
|
+
.cl-th-audit {
|
|
3
|
+
@extend %p-tiny;
|
|
4
|
+
|
|
5
|
+
font-weight: 700;
|
|
6
|
+
|
|
7
|
+
@include media-breakpoint-down($table-responsive) {
|
|
8
|
+
table:not(.cl-table-nonresponsive) & {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.cl-td-audit {
|
|
15
|
+
color: $color-ci-silver;
|
|
16
|
+
text-align: center;
|
|
17
|
+
width: 0.9em;
|
|
18
|
+
word-wrap: unset;
|
|
19
|
+
|
|
20
|
+
@include media-breakpoint-down($table-responsive) {
|
|
21
|
+
table:not(.cl-table-nonresponsive) & {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|