blue-web 1.14.0 → 1.14.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.14.0 (https://bruegmann.github.io/blue-web)
2
+ * Blue Web v1.14.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
 
@@ -40,6 +40,7 @@
40
40
  @import "./styles/layout";
41
41
  @import "./styles/collapse";
42
42
  @import "./styles/actions";
43
+ @import "./styles/anchor";
43
44
 
44
45
  @import "./styles/devexpress";
45
46
  @import "./styles/inter";
@@ -0,0 +1,36 @@
1
+ .blue-anchor {
2
+ anchor-name: var(--blue-anchor-name, --anchor-1);
3
+ }
4
+
5
+ .blue-anchored {
6
+ top: anchor(var(--blue-anchor-name, --anchor-1) bottom);
7
+ }
8
+
9
+ .blue-anchored-start {
10
+ left: anchor(var(--blue-anchor-name, --anchor-1) left);
11
+ }
12
+
13
+ .blue-anchored-end {
14
+ left: anchor(var(--blue-anchor-name, --anchor-1) right);
15
+ translate: -100%;
16
+ }
17
+
18
+ @supports not (anchor-name: --anchor-1) {
19
+ .blue-anchored-end {
20
+ translate: none;
21
+ }
22
+
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
+ }
@@ -1,6 +1,4 @@
1
1
  // Collapse with details and animated
2
- // Right now not part of Blue Web, but could become one
3
-
4
2
  .blue-collapse {
5
3
  interpolate-size: allow-keywords;
6
4
 
@@ -34,14 +32,20 @@
34
32
 
35
33
  &::details-content {
36
34
  block-size: 0;
35
+ opacity: 0;
36
+ translate: 0 -100%;
37
37
  transition:
38
38
  block-size 0.2s,
39
- content-visibility 0.2s;
39
+ content-visibility 0.2s,
40
+ opacity 0.2s,
41
+ translate 0.2s;
40
42
  transition-behavior: allow-discrete;
41
43
  }
42
44
 
43
45
  &[open]::details-content {
44
46
  block-size: auto;
47
+ opacity: 1;
48
+ translate: 0;
45
49
  }
46
50
  }
47
51
 
@@ -51,3 +55,22 @@
51
55
  transition: none;
52
56
  }
53
57
  }
58
+
59
+ // Let's you group a collapse together with another UI element like a button that should come before the collapse summary.
60
+ .blue-collapse-group {
61
+ display: grid;
62
+ grid-template-rows: auto;
63
+ grid-template-columns: 1fr;
64
+
65
+ & > details {
66
+ display: contents;
67
+
68
+ & > summary {
69
+ grid-column: 2;
70
+
71
+ & + * {
72
+ width: calc(100% + 1rem - 2px);
73
+ }
74
+ }
75
+ }
76
+ }
@@ -86,6 +86,17 @@
86
86
  border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
87
87
  background-color: var(--blue-menu-item-dropdown-bg);
88
88
  }
89
+
90
+ &[popover] {
91
+ position: fixed;
92
+ margin: 0;
93
+ padding: 0;
94
+ z-index: 1000;
95
+ border: none;
96
+ background: transparent;
97
+ border-radius: calc(#{$border-radius} + 0.1rem);
98
+ box-shadow: $box-shadow;
99
+ }
89
100
  }
90
101
 
91
102
  .blue-menu-item-dropdown-caret.blue-caret {
@@ -136,7 +147,8 @@
136
147
 
137
148
  &:hover,
138
149
  &:active,
139
- &.highlighted {
150
+ &.highlighted,
151
+ &:has(+ :popover-open) {
140
152
  color: inherit;
141
153
  border-color: transparent;
142
154
 
@@ -146,7 +158,8 @@
146
158
  }
147
159
  }
148
160
 
149
- &.highlighted {
161
+ &.highlighted,
162
+ &:has(+ :popover-open) {
150
163
  &::before {
151
164
  opacity: 0.16;
152
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blue-web",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "UI components built on top of Bootstrap 5",
5
5
  "license": "LGPL-3.0-or-later",
6
6
  "type": "module",