blue-web 1.11.0 → 1.12.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.11.0 (https://bruegmann.github.io/blue-web)
2
+ * Blue Web v1.12.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
 
@@ -37,3 +37,6 @@
37
37
  @import "./styles/tabs";
38
38
  @import "./styles/modal";
39
39
  @import "./styles/layout";
40
+ @import "./styles/collapse";
41
+
42
+ @import "./styles/inter";
@@ -1,3 +1,20 @@
1
+ // Main color theme. E.g. used for background for body and sidebar.
2
+ $theme: hsl(217deg 10% 94%) !default;
3
+ $primary: hsl(217deg 91% 50%) !default;
4
+ $white: #fff !default;
5
+ $gray-100: hsl(217deg 17% 98%) !default;
6
+ $gray-200: hsl(217deg 16% 93%) !default;
7
+ $gray-300: hsl(217deg 14% 89%) !default;
8
+ $gray-400: hsl(217deg 14% 83%) !default;
9
+ $gray-500: hsl(217deg 11% 71%) !default;
10
+ $gray-600: hsl(217deg 7% 46%) !default;
11
+ $gray-700: hsl(217deg 9% 31%) !default;
12
+ $gray-800: hsl(217deg 10% 23%) !default;
13
+ $gray-900: hsl(217deg 11% 15%) !default;
14
+ $black: #000 !default;
15
+ $header-color: $gray-900 !default;
16
+ $sidebar-color: $gray-900 !default;
17
+
1
18
  $light: #ecedf0 !default;
2
19
 
3
20
  // Components
@@ -21,9 +38,6 @@ $custom-checkbox-indicator-border-radius: $border-radius-sm !default;
21
38
  $link-decoration: none !default;
22
39
  $link-hover-decoration: underline !default;
23
40
 
24
- $font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, Oxygen-Sans,
25
- Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
26
-
27
41
  // Tint focus border and shadow in primary color.
28
42
  // In a future Bootstrap release, this might not be necessary anymore.
29
43
  $focus-ring-color: #{rgba(var(--bs-primary-rgb), 25%)} !default;
@@ -0,0 +1,57 @@
1
+ // Collapse with details and animated
2
+ // Right now not part of Blue Web, but could become one
3
+
4
+ .blue-collapse {
5
+ interpolate-size: allow-keywords;
6
+
7
+ &:has(summary:focus) {
8
+ overflow: hidden;
9
+ }
10
+
11
+ summary {
12
+ list-style: none;
13
+ }
14
+
15
+ summary::-webkit-details-marker {
16
+ display: none;
17
+ }
18
+
19
+ .blue-collapse-chevron {
20
+ transition: transform 0.2s;
21
+ }
22
+
23
+ &[open] > summary > .blue-collapse-header > .blue-collapse-chevron,
24
+ &[open] > summary > .blue-collapse-chevron {
25
+ --blue-collapse-chevron-rotate: 90deg;
26
+
27
+ // If chevron is on the end, rotate has to be -90deg
28
+ &:is(:last-child) {
29
+ --blue-collapse-chevron-rotate: -90deg;
30
+ }
31
+
32
+ &:is(:first-child) {
33
+ --blue-collapse-chevron-rotate: 90deg;
34
+ }
35
+
36
+ transform: rotate(var(--blue-collapse-chevron-rotate));
37
+ }
38
+
39
+ &::details-content {
40
+ block-size: 0;
41
+ transition:
42
+ block-size 0.2s,
43
+ content-visibility 0.2s;
44
+ transition-behavior: allow-discrete;
45
+ }
46
+
47
+ &[open]::details-content {
48
+ block-size: auto;
49
+ }
50
+ }
51
+
52
+ @media (prefers-reduced-motion) {
53
+ .blue-collapse .blue-collapse-chevron,
54
+ .blue-collapse::details-content {
55
+ transition: none;
56
+ }
57
+ }
@@ -0,0 +1,23 @@
1
+ :root {
2
+ --bs-font-sans-serif: Inter, #{$font-family-sans-serif};
3
+ font-feature-settings:
4
+ "liga" 1,
5
+ "calt" 1,
6
+ "cv05" 1,
7
+ "cv07" 1,
8
+ "tnum" 1,
9
+ "zero" 1;
10
+ }
11
+ @supports (font-variation-settings: normal) {
12
+ :root {
13
+ --bs-font-sans-serif: InterVariable, #{$font-family-sans-serif};
14
+ }
15
+ }
16
+
17
+ input,
18
+ button,
19
+ select,
20
+ optgroup,
21
+ textarea {
22
+ font-feature-settings: inherit;
23
+ }
@@ -5,8 +5,9 @@
5
5
 
6
6
  .blue-layout {
7
7
  --spacing: 0.25rem;
8
- --drawer-side-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
9
- rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
8
+ --drawer-side-shadow:
9
+ rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px,
10
+ rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
10
11
  --toggler-size: calc(
11
12
  var(--bs-btn-border-width, 1px) + var(--bs-btn-padding-y, 0.375rem) +
12
13
  (var(--bs-btn-font-size, 1rem) * var(--bs-btn-line-height, 1.5)) + var(--bs-btn-padding-y, 0.375rem) +
@@ -19,7 +20,7 @@
19
20
  --side-width: var(--blue-sidebar-width);
20
21
  --toggler-size: var(--blue-menu-item-height);
21
22
 
22
- min-height: 100dvh;
23
+ height: 100dvh;
23
24
  position: relative;
24
25
  display: grid;
25
26
  grid-template-columns: 0 var(--toggler-size) calc(var(--side-width) - var(--toggler-size)) auto;
@@ -31,13 +31,20 @@
31
31
  }
32
32
 
33
33
  dialog.blue-modal {
34
+ --ani-scale-from: 95%;
35
+ --ani-scale-to: 100%;
36
+ --ani-translate-from: 0 0;
37
+ --ani-translate-to: 0 0;
38
+
34
39
  border: none;
35
40
  background: none;
36
41
  padding: 0;
37
42
  margin: 0;
38
43
  max-width: none;
39
44
  max-height: none;
40
- transition: display 0.2s allow-discrete, overlay 0.2s allow-discrete;
45
+ transition:
46
+ display 0.2s allow-discrete,
47
+ overlay 0.2s allow-discrete;
41
48
  animation: blue-modal-close 0.2s forwards;
42
49
 
43
50
  .offcanvas-backdrop {
@@ -1,6 +1,3 @@
1
- // Main color theme. E.g. used for background for body and sidebar.
2
- $theme: $primary !default;
3
-
4
1
  $theme-colors: () !default;
5
2
  // stylelint-disable-next-line scss/dollar-variable-default
6
3
  $theme-colors: map-merge(
@@ -27,7 +24,8 @@ $shimmering: 0.8 !default;
27
24
  $scrollbar-thumb-color: white !default;
28
25
 
29
26
  // Thumb color of scrollbar as RGB (like `255, 255, 255`).
30
- $scrollbar-thumb-color-rgb: red($scrollbar-thumb-color), green($scrollbar-thumb-color), blue($scrollbar-thumb-color) !default;
27
+ $scrollbar-thumb-color-rgb:
28
+ red($scrollbar-thumb-color), green($scrollbar-thumb-color), blue($scrollbar-thumb-color) !default;
31
29
 
32
30
  // Default size for many components, like sidebar menu items.
33
31
  $normal-size: calc(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-web",
3
- "version": "1.11.0",
3
+ "version": "1.12.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",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@popperjs/core": "^2.11.5",
35
- "bootstrap": "~5.3.3"
35
+ "bootstrap": "~5.3.5"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@astrojs/mdx": "^4.2.3",