blue-web 1.32.0 → 1.32.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/dist/style.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Blue Web v1.32.0 (https://bruegmann.github.io/blue-web)
2
+ * Blue Web v1.32.2 (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
 
@@ -79,28 +79,7 @@
79
79
  }
80
80
 
81
81
  .blue-layout-body {
82
- --spacing: 0.5rem;
83
- --blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
84
- --bs-link-hover-color: #{$link-hover-color};
85
-
86
- width: calc(100% - var(--spacing) * 2);
87
- height: calc(100% - var(--spacing));
88
- margin-left: auto;
89
- margin-right: auto;
90
- overflow: auto;
91
- scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
92
- background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1));
93
- color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
94
- box-shadow: var(--bs-box-shadow-sm);
95
- border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
96
- border-radius: var(--bs-border-radius-lg);
97
- }
98
-
99
- @include color-mode(dark, false) {
100
- .blue-layout-body {
101
- --blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
102
- --bs-link-hover-color: #{$link-hover-color-dark};
103
- }
82
+ @include blue-layout-body(rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity, 1)));
104
83
  }
105
84
 
106
85
  .blue-layout-splitter {
@@ -141,18 +120,36 @@
141
120
  }
142
121
  }
143
122
  }
123
+
124
+ .blue-layout-body,
125
+ .blue-layout-inspector-body {
126
+ width: calc(100% - var(--spacing));
127
+ }
128
+
129
+ & > :first-child .blue-layout-body {
130
+ margin-right: 0;
131
+ }
132
+
133
+ & > :last-child .blue-layout-inspector-body {
134
+ margin-left: 0;
135
+ }
144
136
  }
145
137
 
146
138
  .blue-layout-inspector {
147
139
  &:not([open]) {
148
140
  & > .offcanvas {
149
- --spacing: 0.5rem;
150
141
  width: 100%;
151
- height: calc(100% - var(--spacing));
152
-
153
- & > .offcanvas-body {
154
- padding-inline: var(--spacing);
155
- }
156
142
  }
157
143
  }
158
144
  }
145
+
146
+ .blue-layout-inspector-body {
147
+ width: 100%;
148
+ height: 100%;
149
+ }
150
+
151
+ @include media-breakpoint-up(lg) {
152
+ .blue-layout-inspector-body {
153
+ @include blue-layout-body(rgba(var(--bs-tertiary-bg-rgb), var(--bs-bg-opacity, 1)));
154
+ }
155
+ }
@@ -4,3 +4,4 @@
4
4
  @import "./mixins/switch";
5
5
  @import "./mixins/custom-property";
6
6
  @import "./mixins/scroll-shadow";
7
+ @import "./mixins/layout";
@@ -0,0 +1,24 @@
1
+ @mixin blue-layout-body($bg) {
2
+ --spacing: 0.5rem;
3
+ --blue-menu-item-indicator-bg: #{$sidebar-indicator-color};
4
+ --bs-link-hover-color: #{$link-hover-color};
5
+
6
+ width: calc(100% - var(--spacing) * 2);
7
+ height: calc(100% - var(--spacing));
8
+ margin-left: auto;
9
+ margin-right: auto;
10
+ overflow: auto;
11
+ scrollbar-color: color-mix(in srgb, currentColor 50%, transparent) transparent;
12
+ background-color: $bg;
13
+ color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity, 1));
14
+ box-shadow: var(--bs-box-shadow-sm);
15
+ border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
16
+ border-radius: var(--bs-border-radius-lg);
17
+
18
+ @include color-mode(dark, false) {
19
+ & {
20
+ --blue-menu-item-indicator-bg: #{$sidebar-indicator-color-dark};
21
+ --bs-link-hover-color: #{$link-hover-color-dark};
22
+ }
23
+ }
24
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-web",
3
- "version": "1.32.0",
3
+ "version": "1.32.2",
4
4
  "description": "UI components built on top of Bootstrap 5",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "type": "module",
@@ -54,8 +54,8 @@
54
54
  "build": "babel ./src/js --out-dir ./dist/js --extensions \".tsx,.js,.ts\"",
55
55
  "dev": "babel ./src/js --out-dir ./dist/js --extensions \".tsx,.js,.ts\" --watch",
56
56
  "build-bundles": "webpack",
57
- "build-css": "node ./setVersionToStyleScss.cjs && sass --load-path=. ./dist/style.scss:./dist/style.css && npx postcss ./dist/style.css --use autoprefixer -r && npx postcss ./dist/style.css --use postcss-minify -o ./dist/style.min.css",
58
- "build-neu-css": "sass --load-path=. ./dist/neu.scss:./dist/neu.css && npx postcss ./dist/neu.css --use autoprefixer -r && npx postcss ./dist/neu.css --use postcss-minify -o ./dist/neu.min.css",
57
+ "build-css": "node ./setVersionToStyleScss.cjs && sass --quiet --load-path=. ./dist/style.scss:./dist/style.css && npx postcss ./dist/style.css --use autoprefixer -r && npx postcss ./dist/style.css --use postcss-minify -o ./dist/style.min.css",
58
+ "build-neu-css": "sass --quiet --load-path=. ./dist/neu.scss:./dist/neu.css && npx postcss ./dist/neu.css --use autoprefixer -r && npx postcss ./dist/neu.css --use postcss-minify -o ./dist/neu.min.css",
59
59
  "build-release": "npm run build-types && npm run build && npm run build-bundles && npm run build-css && node merge-scss.cjs dist/style.scss",
60
60
  "prettier": "npx prettier --write .",
61
61
  "version": "npm run build-release && git add -A",