blue-web 1.1.0 → 1.1.1

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/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue Web v1.1.0 (https://bruegmann.github.io/blue-web)
2
+ * Blue Web v1.1.1 (https://bruegmann.github.io/blue-web)
3
3
  * Licensed under GNU General Public License v3.0 (https://github.com/bruegmann/blue-web/blob/master/LICENSE).
4
4
  */
5
5
 
@@ -0,0 +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
+ }
@@ -308,7 +308,9 @@
308
308
  bottom: 0.125rem;
309
309
  left: 0.125rem;
310
310
  border-radius: $border-radius;
311
- box-shadow: $box-shadow;
311
+ box-shadow: 0 0.5rem 1rem $black;
312
+ border: 1px solid;
313
+ opacity: 0.15;
312
314
  }
313
315
  }
314
316
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-web",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "UI components built on top of Bootstrap 5",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "homepage": "https://bruegmann.github.io/blue-web/v1",