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
package/dist/style.scss
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Blue Web v1.21.
|
|
3
|
-
* Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-web/blob/master/LICENSE).
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
@import "./styles/bootstrap-variables";
|
|
7
|
-
|
|
8
|
-
@import "node_modules/bootstrap/scss/functions";
|
|
9
|
-
@import "node_modules/bootstrap/scss/variables";
|
|
10
|
-
@import "node_modules/bootstrap/scss/mixins";
|
|
11
|
-
@import "./styles/variables";
|
|
12
|
-
|
|
13
|
-
@import "./styles/mixins";
|
|
14
|
-
@import "./styles/keyframes";
|
|
15
|
-
|
|
16
|
-
@import "./styles/bootstrap";
|
|
17
|
-
|
|
18
|
-
// Make it overridable via CSS variables, as it is not yet possible in Bootstrap.
|
|
19
|
-
// Check with a newer Bootstrap version to see if it is still necessary.
|
|
20
|
-
.form-check-input:checked {
|
|
21
|
-
background-color: var(--bs-primary, #{$form-check-input-checked-bg-color});
|
|
22
|
-
border-color: var(--bs-primary, #{$form-check-input-checked-border-color});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Resets cursor from Bootstrap' _reboot.scss based on option.
|
|
26
|
-
@if ($enable-button-pointers: false) {
|
|
27
|
-
summary,
|
|
28
|
-
[role="button"] {
|
|
29
|
-
cursor: unset;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@import "./styles/text-icons";
|
|
34
|
-
@import "./styles/general";
|
|
35
|
-
@import "./styles/utils";
|
|
36
|
-
@import "./styles/status";
|
|
37
|
-
@import "./styles/menu-item";
|
|
38
|
-
@import "./styles/page-header";
|
|
39
|
-
@import "./styles/input-group";
|
|
40
|
-
@import "./styles/action-menu";
|
|
41
|
-
@import "./styles/tooltips";
|
|
42
|
-
@import "./styles/hover";
|
|
43
|
-
@import "./styles/button-icon-wrapper";
|
|
44
|
-
@import "./styles/buttons";
|
|
45
|
-
@import "./styles/container-grid";
|
|
46
|
-
@import "./styles/tabs";
|
|
47
|
-
@import "./styles/modal";
|
|
48
|
-
@import "./styles/layout";
|
|
49
|
-
@import "./styles/collapse";
|
|
50
|
-
@import "./styles/actions";
|
|
51
|
-
@import "./styles/anchor";
|
|
52
|
-
@import "./styles/scrollspy";
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
@import "./styles/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*:
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
/*!
|
|
2
|
+
* Blue Web v1.21.2 (https://bruegmann.github.io/blue-web)
|
|
3
|
+
* Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-web/blob/master/LICENSE).
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import "./styles/bootstrap-variables";
|
|
7
|
+
|
|
8
|
+
@import "node_modules/bootstrap/scss/functions";
|
|
9
|
+
@import "node_modules/bootstrap/scss/variables";
|
|
10
|
+
@import "node_modules/bootstrap/scss/mixins";
|
|
11
|
+
@import "./styles/variables";
|
|
12
|
+
|
|
13
|
+
@import "./styles/mixins";
|
|
14
|
+
@import "./styles/keyframes";
|
|
15
|
+
|
|
16
|
+
@import "./styles/bootstrap";
|
|
17
|
+
|
|
18
|
+
// Make it overridable via CSS variables, as it is not yet possible in Bootstrap.
|
|
19
|
+
// Check with a newer Bootstrap version to see if it is still necessary.
|
|
20
|
+
.form-check-input:checked {
|
|
21
|
+
background-color: var(--bs-primary, #{$form-check-input-checked-bg-color});
|
|
22
|
+
border-color: var(--bs-primary, #{$form-check-input-checked-border-color});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Resets cursor from Bootstrap' _reboot.scss based on option.
|
|
26
|
+
@if ($enable-button-pointers: false) {
|
|
27
|
+
summary,
|
|
28
|
+
[role="button"] {
|
|
29
|
+
cursor: unset;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@import "./styles/text-icons";
|
|
34
|
+
@import "./styles/general";
|
|
35
|
+
@import "./styles/utils";
|
|
36
|
+
@import "./styles/status";
|
|
37
|
+
@import "./styles/menu-item";
|
|
38
|
+
@import "./styles/page-header";
|
|
39
|
+
@import "./styles/input-group";
|
|
40
|
+
@import "./styles/action-menu";
|
|
41
|
+
@import "./styles/tooltips";
|
|
42
|
+
@import "./styles/hover";
|
|
43
|
+
@import "./styles/button-icon-wrapper";
|
|
44
|
+
@import "./styles/buttons";
|
|
45
|
+
@import "./styles/container-grid";
|
|
46
|
+
@import "./styles/tabs";
|
|
47
|
+
@import "./styles/modal";
|
|
48
|
+
@import "./styles/layout";
|
|
49
|
+
@import "./styles/collapse";
|
|
50
|
+
@import "./styles/actions";
|
|
51
|
+
@import "./styles/anchor";
|
|
52
|
+
@import "./styles/scrollspy";
|
|
53
|
+
@import "./styles/intro";
|
|
54
|
+
|
|
55
|
+
@import "./styles/devexpress";
|
|
56
|
+
@import "./styles/inter";
|
|
57
|
+
|
|
58
|
+
*,
|
|
59
|
+
*:before,
|
|
60
|
+
*:after {
|
|
61
|
+
corner-shape: var(--blue-corner-shape);
|
|
62
|
+
}
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
.blue-actions {
|
|
2
|
-
--max-width: calc(
|
|
3
|
-
var(--bs-btn-border-width, 1px) + var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-font-size, 1rem) +
|
|
4
|
-
var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-border-width, 1px)
|
|
5
|
-
);
|
|
6
|
-
|
|
7
|
-
max-height:
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
.blue-actions-menu {
|
|
11
|
-
max-width: var(--max-width);
|
|
12
|
-
& > .blue-menu-item-wrapper {
|
|
13
|
-
display: block;
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.open {
|
|
19
|
-
left: 0;
|
|
20
|
-
right: 0;
|
|
21
|
-
top: 0;
|
|
22
|
-
background-color: var(--blue-menu-item-dropdown-bg);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&.none {
|
|
26
|
-
@include actions(0px);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&.sm {
|
|
30
|
-
@include actions(768px);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&.md {
|
|
34
|
-
@include actions(992px);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&.lg {
|
|
38
|
-
@include actions(1200px);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Support for MenuItems
|
|
42
|
-
.blue-menu-item {
|
|
43
|
-
width: auto;
|
|
44
|
-
|
|
45
|
-
&.active::after {
|
|
46
|
-
@include blue-menu-item-indicator-horizontal();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.blue-menu-item-dropdown-toggle .blue-menu-item-label {
|
|
51
|
-
margin-right: 0.5rem;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.blue-menu-item-label {
|
|
55
|
-
display: initial;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
1
|
+
.blue-actions {
|
|
2
|
+
--max-width: calc(
|
|
3
|
+
var(--bs-btn-border-width, 1px) + var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-font-size, 1rem) +
|
|
4
|
+
var(--bs-btn-padding-x, 0.75rem) + var(--bs-btn-border-width, 1px)
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
max-height: var(--blue-header-height);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
.blue-actions-menu {
|
|
11
|
+
max-width: var(--max-width);
|
|
12
|
+
& > .blue-menu-item-wrapper {
|
|
13
|
+
display: block;
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.open {
|
|
19
|
+
left: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
top: 0;
|
|
22
|
+
background-color: var(--blue-menu-item-dropdown-bg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.none {
|
|
26
|
+
@include actions(0px);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.sm {
|
|
30
|
+
@include actions(768px);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.md {
|
|
34
|
+
@include actions(992px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.lg {
|
|
38
|
+
@include actions(1200px);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Support for MenuItems
|
|
42
|
+
.blue-menu-item {
|
|
43
|
+
width: auto;
|
|
44
|
+
|
|
45
|
+
&.active::after {
|
|
46
|
+
@include blue-menu-item-indicator-horizontal();
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.blue-menu-item-dropdown-toggle .blue-menu-item-label {
|
|
51
|
+
margin-right: 0.5rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.blue-menu-item-label {
|
|
55
|
+
display: initial;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
.BLUE-actions {
|
|
2
|
-
display: flex;
|
|
3
|
-
white-space: nowrap;
|
|
4
|
-
// overflow-x: auto;
|
|
5
|
-
// overflow-y: visible;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.BLUE-actions-menu {
|
|
9
|
-
display: flex;
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.BLUE-actions-collapse {
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.BLUE-actions-collapse:not(:has(.BLUE-actions-collapse-visible)) {
|
|
18
|
-
display: none;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.BLUE-actions-collapse-menu {
|
|
22
|
-
position: absolute;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.BLUE-actions-collapse-menu:popover-open {
|
|
26
|
-
display: var(--display);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Compatibility with MenuItems having dropdowns
|
|
30
|
-
.BLUE-actions-menu > .blue-menu-item-wrapper:has(> .blue-menu-item-dropdown) {
|
|
31
|
-
display: block;
|
|
32
|
-
position: relative;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.BLUE-actions-menu > .blue-menu-item-wrapper > .blue-menu-item-dropdown {
|
|
36
|
-
position: absolute;
|
|
37
|
-
}
|
|
1
|
+
.BLUE-actions {
|
|
2
|
+
display: flex;
|
|
3
|
+
white-space: nowrap;
|
|
4
|
+
// overflow-x: auto;
|
|
5
|
+
// overflow-y: visible;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.BLUE-actions-menu {
|
|
9
|
+
display: flex;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.BLUE-actions-collapse {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.BLUE-actions-collapse:not(:has(.BLUE-actions-collapse-visible)) {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.BLUE-actions-collapse-menu {
|
|
22
|
+
position: absolute;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.BLUE-actions-collapse-menu:popover-open {
|
|
26
|
+
display: var(--display);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Compatibility with MenuItems having dropdowns
|
|
30
|
+
.BLUE-actions-menu > .blue-menu-item-wrapper:has(> .blue-menu-item-dropdown) {
|
|
31
|
+
display: block;
|
|
32
|
+
position: relative;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.BLUE-actions-menu > .blue-menu-item-wrapper > .blue-menu-item-dropdown {
|
|
36
|
+
position: absolute;
|
|
37
|
+
}
|
package/dist/styles/_anchor.scss
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
.blue-anchored {
|
|
2
|
-
position-try: flip-inline;
|
|
3
|
-
position-area: bottom span-right;
|
|
4
|
-
position: fixed;
|
|
5
|
-
|
|
6
|
-
// Normalize popover
|
|
7
|
-
&[popover] {
|
|
8
|
-
margin: 0;
|
|
9
|
-
padding: 0;
|
|
10
|
-
border: 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.blue-anchored-start {
|
|
15
|
-
position-area: bottom span-right;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.blue-anchored-end {
|
|
19
|
-
position-area: bottom span-left;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@supports not (anchor-name: --anchor-1) {
|
|
23
|
-
.blue-anchored-fallback {
|
|
24
|
-
left: 50%;
|
|
25
|
-
top: 50%;
|
|
26
|
-
translate: -50% -50%;
|
|
27
|
-
|
|
28
|
-
&::backdrop {
|
|
29
|
-
--bs-backdrop-bg: #000;
|
|
30
|
-
--bs-backdrop-opacity: 0.5;
|
|
31
|
-
background-color: var(--bs-backdrop-bg);
|
|
32
|
-
transition: opacity 0.2s;
|
|
33
|
-
opacity: var(--bs-backdrop-opacity);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.btn:has(+ :popover-open):not(:focus-visible):not(.blue-menu-item) {
|
|
39
|
-
--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), 0.25);
|
|
40
|
-
box-shadow: var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0)
|
|
41
|
-
var(--bs-focus-ring-width) var(--bs-focus-ring-color);
|
|
42
|
-
}
|
|
1
|
+
.blue-anchored {
|
|
2
|
+
position-try: flip-inline;
|
|
3
|
+
position-area: bottom span-right;
|
|
4
|
+
position: fixed;
|
|
5
|
+
|
|
6
|
+
// Normalize popover
|
|
7
|
+
&[popover] {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
border: 0;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.blue-anchored-start {
|
|
15
|
+
position-area: bottom span-right;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.blue-anchored-end {
|
|
19
|
+
position-area: bottom span-left;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@supports not (anchor-name: --anchor-1) {
|
|
23
|
+
.blue-anchored-fallback {
|
|
24
|
+
left: 50%;
|
|
25
|
+
top: 50%;
|
|
26
|
+
translate: -50% -50%;
|
|
27
|
+
|
|
28
|
+
&::backdrop {
|
|
29
|
+
--bs-backdrop-bg: #000;
|
|
30
|
+
--bs-backdrop-opacity: 0.5;
|
|
31
|
+
background-color: var(--bs-backdrop-bg);
|
|
32
|
+
transition: opacity 0.2s;
|
|
33
|
+
opacity: var(--bs-backdrop-opacity);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.btn:has(+ :popover-open):not(:focus-visible):not(.blue-menu-item) {
|
|
39
|
+
--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), 0.25);
|
|
40
|
+
box-shadow: var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0)
|
|
41
|
+
var(--bs-focus-ring-width) var(--bs-focus-ring-color);
|
|
42
|
+
}
|
|
@@ -1,106 +1,106 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This will overwrite button-variant mixin from Bootstrap: On hover buttons will get lighter instead of darker
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@mixin button-variant(
|
|
6
|
-
$background,
|
|
7
|
-
$border,
|
|
8
|
-
$color: color-contrast($background),
|
|
9
|
-
$hover-background:
|
|
10
|
-
if(
|
|
11
|
-
$color == $color-contrast-light,
|
|
12
|
-
tint-color($background, $btn-hover-bg-tint-amount),
|
|
13
|
-
shade-color($background, $btn-hover-bg-shade-amount)
|
|
14
|
-
),
|
|
15
|
-
$hover-border:
|
|
16
|
-
if(
|
|
17
|
-
$color == $color-contrast-light,
|
|
18
|
-
tint-color($border, $btn-hover-border-tint-amount),
|
|
19
|
-
shade-color($border, $btn-hover-border-shade-amount)
|
|
20
|
-
),
|
|
21
|
-
$hover-color: color-contrast($background),
|
|
22
|
-
$active-background:
|
|
23
|
-
if(
|
|
24
|
-
$color == $color-contrast-light,
|
|
25
|
-
shade-color($background, $btn-active-bg-shade-amount),
|
|
26
|
-
tint-color($background, $btn-active-bg-tint-amount)
|
|
27
|
-
),
|
|
28
|
-
$active-border:
|
|
29
|
-
if(
|
|
30
|
-
$color == $color-contrast-light,
|
|
31
|
-
shade-color($border, $btn-active-border-shade-amount),
|
|
32
|
-
tint-color($border, $btn-active-border-tint-amount)
|
|
33
|
-
),
|
|
34
|
-
$active-color: color-contrast($active-background),
|
|
35
|
-
$disabled-background: $background,
|
|
36
|
-
$disabled-border: $border,
|
|
37
|
-
$disabled-color: color-contrast($disabled-background)
|
|
38
|
-
) {
|
|
39
|
-
color: $color;
|
|
40
|
-
@include gradient-bg($background);
|
|
41
|
-
border-color: $border;
|
|
42
|
-
@include box-shadow($btn-box-shadow);
|
|
43
|
-
|
|
44
|
-
&:hover {
|
|
45
|
-
color: $hover-color;
|
|
46
|
-
@include gradient-bg($hover-background);
|
|
47
|
-
border-color: $hover-border;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.btn-check:focus + &,
|
|
51
|
-
&:focus {
|
|
52
|
-
color: $hover-color;
|
|
53
|
-
@include gradient-bg($hover-background);
|
|
54
|
-
border-color: $hover-border;
|
|
55
|
-
@if $enable-shadows {
|
|
56
|
-
@include box-shadow(
|
|
57
|
-
$btn-box-shadow,
|
|
58
|
-
0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
|
|
59
|
-
);
|
|
60
|
-
} @else {
|
|
61
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
62
|
-
box-shadow: 0
|
|
63
|
-
0
|
|
64
|
-
0
|
|
65
|
-
$btn-focus-width
|
|
66
|
-
rgba(mix($color, $border, 15%), 0.5);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.btn-check:checked + &,
|
|
71
|
-
.btn-check:active + &,
|
|
72
|
-
&:active,
|
|
73
|
-
&.active,
|
|
74
|
-
.show > &.dropdown-toggle {
|
|
75
|
-
color: $active-color;
|
|
76
|
-
background-color: $active-background;
|
|
77
|
-
// Remove CSS gradients if they're enabled
|
|
78
|
-
background-image: if($enable-gradients, none, null);
|
|
79
|
-
border-color: $active-border;
|
|
80
|
-
|
|
81
|
-
&:focus {
|
|
82
|
-
@if $enable-shadows {
|
|
83
|
-
@include box-shadow(
|
|
84
|
-
$btn-active-box-shadow,
|
|
85
|
-
0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
|
|
86
|
-
);
|
|
87
|
-
} @else {
|
|
88
|
-
// Avoid using mixin so we can pass custom focus shadow properly
|
|
89
|
-
box-shadow: 0
|
|
90
|
-
0
|
|
91
|
-
0
|
|
92
|
-
$btn-focus-width
|
|
93
|
-
rgba(mix($color, $border, 15%), 0.5);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:disabled,
|
|
99
|
-
&.disabled {
|
|
100
|
-
color: $disabled-color;
|
|
101
|
-
background-color: $disabled-background;
|
|
102
|
-
// Remove CSS gradients if they're enabled
|
|
103
|
-
background-image: if($enable-gradients, none, null);
|
|
104
|
-
border-color: $disabled-border;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* This will overwrite button-variant mixin from Bootstrap: On hover buttons will get lighter instead of darker
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
@mixin button-variant(
|
|
6
|
+
$background,
|
|
7
|
+
$border,
|
|
8
|
+
$color: color-contrast($background),
|
|
9
|
+
$hover-background:
|
|
10
|
+
if(
|
|
11
|
+
$color == $color-contrast-light,
|
|
12
|
+
tint-color($background, $btn-hover-bg-tint-amount),
|
|
13
|
+
shade-color($background, $btn-hover-bg-shade-amount)
|
|
14
|
+
),
|
|
15
|
+
$hover-border:
|
|
16
|
+
if(
|
|
17
|
+
$color == $color-contrast-light,
|
|
18
|
+
tint-color($border, $btn-hover-border-tint-amount),
|
|
19
|
+
shade-color($border, $btn-hover-border-shade-amount)
|
|
20
|
+
),
|
|
21
|
+
$hover-color: color-contrast($background),
|
|
22
|
+
$active-background:
|
|
23
|
+
if(
|
|
24
|
+
$color == $color-contrast-light,
|
|
25
|
+
shade-color($background, $btn-active-bg-shade-amount),
|
|
26
|
+
tint-color($background, $btn-active-bg-tint-amount)
|
|
27
|
+
),
|
|
28
|
+
$active-border:
|
|
29
|
+
if(
|
|
30
|
+
$color == $color-contrast-light,
|
|
31
|
+
shade-color($border, $btn-active-border-shade-amount),
|
|
32
|
+
tint-color($border, $btn-active-border-tint-amount)
|
|
33
|
+
),
|
|
34
|
+
$active-color: color-contrast($active-background),
|
|
35
|
+
$disabled-background: $background,
|
|
36
|
+
$disabled-border: $border,
|
|
37
|
+
$disabled-color: color-contrast($disabled-background)
|
|
38
|
+
) {
|
|
39
|
+
color: $color;
|
|
40
|
+
@include gradient-bg($background);
|
|
41
|
+
border-color: $border;
|
|
42
|
+
@include box-shadow($btn-box-shadow);
|
|
43
|
+
|
|
44
|
+
&:hover {
|
|
45
|
+
color: $hover-color;
|
|
46
|
+
@include gradient-bg($hover-background);
|
|
47
|
+
border-color: $hover-border;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.btn-check:focus + &,
|
|
51
|
+
&:focus {
|
|
52
|
+
color: $hover-color;
|
|
53
|
+
@include gradient-bg($hover-background);
|
|
54
|
+
border-color: $hover-border;
|
|
55
|
+
@if $enable-shadows {
|
|
56
|
+
@include box-shadow(
|
|
57
|
+
$btn-box-shadow,
|
|
58
|
+
0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
|
|
59
|
+
);
|
|
60
|
+
} @else {
|
|
61
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
62
|
+
box-shadow: 0
|
|
63
|
+
0
|
|
64
|
+
0
|
|
65
|
+
$btn-focus-width
|
|
66
|
+
rgba(mix($color, $border, 15%), 0.5);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.btn-check:checked + &,
|
|
71
|
+
.btn-check:active + &,
|
|
72
|
+
&:active,
|
|
73
|
+
&.active,
|
|
74
|
+
.show > &.dropdown-toggle {
|
|
75
|
+
color: $active-color;
|
|
76
|
+
background-color: $active-background;
|
|
77
|
+
// Remove CSS gradients if they're enabled
|
|
78
|
+
background-image: if($enable-gradients, none, null);
|
|
79
|
+
border-color: $active-border;
|
|
80
|
+
|
|
81
|
+
&:focus {
|
|
82
|
+
@if $enable-shadows {
|
|
83
|
+
@include box-shadow(
|
|
84
|
+
$btn-active-box-shadow,
|
|
85
|
+
0 0 0 $btn-focus-width rgba(mix($color, $border, 15%), 0.5)
|
|
86
|
+
);
|
|
87
|
+
} @else {
|
|
88
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
|
89
|
+
box-shadow: 0
|
|
90
|
+
0
|
|
91
|
+
0
|
|
92
|
+
$btn-focus-width
|
|
93
|
+
rgba(mix($color, $border, 15%), 0.5);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:disabled,
|
|
99
|
+
&.disabled {
|
|
100
|
+
color: $disabled-color;
|
|
101
|
+
background-color: $disabled-background;
|
|
102
|
+
// Remove CSS gradients if they're enabled
|
|
103
|
+
background-image: if($enable-gradients, none, null);
|
|
104
|
+
border-color: $disabled-border;
|
|
105
|
+
}
|
|
106
|
+
}
|