@castlabs/ui 7.0.11 → 7.2.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 +5 -21
- package/dist/castlabs-ui.common.js +3 -3
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.css +7 -7
- package/dist/castlabs-ui.umd.js +11 -11
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClAlert/style.scss +2 -0
- package/src/components/ClBadge/style.scss +2 -1
- package/src/components/ClBadge/style.variables.scss +2 -1
- package/src/components/ClBlockquote/style.scss +13 -0
- package/src/components/ClBlockquote/style.variables.scss +15 -0
- package/src/components/ClButton/style.scss +4 -3
- package/src/components/ClCard/style.scss +2 -1
- package/src/components/ClCard/style.variables.scss +3 -2
- package/src/components/ClDropdown/style.scss +2 -0
- package/src/components/ClDropzone/style.scss +2 -0
- package/src/components/ClFooter/style.scss +2 -0
- package/src/components/ClHighlight/style.scss +2 -0
- package/src/components/ClIcon/style.scss +2 -6
- package/src/components/ClIconotron/style.scss +2 -0
- package/src/components/ClList/style.scss +7 -2
- package/src/components/ClList/style.variables.scss +23 -3
- package/src/components/ClListGroup/style.scss +3 -1
- package/src/components/ClPagination/style.scss +3 -1
- package/src/components/ClProgress/style.scss +7 -1
- package/src/components/ClScrollbar/style.scss +2 -1
- package/src/components/ClSpinner/style.scss +2 -0
- package/src/components/ClTabs/style.scss +2 -0
- package/src/components/ClToggle/style.scss +2 -0
- package/src/components/ClTooltip/style.scss +3 -1
- package/src/components/ClWizard/style.scss +2 -0
- package/src/components/form/ClField/style.scss +2 -0
- package/src/components/form/ClFieldCheck/style.scss +6 -2
- package/src/components/form/ClFieldFile/style.scss +2 -0
- package/src/components/form/ClFieldGroup/style.scss +2 -0
- package/src/components/form/ClFieldInput/style.scss +2 -0
- package/src/components/form/ClFieldSelect/style.scss +7 -3
- package/src/components/form/ClFieldSet/style.scss +2 -0
- package/src/components/form/ClForm/style.scss +2 -0
- package/src/components/modal/ClModal/style.scss +3 -0
- package/src/components/navigation/ClNavSide/ClNavDrawer/style.scss +1 -0
- package/src/components/navigation/ClNavSide/ClNavSideMenu/style.scss +2 -0
- package/src/components/navigation/ClNavSide/style.scss +1 -4
- package/src/components/navigation/ClNavTop/style.scss +6 -4
- package/src/components/section/ClSectionForm/style.scss +2 -0
- package/src/components/section/ClSectionHeadline/style.scss +2 -0
- package/src/components/section/ClSectionMainSide/style.scss +2 -0
- package/src/components/table/ClTable/style.scss +2 -1
- package/src/components/table/ClTable/style.variables.scss +3 -2
- package/src/components/table/ClTableCel/Actions/style.scss +3 -1
- package/src/components/table/ClTableCel/Audit/style.scss +4 -2
- package/src/components/table/ClTableCel/Boolean/style.scss +3 -1
- package/src/components/table/ClTableCel/Checkbox/style.scss +2 -0
- package/src/components/table/ClTableCel/Code/style.scss +4 -1
- package/src/components/table/ClTableCel/Currency/style.scss +3 -1
- package/src/components/table/ClTableCel/Date/style.scss +3 -1
- package/src/components/table/ClTableCel/ID/style.scss +4 -1
- package/src/components/table/ClTableCel/Links/style.scss +4 -2
- package/src/components/table/ClTableCel/style.scss +2 -1
- package/src/components/table/ClTableCel/style.variables.scss +3 -0
- package/src/components/table/ClTableFootChecked/style.scss +2 -0
- package/src/components/table/ClTableHead/style.scss +3 -1
- package/src/components/text/ClCopy/style.scss +2 -0
- package/src/components/text/ClHashtag/style.scss +3 -0
- package/src/components/text/ClLinkExternal/style.scss +2 -0
- package/src/components/text/ClOrg/style.scss +2 -0
- package/src/components/text/ClPlan/style.scss +3 -0
- package/src/components/text/ClRole/style.scss +3 -0
- package/src/components/widget/ClBackCancelOk/style.scss +2 -0
- package/src/components/widget/ClCookieBanner/style.scss +2 -0
- package/src/components/widget/ClPage/style.scss +2 -0
- package/src/fonts/DMMono/DMMono.scss +8 -6
- package/src/fonts/FontAwesome5/FontAwesome5.scss +5 -3
- package/src/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap.scss +5 -3
- package/src/styles/_global.scss +12 -51
- package/src/styles/abstracts/app.scss +23 -0
- package/src/styles/{components/button.variables.scss → abstracts/button.scss} +6 -11
- package/src/styles/abstracts/color.scss +11 -0
- package/src/styles/{assets/fontawesome.variables.scss → abstracts/fontawesome.scss} +3 -0
- package/src/styles/{components/form.variables.scss → abstracts/form.scss} +6 -0
- package/src/styles/{layout/grid.variables.scss → abstracts/grid.scss} +8 -1
- package/src/styles/abstracts/responsive.scss +84 -0
- package/src/styles/abstracts/spacing.scss +51 -0
- package/src/styles/abstracts/tools.scss +6 -0
- package/src/styles/{layout/typography.variables.scss → abstracts/typography.scss} +21 -19
- package/src/styles/assets/fontawesome.scss +4 -2
- package/src/styles/assets/logo.scss +6 -2
- package/src/styles/layout/animation.scss +2 -0
- package/src/styles/layout/app.scss +2 -0
- package/src/styles/layout/color.scss +4 -0
- package/src/styles/layout/grid.scss +3 -4
- package/src/styles/layout/helper.scss +3 -0
- package/src/styles/layout/scrollbar.scss +13 -0
- package/src/styles/layout/section.scss +1 -9
- package/src/styles/layout/spacing.scss +3 -4
- package/src/styles/layout/typography.scss +15 -15
- package/src/styles/ui.scss +88 -76
- package/src/styles/vendors/bootstrap.scss +19 -19
- package/src/styles/abstracts/brand.scss +0 -9
- package/src/styles/abstracts/layer.scss +0 -10
- package/src/styles/vendors/castlabs.scss +0 -17
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
@use '../../ClTable/style.variables' as *;
|
|
3
|
+
|
|
1
4
|
.cl-table-data {
|
|
2
5
|
.cl-td-code {
|
|
3
6
|
@include typography-font(
|
|
@@ -9,7 +12,7 @@
|
|
|
9
12
|
80%
|
|
10
13
|
);
|
|
11
14
|
|
|
12
|
-
@include media-breakpoint-down($table-responsive) {
|
|
15
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
13
16
|
table:not(.cl-table-nonresponsive) & {
|
|
14
17
|
width: 100%;
|
|
15
18
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-td-date {
|
|
3
5
|
overflow-wrap: break-word;
|
|
4
6
|
width: 9.5em;
|
|
5
7
|
|
|
6
|
-
@include media-breakpoint-down($table-responsive) {
|
|
8
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
7
9
|
table:not(.cl-table-nonresponsive) & {
|
|
8
10
|
width: 100%;
|
|
9
11
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
@use '../../ClTable/style.variables' as *;
|
|
3
|
+
|
|
1
4
|
.cl-table-data {
|
|
2
5
|
.cl-td-id,
|
|
3
6
|
.cl-td-uuid {
|
|
@@ -13,7 +16,7 @@
|
|
|
13
16
|
overflow-wrap: unset;
|
|
14
17
|
width: 2.5em;
|
|
15
18
|
|
|
16
|
-
@include media-breakpoint-down($table-responsive) {
|
|
19
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
17
20
|
table:not(.cl-table-nonresponsive) & {
|
|
18
21
|
width: 100%;
|
|
19
22
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-data {
|
|
2
4
|
.cl-th-links {
|
|
3
5
|
@extend %cl-p-label;
|
|
@@ -7,7 +9,7 @@
|
|
|
7
9
|
right: 0;
|
|
8
10
|
text-align: end;
|
|
9
11
|
|
|
10
|
-
@include media-breakpoint-down($table-responsive) {
|
|
12
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
11
13
|
table:not(.cl-table-nonresponsive) & {
|
|
12
14
|
display: none;
|
|
13
15
|
}
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
}
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
@include media-breakpoint-down($table-responsive) {
|
|
43
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
42
44
|
table:not(.cl-table-nonresponsive) & {
|
|
43
45
|
text-align: end;
|
|
44
46
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use '../../../styles/global' as *;
|
|
2
|
+
|
|
1
3
|
.cl-table-head {
|
|
2
4
|
white-space: nowrap;
|
|
3
5
|
|
|
@@ -31,7 +33,7 @@
|
|
|
31
33
|
|
|
32
34
|
.cl-table-data {
|
|
33
35
|
th {
|
|
34
|
-
@include media-breakpoint-down($table-responsive) {
|
|
36
|
+
@include media-breakpoint-down($grid-table-responsive) {
|
|
35
37
|
table:not(.cl-table-nonresponsive) & {
|
|
36
38
|
width: 100%;
|
|
37
39
|
}
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
+
$cl-folder-prefix: '@' !default;
|
|
2
|
+
|
|
1
3
|
@mixin DMMono {
|
|
2
4
|
@font-face {
|
|
3
5
|
font-family: 'DM Mono';
|
|
4
6
|
font-style: normal;
|
|
5
7
|
font-weight: 300;
|
|
6
|
-
src: url('#{$
|
|
8
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_300.woff2?no-inline')
|
|
7
9
|
format('woff2');
|
|
8
10
|
}
|
|
9
11
|
@font-face {
|
|
10
12
|
font-family: 'DM Mono';
|
|
11
13
|
font-style: italic;
|
|
12
14
|
font-weight: 300;
|
|
13
|
-
src: url('#{$
|
|
15
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_300italic.woff2?no-inline')
|
|
14
16
|
format('woff2');
|
|
15
17
|
}
|
|
16
18
|
@font-face {
|
|
17
19
|
font-family: 'DM Mono';
|
|
18
20
|
font-style: normal;
|
|
19
21
|
font-weight: 400;
|
|
20
|
-
src: url('#{$
|
|
22
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_400.woff2?no-inline')
|
|
21
23
|
format('woff2');
|
|
22
24
|
}
|
|
23
25
|
@font-face {
|
|
24
26
|
font-family: 'DM Mono';
|
|
25
27
|
font-style: italic;
|
|
26
28
|
font-weight: 400;
|
|
27
|
-
src: url('#{$
|
|
29
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_400italic.woff2?no-inline')
|
|
28
30
|
format('woff2');
|
|
29
31
|
}
|
|
30
32
|
@font-face {
|
|
31
33
|
font-family: 'DM Mono';
|
|
32
34
|
font-style: normal;
|
|
33
35
|
font-weight: 500;
|
|
34
|
-
src: url('#{$
|
|
36
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_500.woff2?no-inline')
|
|
35
37
|
format('woff2');
|
|
36
38
|
}
|
|
37
39
|
@font-face {
|
|
38
40
|
font-family: 'DM Mono';
|
|
39
41
|
font-style: italic;
|
|
40
42
|
font-weight: 500;
|
|
41
|
-
src: url('#{$
|
|
43
|
+
src: url('#{$cl-folder-prefix}/fonts/DMMono/DM_Mono_500italic.woff2?no-inline')
|
|
42
44
|
format('woff2');
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
$cl-folder-prefix: '@' !default;
|
|
2
|
+
|
|
1
3
|
/*!
|
|
2
4
|
* Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com
|
|
3
5
|
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
@@ -6085,7 +6087,7 @@ readers do not read off random characters that represent icons */
|
|
|
6085
6087
|
font-family: 'Font Awesome 5 Brands';
|
|
6086
6088
|
font-style: normal;
|
|
6087
6089
|
font-weight: 400;
|
|
6088
|
-
src: url('#{$
|
|
6090
|
+
src: url('#{$cl-folder-prefix}/fonts/FontAwesome5/fa-brands-400.woff2?no-inline')
|
|
6089
6091
|
format('woff2');
|
|
6090
6092
|
}
|
|
6091
6093
|
|
|
@@ -6099,7 +6101,7 @@ readers do not read off random characters that represent icons */
|
|
|
6099
6101
|
font-family: 'Font Awesome 5 Free';
|
|
6100
6102
|
font-style: normal;
|
|
6101
6103
|
font-weight: 400;
|
|
6102
|
-
src: url('#{$
|
|
6104
|
+
src: url('#{$cl-folder-prefix}/fonts/FontAwesome5/fa-regular-400.woff2?no-inline')
|
|
6103
6105
|
format('woff2');
|
|
6104
6106
|
}
|
|
6105
6107
|
|
|
@@ -6113,7 +6115,7 @@ readers do not read off random characters that represent icons */
|
|
|
6113
6115
|
font-family: 'Font Awesome 5 Free';
|
|
6114
6116
|
font-style: normal;
|
|
6115
6117
|
font-weight: 900;
|
|
6116
|
-
src: url('#{$
|
|
6118
|
+
src: url('#{$cl-folder-prefix}/fonts/FontAwesome5/fa-solid-900.woff2?no-inline')
|
|
6117
6119
|
format('woff2');
|
|
6118
6120
|
}
|
|
6119
6121
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// stylelint-disable at-rule-descriptor-value-no-unknown
|
|
2
2
|
|
|
3
|
+
$cl-folder-prefix: '@' !default;
|
|
4
|
+
|
|
3
5
|
$non-natural-ascent-override: 100%;
|
|
4
6
|
$non-natural-descent-override: 40%;
|
|
5
7
|
|
|
@@ -10,7 +12,7 @@ $non-natural-descent-override: 40%;
|
|
|
10
12
|
font-family: NonNaturalGroteskInktrap;
|
|
11
13
|
font-style: normal;
|
|
12
14
|
font-weight: 400;
|
|
13
|
-
src: url('#{$
|
|
15
|
+
src: url('#{$cl-folder-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Regular.woff2?no-inline')
|
|
14
16
|
format('woff2');
|
|
15
17
|
}
|
|
16
18
|
@font-face {
|
|
@@ -19,7 +21,7 @@ $non-natural-descent-override: 40%;
|
|
|
19
21
|
font-family: NonNaturalGroteskInktrap;
|
|
20
22
|
font-style: normal;
|
|
21
23
|
font-weight: 500;
|
|
22
|
-
src: url('#{$
|
|
24
|
+
src: url('#{$cl-folder-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Medium.woff2?no-inline')
|
|
23
25
|
format('woff2');
|
|
24
26
|
}
|
|
25
27
|
@font-face {
|
|
@@ -28,7 +30,7 @@ $non-natural-descent-override: 40%;
|
|
|
28
30
|
font-family: NonNaturalGroteskInktrap;
|
|
29
31
|
font-style: normal;
|
|
30
32
|
font-weight: 700;
|
|
31
|
-
src: url('#{$
|
|
33
|
+
src: url('#{$cl-folder-prefix}/fonts/NonNaturalGroteskInktrap/NonNaturalGroteskInktrap-Bold.woff2?no-inline')
|
|
32
34
|
format('woff2');
|
|
33
35
|
}
|
|
34
36
|
}
|
package/src/styles/_global.scss
CHANGED
|
@@ -6,54 +6,15 @@
|
|
|
6
6
|
// This file defines all global variables and helper functions/mixins. It MUST
|
|
7
7
|
// NOT not output any css, as it will be included by every Vue component.
|
|
8
8
|
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@import 'layout/typography.variables';
|
|
22
|
-
@import 'layout/grid.variables';
|
|
23
|
-
@import 'components/button.variables';
|
|
24
|
-
@import 'components/form.variables';
|
|
25
|
-
@import '../components/ClList/style.variables';
|
|
26
|
-
@import '../components/table/ClTable/style.variables';
|
|
27
|
-
@import '../components/table/ClTableCel/style.variables';
|
|
28
|
-
@import '../components/ClCard/style.variables';
|
|
29
|
-
@import 'vendors/castlabs';
|
|
30
|
-
|
|
31
|
-
// --- spacings ----------------------------------------------------------------
|
|
32
|
-
|
|
33
|
-
%spacing-huge {
|
|
34
|
-
margin-top: $spacing-huge;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
%spacing-large {
|
|
38
|
-
margin-top: $spacing-large;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
%spacing-medium {
|
|
42
|
-
margin-top: $spacing-medium;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
%spacing-small {
|
|
46
|
-
margin-top: $spacing-small;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
%spacing-tiny {
|
|
50
|
-
margin-top: $spacing-tiny;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
%spacing-micro {
|
|
54
|
-
margin-top: $spacing-micro;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
%spacing-none {
|
|
58
|
-
margin-top: 0;
|
|
59
|
-
}
|
|
9
|
+
@forward 'abstracts/app';
|
|
10
|
+
@forward 'abstracts/button';
|
|
11
|
+
@forward 'abstracts/color';
|
|
12
|
+
@forward 'abstracts/fontawesome';
|
|
13
|
+
@forward 'abstracts/form';
|
|
14
|
+
@forward 'abstracts/grid';
|
|
15
|
+
@forward 'abstracts/responsive';
|
|
16
|
+
@forward 'abstracts/spacing';
|
|
17
|
+
@forward 'abstracts/tools';
|
|
18
|
+
@forward 'abstracts/typography';
|
|
19
|
+
|
|
20
|
+
// $castlabs-ui-asset-prefix: '@' !default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group themes
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// global brand settings/values
|
|
7
|
+
|
|
8
|
+
@use './spacing' as *;
|
|
9
|
+
@use './tools' as *;
|
|
10
|
+
|
|
11
|
+
$brand-border-radius: px(20);
|
|
12
|
+
$brand-line-width: px(1);
|
|
13
|
+
|
|
14
|
+
$grid-spacing: $spacing-small;
|
|
15
|
+
|
|
16
|
+
$layer-z-modal: 2000;
|
|
17
|
+
$layer-z-sidenav: 1000;
|
|
18
|
+
$layer-z-content: 0;
|
|
19
|
+
|
|
20
|
+
$sidenav-width-open: 18rem;
|
|
21
|
+
$sidenav-width-closed: 0;
|
|
22
|
+
$sidenav-z-index: $layer-z-sidenav;
|
|
23
|
+
$sidenav-breakpoint: xl;
|
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
/// @access public
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
@use './app' as *;
|
|
7
|
+
@use './color' as *;
|
|
8
|
+
@use './spacing' as *;
|
|
9
|
+
@use './tools' as *;
|
|
10
|
+
|
|
6
11
|
@mixin cl-button {
|
|
7
12
|
background-image: none;
|
|
8
13
|
border-radius: $brand-border-radius;
|
|
@@ -13,8 +18,7 @@
|
|
|
13
18
|
line-height: 1; // repeat as @include overrides
|
|
14
19
|
opacity: 1;
|
|
15
20
|
overflow: hidden;
|
|
16
|
-
padding:
|
|
17
|
-
typography-sans-baselineunshift($spacing-tiny, px(18));
|
|
21
|
+
padding: $spacing-tiny $spacing-large;
|
|
18
22
|
text-align: center;
|
|
19
23
|
text-decoration: none;
|
|
20
24
|
transition: opacity 0.15s;
|
|
@@ -79,12 +83,3 @@
|
|
|
79
83
|
outline: 0 !important;
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
|
-
|
|
83
|
-
@mixin cl-button-focus-outline() {
|
|
84
|
-
.btn-check:focus-visible + &,
|
|
85
|
-
&:focus-visible {
|
|
86
|
-
@include cl-color-focus-outline;
|
|
87
|
-
|
|
88
|
-
box-shadow: none;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
// Basic/generic color values.
|
|
7
7
|
|
|
8
|
+
@use './tools' as *;
|
|
9
|
+
|
|
8
10
|
$color-black-50a: rgb(0 0 0 / 50%);
|
|
9
11
|
|
|
10
12
|
$color-ci-red: #fa423c; // rgba(250, 66, 60, 1)
|
|
@@ -72,6 +74,15 @@ $bar-ui-width: px(4);
|
|
|
72
74
|
}
|
|
73
75
|
}
|
|
74
76
|
|
|
77
|
+
@mixin cl-button-focus-outline() {
|
|
78
|
+
.btn-check:focus-visible + &,
|
|
79
|
+
&:focus-visible {
|
|
80
|
+
@include cl-color-focus-outline;
|
|
81
|
+
|
|
82
|
+
box-shadow: none;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
75
86
|
@mixin cl-accent() {
|
|
76
87
|
&.cl-accent-red,
|
|
77
88
|
.cl-accent-red {
|
|
@@ -5,6 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines form/input field variables
|
|
7
7
|
|
|
8
|
+
@use './app' as *;
|
|
9
|
+
@use './color' as *;
|
|
10
|
+
@use './spacing' as *;
|
|
11
|
+
@use './tools' as *;
|
|
12
|
+
@use './typography' as *;
|
|
13
|
+
|
|
8
14
|
$form-field-fontsize: px(16);
|
|
9
15
|
$form-field-line-height: 1.375;
|
|
10
16
|
$form-field-min-height: px(36);
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
////
|
|
2
|
-
/// @group
|
|
2
|
+
/// @group vendors
|
|
3
3
|
/// @access public
|
|
4
4
|
////
|
|
5
5
|
|
|
6
|
+
// This file will define/override variables used by bootstrap to customize it
|
|
7
|
+
// to our needs.
|
|
8
|
+
|
|
9
|
+
@use 'sass:math';
|
|
10
|
+
|
|
11
|
+
@use './spacing' as *;
|
|
12
|
+
|
|
6
13
|
@mixin grid-margins($spacing) {
|
|
7
14
|
padding-bottom: math.div($spacing, 2);
|
|
8
15
|
padding-top: math.div($spacing, 2);
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
////
|
|
2
|
+
/// @group vendors
|
|
3
|
+
/// @access public
|
|
4
|
+
////
|
|
5
|
+
|
|
6
|
+
// This file will define/override variables used by bootstrap to customize it
|
|
7
|
+
// to our needs.
|
|
8
|
+
// hint: see also vendors/bootstrap.scss for the actual Bootstrap imports
|
|
9
|
+
|
|
10
|
+
@use 'sass:map';
|
|
11
|
+
|
|
12
|
+
$grid-breakpoints: (
|
|
13
|
+
xs: 0,
|
|
14
|
+
sm: 576px,
|
|
15
|
+
md: 768px,
|
|
16
|
+
lg: 992px,
|
|
17
|
+
xl: 1200px,
|
|
18
|
+
xxl: 1400px
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
$grid-table-responsive: sm;
|
|
22
|
+
|
|
23
|
+
@function breakpoint-min($breakpoint) {
|
|
24
|
+
$min: map.get($grid-breakpoints, $breakpoint);
|
|
25
|
+
@return if($min != 0, $min, null);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@function breakpoint-max($breakpoint) {
|
|
29
|
+
$max: map.get($grid-breakpoints, $breakpoint);
|
|
30
|
+
@return if($max and $max > 0, $max - 0.02, null);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@function breakpoint-next($breakpoint, $breakpoint-names: map.keys($grid-breakpoints)) {
|
|
34
|
+
$n: index($breakpoint-names, $breakpoint);
|
|
35
|
+
@if not $n {
|
|
36
|
+
@error 'breakpoint `#{$breakpoint}` not found in `#{$grid-breakpoints}`';
|
|
37
|
+
}
|
|
38
|
+
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin media-breakpoint-up($breakpoint) {
|
|
42
|
+
$min: breakpoint-min($breakpoint);
|
|
43
|
+
@if $min {
|
|
44
|
+
// stylelint-disable-next-line media-query-no-invalid
|
|
45
|
+
@media (min-width: $min) {
|
|
46
|
+
@content;
|
|
47
|
+
}
|
|
48
|
+
} @else {
|
|
49
|
+
@content;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@mixin media-breakpoint-down($breakpoint) {
|
|
54
|
+
$max: breakpoint-max($breakpoint);
|
|
55
|
+
@if $max {
|
|
56
|
+
// stylelint-disable-next-line media-query-no-invalid
|
|
57
|
+
@media (max-width: $max) {
|
|
58
|
+
@content;
|
|
59
|
+
}
|
|
60
|
+
} @else {
|
|
61
|
+
@content;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@mixin media-breakpoint-only($breakpoint) {
|
|
66
|
+
$min: breakpoint-min($breakpoint);
|
|
67
|
+
$next: breakpoint-next($breakpoint);
|
|
68
|
+
$max: breakpoint-max($next);
|
|
69
|
+
|
|
70
|
+
@if $min != null and $max != null {
|
|
71
|
+
// stylelint-disable-next-line media-query-no-invalid
|
|
72
|
+
@media (min-width: $min) and (max-width: $max) {
|
|
73
|
+
@content;
|
|
74
|
+
}
|
|
75
|
+
} @else if $max == null {
|
|
76
|
+
@include media-breakpoint-up($breakpoint) {
|
|
77
|
+
@content;
|
|
78
|
+
}
|
|
79
|
+
} @else if $min == null {
|
|
80
|
+
@include media-breakpoint-down($next) {
|
|
81
|
+
@content;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|