blue-web 1.21.0 → 1.21.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/LICENSE +164 -164
- package/README.md +74 -74
- package/dist/js/actions.d.ts +6 -6
- package/dist/js/color-mode.d.ts +4 -4
- package/dist/js/dialog.d.ts +18 -18
- package/dist/js/edit-view.d.ts +14 -14
- package/dist/js/edit-view.js +2 -2
- package/dist/js/input-splitted.d.ts +19 -19
- package/dist/js/odometer.bundle.js +1 -1
- package/dist/js/odometer.d.ts +30 -17
- package/dist/js/odometer.js +38 -3
- package/dist/js/progress.d.ts +2 -2
- package/dist/js/read-view.d.ts +35 -35
- package/dist/js/read-view.js +18 -18
- package/dist/js/select-list.d.ts +46 -46
- package/dist/js/select-list.js +17 -17
- package/dist/js/shared.d.ts +14 -14
- package/dist/js/side-layout.d.ts +7 -7
- package/dist/js/utils.d.ts +18 -18
- package/dist/js/utils.js +6 -6
- package/dist/merged.scss +2170 -2323
- package/dist/neu.scss +92 -92
- package/dist/style.css +48 -55
- package/dist/style.css.map +1 -1
- package/dist/style.min.css +4 -4
- package/dist/style.scss +62 -61
- package/dist/styles/_action-menu.scss +57 -57
- package/dist/styles/_actions.scss +37 -37
- package/dist/styles/_anchor.scss +42 -42
- package/dist/styles/_bootstrap-mixins_overwritten.scss +106 -106
- package/dist/styles/_bootstrap-variables.scss +46 -46
- package/dist/styles/_bootstrap.scss +64 -65
- package/dist/styles/_button-icon-wrapper.scss +28 -28
- package/dist/styles/_buttons.scss +120 -110
- package/dist/styles/_collapse.scss +72 -72
- package/dist/styles/_container-grid.scss +52 -52
- package/dist/styles/_devexpress.scss +104 -104
- package/dist/styles/_general.scss +55 -74
- package/dist/styles/_hover.scss +37 -37
- package/dist/styles/_input-group.scss +29 -29
- package/dist/styles/_inter.scss +19 -19
- package/dist/styles/_intro.scss +22 -0
- package/dist/styles/_keyframes.scss +73 -73
- package/dist/styles/_layout.scss +175 -178
- package/dist/styles/_menu-item.scss +86 -255
- package/dist/styles/_mixins.scss +6 -6
- package/dist/styles/_modal.scss +118 -118
- package/dist/styles/_page-header.scss +14 -14
- package/dist/styles/_scrollspy.scss +78 -73
- package/dist/styles/_status.scss +131 -131
- package/dist/styles/_text-icons.scss +15 -15
- package/dist/styles/_tooltips.scss +150 -150
- package/dist/styles/_utils.scss +20 -20
- package/dist/styles/_variables.scss +128 -127
- package/dist/styles/mixins/_action-menu.scss +64 -64
- package/dist/styles/mixins/_custom-property.scss +10 -10
- package/dist/styles/mixins/_menu-item.scss +136 -136
- package/dist/styles/mixins/_misc.scss +7 -7
- package/dist/styles/mixins/_scroll-shadow.scss +9 -9
- package/dist/styles/mixins/_switch.scss +91 -91
- package/package.json +88 -88
- package/dist/container-grid.css +0 -196
- package/dist/js/auto-theme.bundle.js +0 -1
- package/dist/js/auto-theme.d.ts +0 -26
- package/dist/js/auto-theme.js +0 -169
- package/dist/js/button.bundle.js +0 -1
- package/dist/js/button.d.ts +0 -6
- package/dist/js/button.js +0 -16
- package/dist/js/dialog.bundle.js.LICENSE.txt +0 -5
- package/dist/js/dxf-viewer.js +0 -129
- package/dist/js/searchbox.bundle.js +0 -2
- package/dist/js/searchbox.bundle.js.LICENSE.txt +0 -11
- package/dist/js/searchbox.d.ts +0 -16
- package/dist/js/searchbox.js +0 -158
- package/dist/tailwind-main.css +0 -737
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
// Main color theme. E.g. used for background for body and sidebar.
|
|
2
|
-
$theme: hsl(217deg 10% 94%) !default;
|
|
3
|
-
$theme-dark: hsl(217deg 10% 8%) !default;
|
|
4
|
-
$primary: hsl(221, 97%, 53%) !default;
|
|
5
|
-
$white: #fff !default;
|
|
6
|
-
$gray-100: hsl(217deg 17% 98%) !default;
|
|
7
|
-
$gray-200: hsl(217deg 16% 93%) !default;
|
|
8
|
-
$gray-300: hsl(217deg 14% 89%) !default;
|
|
9
|
-
$gray-400: hsl(217deg 14% 83%) !default;
|
|
10
|
-
$gray-500: hsl(217deg 11% 71%) !default;
|
|
11
|
-
$gray-600: hsl(217deg 7% 46%) !default;
|
|
12
|
-
$gray-700: hsl(217deg 9% 31%) !default;
|
|
13
|
-
$gray-800: hsl(217deg 10% 23%) !default;
|
|
14
|
-
$gray-900: hsl(217deg 11% 15%) !default;
|
|
15
|
-
$black: #000 !default;
|
|
16
|
-
|
|
17
|
-
$light: #ecedf0 !default;
|
|
18
|
-
|
|
19
|
-
// Components
|
|
20
|
-
//
|
|
21
|
-
|
|
22
|
-
$font-size-base: 1rem !default;
|
|
23
|
-
|
|
24
|
-
$h1-font-size: $font-size-base * 2 !default;
|
|
25
|
-
$h2-font-size: $font-size-base * 1.5 !default;
|
|
26
|
-
$h3-font-size: $font-size-base * 1.25 !default;
|
|
27
|
-
$h4-font-size: $font-size-base * 1.125 !default;
|
|
28
|
-
$h5-font-size: $font-size-base * 1.1 !default;
|
|
29
|
-
$h6-font-size: $font-size-base !default;
|
|
30
|
-
|
|
31
|
-
$border-radius: 0.7rem !default;
|
|
32
|
-
$border-radius-lg: 1rem !default;
|
|
33
|
-
$border-radius-sm: 0.5rem !default;
|
|
34
|
-
|
|
35
|
-
$custom-checkbox-indicator-border-radius: $border-radius-sm !default;
|
|
36
|
-
|
|
37
|
-
$link-decoration: none !default;
|
|
38
|
-
$link-hover-decoration: underline !default;
|
|
39
|
-
|
|
40
|
-
// Tint focus border and shadow in primary color.
|
|
41
|
-
// In a future Bootstrap release, this might not be necessary anymore.
|
|
42
|
-
$focus-ring-color: #{rgba(var(--bs-primary-rgb), 25%)} !default;
|
|
43
|
-
$input-focus-border-color: #{rgba(var(--bs-primary-rgb), 50%)} !default;
|
|
44
|
-
|
|
45
|
-
$enable-button-pointers: false !default;
|
|
46
|
-
$focus-ring-width: 0.125rem !default;
|
|
1
|
+
// Main color theme. E.g. used for background for body and sidebar.
|
|
2
|
+
$theme: hsl(217deg 10% 94%) !default;
|
|
3
|
+
$theme-dark: hsl(217deg 10% 8%) !default;
|
|
4
|
+
$primary: hsl(221, 97%, 53%) !default;
|
|
5
|
+
$white: #fff !default;
|
|
6
|
+
$gray-100: hsl(217deg 17% 98%) !default;
|
|
7
|
+
$gray-200: hsl(217deg 16% 93%) !default;
|
|
8
|
+
$gray-300: hsl(217deg 14% 89%) !default;
|
|
9
|
+
$gray-400: hsl(217deg 14% 83%) !default;
|
|
10
|
+
$gray-500: hsl(217deg 11% 71%) !default;
|
|
11
|
+
$gray-600: hsl(217deg 7% 46%) !default;
|
|
12
|
+
$gray-700: hsl(217deg 9% 31%) !default;
|
|
13
|
+
$gray-800: hsl(217deg 10% 23%) !default;
|
|
14
|
+
$gray-900: hsl(217deg 11% 15%) !default;
|
|
15
|
+
$black: #000 !default;
|
|
16
|
+
|
|
17
|
+
$light: #ecedf0 !default;
|
|
18
|
+
|
|
19
|
+
// Components
|
|
20
|
+
//
|
|
21
|
+
|
|
22
|
+
$font-size-base: 1rem !default;
|
|
23
|
+
|
|
24
|
+
$h1-font-size: $font-size-base * 2 !default;
|
|
25
|
+
$h2-font-size: $font-size-base * 1.5 !default;
|
|
26
|
+
$h3-font-size: $font-size-base * 1.25 !default;
|
|
27
|
+
$h4-font-size: $font-size-base * 1.125 !default;
|
|
28
|
+
$h5-font-size: $font-size-base * 1.1 !default;
|
|
29
|
+
$h6-font-size: $font-size-base !default;
|
|
30
|
+
|
|
31
|
+
$border-radius: 0.7rem !default;
|
|
32
|
+
$border-radius-lg: 1rem !default;
|
|
33
|
+
$border-radius-sm: 0.5rem !default;
|
|
34
|
+
|
|
35
|
+
$custom-checkbox-indicator-border-radius: $border-radius-sm !default;
|
|
36
|
+
|
|
37
|
+
$link-decoration: none !default;
|
|
38
|
+
$link-hover-decoration: underline !default;
|
|
39
|
+
|
|
40
|
+
// Tint focus border and shadow in primary color.
|
|
41
|
+
// In a future Bootstrap release, this might not be necessary anymore.
|
|
42
|
+
$focus-ring-color: #{rgba(var(--bs-primary-rgb), 25%)} !default;
|
|
43
|
+
$input-focus-border-color: #{rgba(var(--bs-primary-rgb), 50%)} !default;
|
|
44
|
+
|
|
45
|
+
$enable-button-pointers: false !default;
|
|
46
|
+
$focus-ring-width: 0.125rem !default;
|
|
@@ -1,65 +1,64 @@
|
|
|
1
|
-
@import "node_modules/bootstrap/scss/mixins/banner";
|
|
2
|
-
@include bsBanner("");
|
|
3
|
-
|
|
4
|
-
// scss-docs-start import-stack
|
|
5
|
-
// Configuration
|
|
6
|
-
@import "node_modules/bootstrap/scss/functions";
|
|
7
|
-
@import "node_modules/bootstrap/scss/variables";
|
|
8
|
-
@import "node_modules/bootstrap/scss/variables-dark";
|
|
9
|
-
@import "node_modules/bootstrap/scss/maps";
|
|
10
|
-
@import "node_modules/bootstrap/scss/mixins";
|
|
11
|
-
@import "node_modules/bootstrap/scss/utilities";
|
|
12
|
-
|
|
13
|
-
// Layout & components
|
|
14
|
-
@import "node_modules/bootstrap/scss/root";
|
|
15
|
-
@import "node_modules/bootstrap/scss/reboot";
|
|
16
|
-
@import "node_modules/bootstrap/scss/type";
|
|
17
|
-
@import "node_modules/bootstrap/scss/images";
|
|
18
|
-
@import "node_modules/bootstrap/scss/containers";
|
|
19
|
-
@import "node_modules/bootstrap/scss/grid";
|
|
20
|
-
@import "node_modules/bootstrap/scss/tables";
|
|
21
|
-
@import "node_modules/bootstrap/scss/forms";
|
|
22
|
-
@import "node_modules/bootstrap/scss/buttons";
|
|
23
|
-
@import "node_modules/bootstrap/scss/transitions";
|
|
24
|
-
@import "node_modules/bootstrap/scss/dropdown";
|
|
25
|
-
@import "node_modules/bootstrap/scss/button-group";
|
|
26
|
-
@import "node_modules/bootstrap/scss/nav";
|
|
27
|
-
@import "node_modules/bootstrap/scss/navbar";
|
|
28
|
-
@import "node_modules/bootstrap/scss/card";
|
|
29
|
-
@import "node_modules/bootstrap/scss/accordion";
|
|
30
|
-
@import "node_modules/bootstrap/scss/breadcrumb";
|
|
31
|
-
@import "node_modules/bootstrap/scss/pagination";
|
|
32
|
-
@import "node_modules/bootstrap/scss/badge";
|
|
33
|
-
@import "node_modules/bootstrap/scss/alert";
|
|
34
|
-
@import "node_modules/bootstrap/scss/progress";
|
|
35
|
-
@import "node_modules/bootstrap/scss/list-group";
|
|
36
|
-
@import "node_modules/bootstrap/scss/close";
|
|
37
|
-
@import "node_modules/bootstrap/scss/toasts";
|
|
38
|
-
@import "node_modules/bootstrap/scss/modal";
|
|
39
|
-
@import "node_modules/bootstrap/scss/tooltip";
|
|
40
|
-
@import "node_modules/bootstrap/scss/popover";
|
|
41
|
-
@import "node_modules/bootstrap/scss/carousel";
|
|
42
|
-
@import "node_modules/bootstrap/scss/spinners";
|
|
43
|
-
@import "node_modules/bootstrap/scss/offcanvas";
|
|
44
|
-
@import "node_modules/bootstrap/scss/placeholders";
|
|
45
|
-
|
|
46
|
-
// Helpers
|
|
47
|
-
@import "node_modules/bootstrap/scss/helpers";
|
|
48
|
-
|
|
49
|
-
//
|
|
50
|
-
$utilities: map-merge(
|
|
51
|
-
$utilities,
|
|
52
|
-
(
|
|
53
|
-
"position":
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
// scss-docs-end import-stack
|
|
1
|
+
@import "node_modules/bootstrap/scss/mixins/banner";
|
|
2
|
+
@include bsBanner("");
|
|
3
|
+
|
|
4
|
+
// scss-docs-start import-stack
|
|
5
|
+
// Configuration
|
|
6
|
+
@import "node_modules/bootstrap/scss/functions";
|
|
7
|
+
@import "node_modules/bootstrap/scss/variables";
|
|
8
|
+
@import "node_modules/bootstrap/scss/variables-dark";
|
|
9
|
+
@import "node_modules/bootstrap/scss/maps";
|
|
10
|
+
@import "node_modules/bootstrap/scss/mixins";
|
|
11
|
+
@import "node_modules/bootstrap/scss/utilities";
|
|
12
|
+
|
|
13
|
+
// Layout & components
|
|
14
|
+
@import "node_modules/bootstrap/scss/root";
|
|
15
|
+
@import "node_modules/bootstrap/scss/reboot";
|
|
16
|
+
@import "node_modules/bootstrap/scss/type";
|
|
17
|
+
@import "node_modules/bootstrap/scss/images";
|
|
18
|
+
@import "node_modules/bootstrap/scss/containers";
|
|
19
|
+
@import "node_modules/bootstrap/scss/grid";
|
|
20
|
+
@import "node_modules/bootstrap/scss/tables";
|
|
21
|
+
@import "node_modules/bootstrap/scss/forms";
|
|
22
|
+
@import "node_modules/bootstrap/scss/buttons";
|
|
23
|
+
@import "node_modules/bootstrap/scss/transitions";
|
|
24
|
+
@import "node_modules/bootstrap/scss/dropdown";
|
|
25
|
+
@import "node_modules/bootstrap/scss/button-group";
|
|
26
|
+
@import "node_modules/bootstrap/scss/nav";
|
|
27
|
+
@import "node_modules/bootstrap/scss/navbar";
|
|
28
|
+
@import "node_modules/bootstrap/scss/card";
|
|
29
|
+
@import "node_modules/bootstrap/scss/accordion";
|
|
30
|
+
@import "node_modules/bootstrap/scss/breadcrumb";
|
|
31
|
+
@import "node_modules/bootstrap/scss/pagination";
|
|
32
|
+
@import "node_modules/bootstrap/scss/badge";
|
|
33
|
+
@import "node_modules/bootstrap/scss/alert";
|
|
34
|
+
@import "node_modules/bootstrap/scss/progress";
|
|
35
|
+
@import "node_modules/bootstrap/scss/list-group";
|
|
36
|
+
@import "node_modules/bootstrap/scss/close";
|
|
37
|
+
@import "node_modules/bootstrap/scss/toasts";
|
|
38
|
+
@import "node_modules/bootstrap/scss/modal";
|
|
39
|
+
@import "node_modules/bootstrap/scss/tooltip";
|
|
40
|
+
@import "node_modules/bootstrap/scss/popover";
|
|
41
|
+
@import "node_modules/bootstrap/scss/carousel";
|
|
42
|
+
@import "node_modules/bootstrap/scss/spinners";
|
|
43
|
+
@import "node_modules/bootstrap/scss/offcanvas";
|
|
44
|
+
@import "node_modules/bootstrap/scss/placeholders";
|
|
45
|
+
|
|
46
|
+
// Helpers
|
|
47
|
+
@import "node_modules/bootstrap/scss/helpers";
|
|
48
|
+
|
|
49
|
+
// Enable responsive for position
|
|
50
|
+
$utilities: map-merge(
|
|
51
|
+
$utilities,
|
|
52
|
+
(
|
|
53
|
+
"position": map-merge(
|
|
54
|
+
map-get($utilities, "position"),
|
|
55
|
+
(
|
|
56
|
+
responsive: true
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
// Utilities
|
|
63
|
+
@import "node_modules/bootstrap/scss/utilities/api";
|
|
64
|
+
// scss-docs-end import-stack
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
// Extending `.icon-link > .bi` by Bootstrap to allow wrapped icons.
|
|
2
|
-
|
|
3
|
-
.blue-btn-icon-wrapper {
|
|
4
|
-
display: contents;
|
|
5
|
-
|
|
6
|
-
& > * {
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
@include transition($icon-link-icon-transition);
|
|
9
|
-
}
|
|
10
|
-
& > svg {
|
|
11
|
-
width: $icon-link-icon-size;
|
|
12
|
-
height: $icon-link-icon-size;
|
|
13
|
-
fill: currentcolor;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.icon-link-hover {
|
|
18
|
-
&:hover,
|
|
19
|
-
&:focus-visible {
|
|
20
|
-
.blue-btn-icon-wrapper > * {
|
|
21
|
-
transform: var(--#{$prefix}icon-link-transform, $icon-link-icon-transform);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.blue-btn-square {
|
|
27
|
-
padding: calc(var(--bs-btn-padding-y) + #{$icon-link-underline-offset});
|
|
28
|
-
}
|
|
1
|
+
// Extending `.icon-link > .bi` by Bootstrap to allow wrapped icons.
|
|
2
|
+
|
|
3
|
+
.blue-btn-icon-wrapper {
|
|
4
|
+
display: contents;
|
|
5
|
+
|
|
6
|
+
& > * {
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
@include transition($icon-link-icon-transition);
|
|
9
|
+
}
|
|
10
|
+
& > svg {
|
|
11
|
+
width: $icon-link-icon-size;
|
|
12
|
+
height: $icon-link-icon-size;
|
|
13
|
+
fill: currentcolor;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.icon-link-hover {
|
|
18
|
+
&:hover,
|
|
19
|
+
&:focus-visible {
|
|
20
|
+
.blue-btn-icon-wrapper > * {
|
|
21
|
+
transform: var(--#{$prefix}icon-link-transform, $icon-link-icon-transform);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.blue-btn-square {
|
|
27
|
+
padding: calc(var(--bs-btn-padding-y) + #{$icon-link-underline-offset});
|
|
28
|
+
}
|
|
@@ -1,110 +1,120 @@
|
|
|
1
|
-
// Inspired by Bootstrap's button system but extended with more variants
|
|
2
|
-
|
|
3
|
-
// Soft buttons
|
|
4
|
-
|
|
5
|
-
// scss-docs-start btn-variant-loops
|
|
6
|
-
@each $color, $value in $theme-colors {
|
|
7
|
-
$bg: tint-color($value, 80%);
|
|
8
|
-
$text-color: shade-color($value, 60%);
|
|
9
|
-
|
|
10
|
-
.blue-btn-soft-#{$color} {
|
|
11
|
-
@if $color == "light" {
|
|
12
|
-
$text-color: color-contrast($value);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@include button-variant(
|
|
16
|
-
$bg,
|
|
17
|
-
$bg,
|
|
18
|
-
$text-color,
|
|
19
|
-
$hover-background: shade-color($bg, $btn-hover-bg-shade-amount),
|
|
20
|
-
$hover-border: shade-color($bg, $btn-hover-border-shade-amount),
|
|
21
|
-
$active-background: shade-color($bg, $btn-active-bg-shade-amount),
|
|
22
|
-
$active-border: shade-color($bg, $btn-active-border-shade-amount)
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@include color-mode(dark) {
|
|
28
|
-
@each $color, $value in $theme-colors {
|
|
29
|
-
$bg: shade-color($value, 80%);
|
|
30
|
-
$text-color: tint-color($value, 60%);
|
|
31
|
-
|
|
32
|
-
.blue-btn-soft-#{$color} {
|
|
33
|
-
@if $color == "dark" {
|
|
34
|
-
$text-color: color-contrast($value);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@include button-variant(
|
|
38
|
-
$bg,
|
|
39
|
-
$bg,
|
|
40
|
-
$text-color,
|
|
41
|
-
$hover-background: tint-color($bg, $btn-hover-bg-tint-amount),
|
|
42
|
-
$hover-border: tint-color($bg, $btn-hover-border-tint-amount),
|
|
43
|
-
$active-background: tint-color($bg, $btn-active-bg-tint-amount),
|
|
44
|
-
$active-border: tint-color($bg, $btn-active-border-tint-amount)
|
|
45
|
-
);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Plain buttons
|
|
51
|
-
|
|
52
|
-
// scss-docs-start btn-variant-loops
|
|
53
|
-
@each $color, $value in $theme-colors {
|
|
54
|
-
$bg: tint-color($value, 80%);
|
|
55
|
-
$text-color: $value;
|
|
56
|
-
|
|
57
|
-
$active-background: if(
|
|
58
|
-
$color == $color-contrast-light,
|
|
59
|
-
shade-color($value, $btn-active-bg-shade-amount),
|
|
60
|
-
tint-color($value, $btn-active-bg-tint-amount)
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
.blue-btn-plain-#{$color} {
|
|
64
|
-
&:not(:hover) {
|
|
65
|
-
box-shadow: none;
|
|
66
|
-
background-image: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@if $color == "light" {
|
|
70
|
-
$text-color: color-contrast($value);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
$
|
|
82
|
-
$
|
|
83
|
-
$
|
|
84
|
-
$
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
$
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
1
|
+
// Inspired by Bootstrap's button system but extended with more variants
|
|
2
|
+
|
|
3
|
+
// Soft buttons
|
|
4
|
+
|
|
5
|
+
// scss-docs-start btn-variant-loops
|
|
6
|
+
@each $color, $value in $theme-colors {
|
|
7
|
+
$bg: tint-color($value, 80%);
|
|
8
|
+
$text-color: shade-color($value, 60%);
|
|
9
|
+
|
|
10
|
+
.blue-btn-soft-#{$color} {
|
|
11
|
+
@if $color == "light" {
|
|
12
|
+
$text-color: color-contrast($value);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@include button-variant(
|
|
16
|
+
$bg,
|
|
17
|
+
$bg,
|
|
18
|
+
$text-color,
|
|
19
|
+
$hover-background: shade-color($bg, $btn-hover-bg-shade-amount),
|
|
20
|
+
$hover-border: shade-color($bg, $btn-hover-border-shade-amount),
|
|
21
|
+
$active-background: shade-color($bg, $btn-active-bg-shade-amount),
|
|
22
|
+
$active-border: shade-color($bg, $btn-active-border-shade-amount)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include color-mode(dark) {
|
|
28
|
+
@each $color, $value in $theme-colors {
|
|
29
|
+
$bg: shade-color($value, 80%);
|
|
30
|
+
$text-color: tint-color($value, 60%);
|
|
31
|
+
|
|
32
|
+
.blue-btn-soft-#{$color} {
|
|
33
|
+
@if $color == "dark" {
|
|
34
|
+
$text-color: color-contrast($value);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include button-variant(
|
|
38
|
+
$bg,
|
|
39
|
+
$bg,
|
|
40
|
+
$text-color,
|
|
41
|
+
$hover-background: tint-color($bg, $btn-hover-bg-tint-amount),
|
|
42
|
+
$hover-border: tint-color($bg, $btn-hover-border-tint-amount),
|
|
43
|
+
$active-background: tint-color($bg, $btn-active-bg-tint-amount),
|
|
44
|
+
$active-border: tint-color($bg, $btn-active-border-tint-amount)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Plain buttons
|
|
51
|
+
|
|
52
|
+
// scss-docs-start btn-variant-loops
|
|
53
|
+
@each $color, $value in $theme-colors {
|
|
54
|
+
$bg: tint-color($value, 80%);
|
|
55
|
+
$text-color: $value;
|
|
56
|
+
|
|
57
|
+
$active-background: if(
|
|
58
|
+
$color == $color-contrast-light,
|
|
59
|
+
shade-color($value, $btn-active-bg-shade-amount),
|
|
60
|
+
tint-color($value, $btn-active-bg-tint-amount)
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
.blue-btn-plain-#{$color} {
|
|
64
|
+
&:not(:hover) {
|
|
65
|
+
box-shadow: none;
|
|
66
|
+
background-image: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@if $color == "light" {
|
|
70
|
+
$text-color: color-contrast($value);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// More contrast for secondary plain button
|
|
74
|
+
@if $color == "secondary" {
|
|
75
|
+
$text-color: shade-color($value, 60%);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@include button-variant(
|
|
79
|
+
transparent,
|
|
80
|
+
transparent,
|
|
81
|
+
$text-color,
|
|
82
|
+
$hover-background: tint-color($value, 80%),
|
|
83
|
+
$hover-border: tint-color($value, 80%),
|
|
84
|
+
$hover-color: if($color == "light", color-contrast($value), shade-color($value, 60%)),
|
|
85
|
+
$active-background: shade-color($bg, $btn-hover-bg-shade-amount),
|
|
86
|
+
$active-border: shade-color($bg, $btn-hover-border-shade-amount),
|
|
87
|
+
$disabled-background: transparent,
|
|
88
|
+
$disabled-border: transparent,
|
|
89
|
+
$disabled-color: $text-color
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@include color-mode(dark) {
|
|
95
|
+
@each $color, $value in $theme-colors {
|
|
96
|
+
$bg: shade-color($value, 80%);
|
|
97
|
+
$text-color: tint-color($value, 40%);
|
|
98
|
+
|
|
99
|
+
.blue-btn-plain-#{$color} {
|
|
100
|
+
@if $color == "dark" {
|
|
101
|
+
$text-color: color-contrast($value);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// More contrast for secondary plain button
|
|
105
|
+
@if $color == "secondary" {
|
|
106
|
+
$text-color: tint-color($value, 60%);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@include button-variant(
|
|
110
|
+
transparent,
|
|
111
|
+
transparent,
|
|
112
|
+
$text-color,
|
|
113
|
+
$hover-background: tint-color($bg, $btn-hover-bg-tint-amount),
|
|
114
|
+
$hover-border: tint-color($bg, $btn-hover-border-tint-amount),
|
|
115
|
+
$active-background: tint-color($bg, $btn-active-bg-tint-amount),
|
|
116
|
+
$active-border: tint-color($bg, $btn-active-border-tint-amount)
|
|
117
|
+
);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
// Collapse with details and animated
|
|
2
|
-
.blue-collapse {
|
|
3
|
-
interpolate-size: allow-keywords;
|
|
4
|
-
|
|
5
|
-
summary {
|
|
6
|
-
list-style: none;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
summary::-webkit-details-marker {
|
|
10
|
-
display: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.blue-collapse-chevron {
|
|
14
|
-
transition: transform 0.2s;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&[open] > summary .blue-collapse-chevron {
|
|
18
|
-
--blue-collapse-chevron-rotate: 90deg;
|
|
19
|
-
transform: rotate(var(--blue-collapse-chevron-rotate));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&::details-content {
|
|
23
|
-
block-size: 0;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
translate: 0 -4rem;
|
|
26
|
-
transition:
|
|
27
|
-
block-size 0.2s,
|
|
28
|
-
content-visibility 0.2s,
|
|
29
|
-
opacity 0.2s,
|
|
30
|
-
translate 0.2s;
|
|
31
|
-
transition-behavior: allow-discrete;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&[open]::details-content {
|
|
35
|
-
block-size: auto;
|
|
36
|
-
opacity: 1;
|
|
37
|
-
translate: 0;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@media (prefers-reduced-motion) {
|
|
42
|
-
.blue-collapse .blue-collapse-chevron,
|
|
43
|
-
.blue-collapse::details-content {
|
|
44
|
-
transition: none;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.blue-collapse-indent {
|
|
49
|
-
// 0.5em is half of icon width
|
|
50
|
-
--margin-inline-start: calc(#{$input-btn-padding-x} + 0.5em + #{$input-btn-border-width});
|
|
51
|
-
margin-inline-start: var(--margin-inline-start);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Let's you group a collapse together with another UI element like a button that should come before the collapse summary.
|
|
55
|
-
.blue-collapse-group {
|
|
56
|
-
display: grid;
|
|
57
|
-
grid-template-rows: auto;
|
|
58
|
-
grid-template-columns: minmax(0, 1fr);
|
|
59
|
-
max-width: 100%;
|
|
60
|
-
|
|
61
|
-
& > details {
|
|
62
|
-
display: contents;
|
|
63
|
-
|
|
64
|
-
& > summary {
|
|
65
|
-
grid-column: 2;
|
|
66
|
-
|
|
67
|
-
& + * {
|
|
68
|
-
width: calc(100% + var(--margin-inline-start) - 3px);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
// Collapse with details and animated
|
|
2
|
+
.blue-collapse {
|
|
3
|
+
interpolate-size: allow-keywords;
|
|
4
|
+
|
|
5
|
+
summary {
|
|
6
|
+
list-style: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
summary::-webkit-details-marker {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.blue-collapse-chevron {
|
|
14
|
+
transition: transform 0.2s;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&[open] > summary .blue-collapse-chevron {
|
|
18
|
+
--blue-collapse-chevron-rotate: 90deg;
|
|
19
|
+
transform: rotate(var(--blue-collapse-chevron-rotate));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&::details-content {
|
|
23
|
+
block-size: 0;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
translate: 0 -4rem;
|
|
26
|
+
transition:
|
|
27
|
+
block-size 0.2s,
|
|
28
|
+
content-visibility 0.2s,
|
|
29
|
+
opacity 0.2s,
|
|
30
|
+
translate 0.2s;
|
|
31
|
+
transition-behavior: allow-discrete;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&[open]::details-content {
|
|
35
|
+
block-size: auto;
|
|
36
|
+
opacity: 1;
|
|
37
|
+
translate: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@media (prefers-reduced-motion) {
|
|
42
|
+
.blue-collapse .blue-collapse-chevron,
|
|
43
|
+
.blue-collapse::details-content {
|
|
44
|
+
transition: none;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.blue-collapse-indent {
|
|
49
|
+
// 0.5em is half of icon width
|
|
50
|
+
--margin-inline-start: calc(#{$input-btn-padding-x} + 0.5em + #{$input-btn-border-width});
|
|
51
|
+
margin-inline-start: var(--margin-inline-start);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Let's you group a collapse together with another UI element like a button that should come before the collapse summary.
|
|
55
|
+
.blue-collapse-group {
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-template-rows: auto;
|
|
58
|
+
grid-template-columns: minmax(0, 1fr);
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
|
|
61
|
+
& > details {
|
|
62
|
+
display: contents;
|
|
63
|
+
|
|
64
|
+
& > summary {
|
|
65
|
+
grid-column: 2;
|
|
66
|
+
|
|
67
|
+
& + * {
|
|
68
|
+
width: calc(100% + var(--margin-inline-start) - 3px);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|