blue-web 1.0.2 → 1.1.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/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue Web v1.0.2 (https://bruegmann.github.io/blue-web)
2
+ * Blue Web v1.1.0 (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
 
@@ -11,32 +11,7 @@
11
11
  @import "./styles/_mixins";
12
12
  @import "./styles/_keyframes";
13
13
 
14
- // @import "./styles/_bootstrap";
15
- @import "node_modules/bootstrap/scss/bootstrap";
16
-
17
- @import "node_modules/bootstrap/scss/functions";
18
- @import "node_modules/bootstrap/scss/variables";
19
- @import "node_modules/bootstrap/scss/variables-dark";
20
- @import "node_modules/bootstrap/scss/maps";
21
- @import "node_modules/bootstrap/scss/mixins";
22
- @import "node_modules/bootstrap/scss/utilities";
23
-
24
- // Extended Bootstrap utilities with responsive position as mentioned on
25
- // https://getbootstrap.com/docs/5.3/utilities/api/#enable-responsive
26
- $utilities: map-merge(
27
- $utilities,
28
- (
29
- "position":
30
- map-merge(
31
- map-get($utilities, "position"),
32
- (
33
- responsive: true
34
- )
35
- )
36
- )
37
- );
38
-
39
- @import "node_modules/bootstrap/scss/utilities/api";
14
+ @import "./styles/bootstrap";
40
15
 
41
16
  // Per CSS-Variablen überschreibbar machen, da es von Bootstrap aus noch nicht möglich ist.
42
17
  // Bei neuer Bootstrap-Version prüfen, ob es noch nötig ist.
@@ -57,3 +32,4 @@ $utilities: map-merge(
57
32
  @import "./styles/_tooltips";
58
33
  @import "./styles/_hover";
59
34
  @import "./styles/buttons";
35
+ @import "./styles/container-grid";
@@ -1,24 +1,17 @@
1
- /*!
2
- * Bootstrap v5.2.0 (https://getbootstrap.com/)
3
- * Copyright 2011-2021 The Bootstrap Authors
4
- * Copyright 2011-2021 Twitter, Inc.
5
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
6
- */
1
+ @import "node_modules/bootstrap/scss/mixins/banner";
2
+ @include bsBanner("");
7
3
 
8
4
  // scss-docs-start import-stack
9
5
  // Configuration
10
6
  @import "node_modules/bootstrap/scss/functions";
11
7
  @import "node_modules/bootstrap/scss/variables";
8
+ @import "node_modules/bootstrap/scss/variables-dark";
12
9
  @import "node_modules/bootstrap/scss/maps";
13
10
  @import "node_modules/bootstrap/scss/mixins";
14
-
15
- // @import "./_bootstrap-mixins_overwritten.scss";
16
-
17
11
  @import "node_modules/bootstrap/scss/utilities";
18
12
 
19
13
  // Layout & components
20
14
  @import "node_modules/bootstrap/scss/root";
21
-
22
15
  @import "node_modules/bootstrap/scss/reboot";
23
16
  @import "node_modules/bootstrap/scss/type";
24
17
  @import "node_modules/bootstrap/scss/images";
@@ -53,6 +46,20 @@
53
46
  // Helpers
54
47
  @import "node_modules/bootstrap/scss/helpers";
55
48
 
49
+ // Custom added utilities for Blue Web
50
+ $utilities: map-merge(
51
+ $utilities,
52
+ (
53
+ "position":
54
+ map-merge(
55
+ map-get($utilities, "position"),
56
+ (
57
+ responsive: true
58
+ )
59
+ )
60
+ )
61
+ );
62
+
56
63
  // Utilities
57
64
  @import "node_modules/bootstrap/scss/utilities/api";
58
65
  // scss-docs-end import-stack
@@ -0,0 +1,52 @@
1
+ @import "node_modules/bootstrap/scss/functions";
2
+
3
+ @import "node_modules/bootstrap/scss/variables";
4
+ @import "node_modules/bootstrap/scss/variables-dark";
5
+
6
+ @import "node_modules/bootstrap/scss/maps";
7
+ @import "node_modules/bootstrap/scss/mixins";
8
+
9
+ @mixin make-grid-columns-cq($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
10
+ .col {
11
+ flex: initial;
12
+ max-width: initial;
13
+ width: 100%;
14
+ }
15
+
16
+ @each $breakpoint in map-keys($breakpoints) {
17
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
18
+
19
+ @for $i from 1 through $columns {
20
+ .col#{$infix}-#{$i} {
21
+ @extend .col;
22
+ }
23
+ }
24
+ }
25
+
26
+ @each $breakpoint in map-keys($breakpoints) {
27
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
28
+
29
+ // @for $i from 1 through $columns {
30
+ // .col#{$infix}-#{$i} {
31
+ // flex: initial;
32
+ // max-width: initial;
33
+ // width: 100%;
34
+ // }
35
+ // }
36
+
37
+ @if breakpoint-min($breakpoint, $breakpoints) {
38
+ @container (min-width: #{breakpoint-min($breakpoint, $breakpoints)}) {
39
+ @for $i from 1 through $columns {
40
+ .col#{$infix}-#{$i} {
41
+ @include make-col($i, $columns);
42
+ }
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+
49
+ .blue-container-grid {
50
+ container-type: inline-size;
51
+ @include make-grid-columns-cq();
52
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-web",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
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",
@@ -1,106 +0,0 @@
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
- }