@anyblades/blades 3.1.0-beta.5 → 3.1.0-beta.7
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/.prettierrc.json +0 -7
- package/README.md +27 -50
- package/_includes/.prettierrc.json +12 -0
- package/_includes/package.json +10 -0
- package/css/blades.css +941 -1804
- package/css/blades.min.css +11 -1
- package/css/blades.ninja.css +1123 -2264
- package/css/blades.ninja.min.css +16 -1
- package/css/float-label.css +34 -187
- package/css/float-label.min.css +1 -1
- package/css/layered/blades.layered.css +941 -1804
- package/css/layered/blades.layered.min.css +11 -1
- package/css/layered/compact.css +10 -31
- package/css/layered/components/accordion.css +32 -21
- package/css/layered/components/card.css +8 -16
- package/css/layered/components/dropdown-popover.css +44 -59
- package/css/layered/components/dropdown.css +61 -61
- package/css/layered/components/group.css +40 -156
- package/css/layered/components/loading.css +28 -35
- package/css/layered/components/modal-modern.css +7 -15
- package/css/layered/components/modal.css +54 -65
- package/css/layered/components/nav.css +36 -36
- package/css/layered/components/progress.css +18 -23
- package/css/layered/components/timeline.css +5 -19
- package/css/layered/components/tooltip.css +88 -103
- package/css/layered/components.css +371 -517
- package/css/layered/content/button.css +37 -117
- package/css/layered/content/code-block.css +11 -23
- package/css/layered/content/code.css +11 -26
- package/css/layered/content/embedded-content.css +5 -10
- package/css/layered/content/figure.css +3 -5
- package/css/layered/content/icon.css +20 -47
- package/css/layered/content/link.css +18 -40
- package/css/layered/content/misc.css +1 -5
- package/css/layered/content/table.css +4 -10
- package/css/layered/content/typography.css +22 -41
- package/css/layered/content.css +102 -254
- package/css/layered/forms/basics.css +64 -142
- package/css/layered/forms/checkbox-radio-switch.css +46 -75
- package/css/layered/forms/float-label/core.css +13 -85
- package/css/layered/forms/float-label/theme.css +22 -104
- package/css/layered/forms/float-label.css +34 -187
- package/css/layered/forms/input-color.css +5 -5
- package/css/layered/forms/input-datetime.css +9 -26
- package/css/layered/forms/input-file.css +7 -8
- package/css/layered/forms/input-range.css +43 -50
- package/css/layered/forms/input-search.css +16 -47
- package/css/layered/forms.css +197 -355
- package/css/layered/layout/columns.css +4 -24
- package/css/layered/layout/container.css +13 -13
- package/css/layered/layout/document.css +4 -12
- package/css/layered/layout/grid.css +6 -8
- package/css/layered/layout/landmarks.css +1 -7
- package/css/layered/layout/overflow-auto.css +0 -3
- package/css/layered/layout/section.css +0 -3
- package/css/layered/layout.css +26 -39
- package/css/layered/utilities.css +6 -15
- package/css/layered/variables-blades.css +4 -16
- package/css/layered/variables.css +77 -181
- package/css/pico.conditional.css +785 -1368
- package/css/pico.conditional.min.css +1 -1
- package/css/pico.css +785 -1368
- package/css/pico.min.css +1 -1
- package/package.json +43 -31
- package/src/blades/_index.css +9 -9
- package/src/blades/components/_dropdown-popover.css +2 -0
- package/src/blades/components/_modal-modern.css +2 -0
- package/src/blades/forms/float-label/_index.css +2 -2
- package/src/blades.css +2 -2
- package/src/blades.ninja.css +3 -3
- package/src/float-label.css +1 -1
- package/src/ninja/_index.css +8 -9
- package/src/ninja/_table-helpers.css +4 -4
- package/src/ninja/_table-responsive.css +5 -5
- package/src/ninja/_utilities.css +1 -1
- package/src/pico/_index.css +6 -6
- package/src/pico/components/_index.css +9 -9
- package/src/pico/content/_index.css +8 -8
- package/src/pico/forms/_index.css +7 -7
- package/src/pico/layout/_index.css +5 -5
- package/src/pico.css +2 -2
- package/src/ninja/_scroll-to.css +0 -10
|
@@ -1,107 +1,92 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/*\3c !--section:docs-->
|
|
3
|
-
|
|
4
|
-
A `<ul>` or `<menu>` with the `popover` attribute is styled like a dropdown and opens next to the button
|
|
5
|
-
that toggles it, with no JS:
|
|
6
|
-
|
|
7
|
-
```html
|
|
8
|
-
<button popovertarget="actions">Actions</button>
|
|
9
|
-
<ul id="actions" popover>
|
|
10
|
-
<li><a href="#">Edit</a></li>
|
|
11
|
-
<li><a href="#">Duplicate</a></li>
|
|
12
|
-
</ul>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
- Clicking outside or pressing Esc closes it, and it's drawn on top of everything (no `z-index`, no clipping by `overflow`).
|
|
16
|
-
- It opens below the button (on the reading side, also in RTL) and flips when there's no room.
|
|
17
|
-
Open it with `popovertarget`, `commandfor` or `showPopover({ source })`, so it knows its button.
|
|
18
|
-
- Browsers without CSS anchor positioning show it in the middle of the screen instead, like a plain popover.
|
|
19
|
-
- It uses the dropdown colours (`--pico-dropdown-*`, from `components/dropdown`).
|
|
20
|
-
|
|
21
|
-
\3c !--section:code-->```css */
|
|
22
2
|
:is(ul, menu)[popover] {
|
|
23
|
-
min-width: -moz-fit-content;
|
|
24
|
-
min-width: fit-content;
|
|
25
|
-
margin: auto;
|
|
26
|
-
padding: 0;
|
|
27
3
|
border: var(--pico-border-width) solid var(--pico-dropdown-border-color);
|
|
28
4
|
border-radius: var(--pico-border-radius);
|
|
29
5
|
background-color: var(--pico-dropdown-background-color);
|
|
6
|
+
min-width: fit-content;
|
|
30
7
|
box-shadow: var(--pico-dropdown-box-shadow);
|
|
31
8
|
color: var(--pico-dropdown-color);
|
|
32
9
|
white-space: nowrap;
|
|
33
10
|
opacity: 0;
|
|
34
|
-
transition:
|
|
35
|
-
opacity var(--pico-transition),
|
|
11
|
+
transition: opacity var(--pico-transition),
|
|
36
12
|
overlay var(--pico-transition) allow-discrete,
|
|
37
13
|
display var(--pico-transition) allow-discrete;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
14
|
+
margin: auto;
|
|
15
|
+
padding: 0;
|
|
16
|
+
|
|
17
|
+
&:not(:popover-open) {
|
|
41
18
|
display: none;
|
|
42
19
|
}
|
|
43
|
-
|
|
44
|
-
|
|
20
|
+
|
|
21
|
+
&:popover-open {
|
|
45
22
|
opacity: 1;
|
|
46
|
-
}
|
|
47
|
-
:is(ul, menu)[popover] li {
|
|
48
23
|
display: block;
|
|
49
|
-
|
|
50
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& li {
|
|
27
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * .5)
|
|
51
28
|
var(--pico-form-element-spacing-horizontal);
|
|
29
|
+
margin-bottom: 0;
|
|
52
30
|
list-style: none;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
31
|
+
display: block;
|
|
32
|
+
|
|
33
|
+
&:first-of-type {
|
|
34
|
+
margin-top: calc(var(--pico-form-element-spacing-vertical) * .5);
|
|
56
35
|
}
|
|
57
|
-
|
|
58
|
-
|
|
36
|
+
|
|
37
|
+
&:last-of-type {
|
|
38
|
+
margin-bottom: calc(var(--pico-form-element-spacing-vertical) * .5);
|
|
59
39
|
}
|
|
60
|
-
|
|
40
|
+
|
|
41
|
+
&:has(label):hover {
|
|
61
42
|
background-color: var(--pico-dropdown-hover-background-color);
|
|
62
43
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
& li a {
|
|
47
|
+
margin: calc(var(--pico-form-element-spacing-vertical) * -.5)
|
|
66
48
|
calc(var(--pico-form-element-spacing-horizontal) * -1);
|
|
67
|
-
padding: calc(var(--pico-form-element-spacing-vertical) *
|
|
49
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * .5)
|
|
68
50
|
var(--pico-form-element-spacing-horizontal);
|
|
69
|
-
overflow: hidden;
|
|
70
|
-
border-radius: 0;
|
|
71
51
|
color: var(--pico-dropdown-color);
|
|
72
|
-
text-decoration: none;
|
|
73
52
|
text-overflow: ellipsis;
|
|
74
|
-
|
|
75
|
-
|
|
53
|
+
border-radius: 0;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
display: block;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
|
|
58
|
+
&:is(:hover, :focus, :active, :focus-visible, [aria-current]:not([aria-current="false"])) {
|
|
76
59
|
background-color: var(--pico-dropdown-hover-background-color);
|
|
77
60
|
}
|
|
78
|
-
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& li label {
|
|
79
64
|
width: 100%;
|
|
80
65
|
}
|
|
81
|
-
|
|
66
|
+
}
|
|
67
|
+
|
|
82
68
|
nav :is(ul, menu)[popover]:not(.does-not-exist) {
|
|
83
69
|
margin: auto;
|
|
84
70
|
}
|
|
71
|
+
|
|
85
72
|
@starting-style {
|
|
86
73
|
:is(ul, menu)[popover]:popover-open {
|
|
87
74
|
opacity: 0;
|
|
88
75
|
}
|
|
89
76
|
}
|
|
90
77
|
|
|
91
|
-
/* Next to the button that opened it (its implicit anchor) */
|
|
92
78
|
@supports (position-area: bottom) {
|
|
93
|
-
:is(ul, menu)[popover],
|
|
94
|
-
nav :is(ul, menu)[popover]:not(.does-not-exist) {
|
|
95
|
-
position-area: bottom span-right;
|
|
96
|
-
position-try-fallbacks: flip-block, flip-inline;
|
|
79
|
+
:is(ul, menu)[popover], nav :is(ul, menu)[popover]:not(.does-not-exist) {
|
|
97
80
|
margin: 0;
|
|
98
81
|
margin-top: var(--pico-outline-width);
|
|
82
|
+
position-area: bottom span-right;
|
|
83
|
+
position-try-fallbacks: flip-block, flip-inline;
|
|
99
84
|
inset: auto;
|
|
100
|
-
}
|
|
101
85
|
|
|
102
|
-
|
|
86
|
+
&:dir(rtl) {
|
|
103
87
|
position-area: bottom span-left;
|
|
104
88
|
}
|
|
89
|
+
}
|
|
105
90
|
}
|
|
106
91
|
|
|
107
92
|
}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Dropdown (details.dropdown)
|
|
4
|
-
*/
|
|
5
|
-
:where(:scope, [data-theme="light"], [data-theme="dark"]),
|
|
6
|
-
:host {
|
|
2
|
+
:where(:scope, [data-theme="light"], [data-theme="dark"]), :host {
|
|
7
3
|
--pico-dropdown-background-color: light-dark(#fff, #181c25);
|
|
8
4
|
--pico-dropdown-border-color: light-dark(#eff1f4, #202632);
|
|
9
5
|
--pico-dropdown-box-shadow: var(--pico-box-shadow);
|
|
@@ -12,23 +8,22 @@
|
|
|
12
8
|
}
|
|
13
9
|
|
|
14
10
|
details.dropdown {
|
|
15
|
-
position: relative;
|
|
16
11
|
border-bottom: none;
|
|
12
|
+
position: relative;
|
|
17
13
|
}
|
|
18
|
-
|
|
19
|
-
details.dropdown > button
|
|
20
|
-
details.dropdown > a::after {
|
|
21
|
-
display: block;
|
|
14
|
+
|
|
15
|
+
details.dropdown > summary:after, details.dropdown > button:after, details.dropdown > a:after {
|
|
22
16
|
width: 1rem;
|
|
23
17
|
height: calc(1rem * var(--pico-line-height, 1.5));
|
|
24
|
-
margin-inline-start: 0.25rem;
|
|
25
18
|
float: right;
|
|
26
|
-
transform: rotate(0deg) translateX(0.2rem);
|
|
27
19
|
background-image: var(--pico-icon-chevron);
|
|
28
|
-
background-position: right center;
|
|
29
|
-
background-size: 1rem auto;
|
|
30
|
-
background-repeat: no-repeat;
|
|
31
20
|
content: "";
|
|
21
|
+
background-position: 100%;
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
background-size: 1rem;
|
|
24
|
+
margin-inline-start: .25rem;
|
|
25
|
+
display: block;
|
|
26
|
+
transform: rotate(0) translateX(.2rem);
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
nav details.dropdown {
|
|
@@ -36,10 +31,8 @@ nav details.dropdown {
|
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
details.dropdown > summary:not([role]) {
|
|
39
|
-
height: calc(
|
|
40
|
-
|
|
41
|
-
var(--pico-border-width) * 2
|
|
42
|
-
);
|
|
34
|
+
height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 +
|
|
35
|
+
var(--pico-border-width) * 2);
|
|
43
36
|
padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
|
|
44
37
|
border: var(--pico-border-width) solid var(--pico-form-element-border-color);
|
|
45
38
|
border-radius: var(--pico-border-radius);
|
|
@@ -49,29 +42,32 @@ details.dropdown > summary:not([role]) {
|
|
|
49
42
|
cursor: pointer;
|
|
50
43
|
-webkit-user-select: none;
|
|
51
44
|
-moz-user-select: none;
|
|
52
|
-
|
|
53
|
-
|
|
45
|
+
user-select: none;
|
|
46
|
+
transition: background-color var(--pico-transition),
|
|
54
47
|
border-color var(--pico-transition),
|
|
55
48
|
color var(--pico-transition),
|
|
56
49
|
box-shadow var(--pico-transition);
|
|
57
|
-
user-select: none;
|
|
58
50
|
}
|
|
59
|
-
|
|
60
|
-
details.dropdown > summary:not([role]):focus {
|
|
51
|
+
|
|
52
|
+
details.dropdown > summary:not([role]):active, details.dropdown > summary:not([role]):focus {
|
|
61
53
|
border-color: var(--pico-form-element-active-border-color);
|
|
62
54
|
background-color: var(--pico-form-element-active-background-color);
|
|
63
55
|
}
|
|
56
|
+
|
|
64
57
|
details.dropdown > summary:not([role]):focus {
|
|
65
58
|
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
|
|
66
59
|
}
|
|
60
|
+
|
|
67
61
|
details.dropdown > summary:not([role]):focus-visible {
|
|
68
62
|
outline: none;
|
|
69
63
|
}
|
|
64
|
+
|
|
70
65
|
details.dropdown > summary:not([role])[aria-invalid="false"] {
|
|
71
66
|
--pico-form-element-border-color: var(--pico-form-element-valid-border-color);
|
|
72
67
|
--pico-form-element-active-border-color: var(--pico-form-element-valid-focus-color);
|
|
73
68
|
--pico-form-element-focus-color: var(--pico-form-element-valid-focus-color);
|
|
74
69
|
}
|
|
70
|
+
|
|
75
71
|
details.dropdown > summary:not([role])[aria-invalid="true"] {
|
|
76
72
|
--pico-form-element-border-color: var(--pico-form-element-invalid-border-color);
|
|
77
73
|
--pico-form-element-active-border-color: var(--pico-form-element-invalid-focus-color);
|
|
@@ -79,33 +75,30 @@ details.dropdown > summary:not([role])[aria-invalid="true"] {
|
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
nav details.dropdown {
|
|
82
|
-
display: inline-block;
|
|
83
78
|
margin: calc(var(--pico-nav-element-spacing-vertical) * -1) 0;
|
|
79
|
+
display: inline-block;
|
|
84
80
|
}
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
|
|
82
|
+
nav details.dropdown > summary:after {
|
|
83
|
+
transform: rotate(0) translateX(0);
|
|
87
84
|
}
|
|
85
|
+
|
|
88
86
|
nav details.dropdown > summary:not([role]) {
|
|
89
87
|
height: calc(1rem * var(--pico-line-height) + var(--pico-nav-link-spacing-vertical) * 2);
|
|
90
88
|
padding: calc(var(--pico-nav-link-spacing-vertical) - var(--pico-border-width) * 2)
|
|
91
89
|
var(--pico-nav-link-spacing-horizontal);
|
|
92
90
|
}
|
|
91
|
+
|
|
93
92
|
nav details.dropdown > summary:not([role]):focus-visible {
|
|
94
93
|
box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-primary-focus);
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
details.dropdown > summary + ul {
|
|
98
|
-
display: flex;
|
|
99
97
|
z-index: 99;
|
|
100
|
-
position: absolute;
|
|
101
|
-
left: 0;
|
|
102
|
-
flex-direction: column;
|
|
103
98
|
width: 100%;
|
|
104
|
-
min-width: -moz-fit-content;
|
|
105
99
|
min-width: fit-content;
|
|
106
100
|
margin: 0;
|
|
107
101
|
margin-top: var(--pico-outline-width);
|
|
108
|
-
padding: 0;
|
|
109
102
|
border: var(--pico-border-width) solid var(--pico-dropdown-border-color);
|
|
110
103
|
border-radius: var(--pico-border-radius);
|
|
111
104
|
background-color: var(--pico-dropdown-background-color);
|
|
@@ -113,49 +106,57 @@ details.dropdown > summary + ul {
|
|
|
113
106
|
color: var(--pico-dropdown-color);
|
|
114
107
|
white-space: nowrap;
|
|
115
108
|
opacity: 0;
|
|
116
|
-
transition:
|
|
117
|
-
opacity var(--pico-transition),
|
|
109
|
+
transition: opacity var(--pico-transition),
|
|
118
110
|
transform 0s ease-in-out 1s;
|
|
111
|
+
flex-direction: column;
|
|
112
|
+
padding: 0;
|
|
113
|
+
display: flex;
|
|
114
|
+
position: absolute;
|
|
115
|
+
left: 0;
|
|
119
116
|
}
|
|
117
|
+
|
|
120
118
|
details.dropdown > summary + ul[dir="rtl"] {
|
|
121
|
-
right: 0;
|
|
122
119
|
left: auto;
|
|
120
|
+
right: 0;
|
|
123
121
|
}
|
|
122
|
+
|
|
124
123
|
details.dropdown > summary + ul li {
|
|
125
124
|
width: 100%;
|
|
126
|
-
|
|
127
|
-
padding: calc(var(--pico-form-element-spacing-vertical) * 0.5)
|
|
125
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * .5)
|
|
128
126
|
var(--pico-form-element-spacing-horizontal);
|
|
127
|
+
margin-bottom: 0;
|
|
129
128
|
list-style: none;
|
|
130
129
|
}
|
|
130
|
+
|
|
131
131
|
details.dropdown > summary + ul li:first-of-type {
|
|
132
|
-
margin-top: calc(var(--pico-form-element-spacing-vertical) *
|
|
132
|
+
margin-top: calc(var(--pico-form-element-spacing-vertical) * .5);
|
|
133
133
|
}
|
|
134
|
+
|
|
134
135
|
details.dropdown > summary + ul li:last-of-type {
|
|
135
|
-
margin-bottom: calc(var(--pico-form-element-spacing-vertical) *
|
|
136
|
+
margin-bottom: calc(var(--pico-form-element-spacing-vertical) * .5);
|
|
136
137
|
}
|
|
138
|
+
|
|
137
139
|
details.dropdown > summary + ul li a {
|
|
138
|
-
|
|
139
|
-
margin: calc(var(--pico-form-element-spacing-vertical) * -0.5)
|
|
140
|
+
margin: calc(var(--pico-form-element-spacing-vertical) * -.5)
|
|
140
141
|
calc(var(--pico-form-element-spacing-horizontal) * -1);
|
|
141
|
-
padding: calc(var(--pico-form-element-spacing-vertical) *
|
|
142
|
+
padding: calc(var(--pico-form-element-spacing-vertical) * .5)
|
|
142
143
|
var(--pico-form-element-spacing-horizontal);
|
|
143
|
-
overflow: hidden;
|
|
144
|
-
border-radius: 0;
|
|
145
144
|
color: var(--pico-dropdown-color);
|
|
146
|
-
text-decoration: none;
|
|
147
145
|
text-overflow: ellipsis;
|
|
146
|
+
border-radius: 0;
|
|
147
|
+
text-decoration: none;
|
|
148
|
+
display: block;
|
|
149
|
+
overflow: hidden;
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
details.dropdown > summary + ul li a:focus,
|
|
151
|
-
details.dropdown > summary + ul li a:active,
|
|
152
|
-
details.dropdown > summary + ul li a:focus-visible,
|
|
153
|
-
details.dropdown > summary + ul li a[aria-current]:not([aria-current="false"]) {
|
|
151
|
+
|
|
152
|
+
details.dropdown > summary + ul li a:hover, details.dropdown > summary + ul li a:focus, details.dropdown > summary + ul li a:active, details.dropdown > summary + ul li a:focus-visible, details.dropdown > summary + ul li a[aria-current]:not([aria-current="false"]) {
|
|
154
153
|
background-color: var(--pico-dropdown-hover-background-color);
|
|
155
154
|
}
|
|
155
|
+
|
|
156
156
|
details.dropdown > summary + ul li label {
|
|
157
157
|
width: 100%;
|
|
158
158
|
}
|
|
159
|
+
|
|
159
160
|
details.dropdown > summary + ul li:has(label):hover {
|
|
160
161
|
background-color: var(--pico-dropdown-hover-background-color);
|
|
161
162
|
}
|
|
@@ -165,27 +166,26 @@ details.dropdown[open] > summary {
|
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
details.dropdown[open] > summary + ul {
|
|
168
|
-
transform: scaleY(1);
|
|
169
169
|
opacity: 1;
|
|
170
|
-
transition:
|
|
171
|
-
opacity var(--pico-transition),
|
|
170
|
+
transition: opacity var(--pico-transition),
|
|
172
171
|
transform 0s ease-in-out 0s;
|
|
172
|
+
transform: scaleY(1);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
details.dropdown[open] > summary
|
|
176
|
-
display: block;
|
|
175
|
+
details.dropdown[open] > summary:before {
|
|
177
176
|
z-index: 1;
|
|
178
|
-
|
|
177
|
+
content: "";
|
|
178
|
+
cursor: default;
|
|
179
|
+
background: none;
|
|
179
180
|
width: 100vw;
|
|
180
181
|
height: 100vh;
|
|
182
|
+
display: block;
|
|
183
|
+
position: fixed;
|
|
181
184
|
inset: 0;
|
|
182
|
-
background: none;
|
|
183
|
-
content: "";
|
|
184
|
-
cursor: default;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
label > details.dropdown {
|
|
188
|
-
margin-top: calc(var(--pico-spacing) *
|
|
188
|
+
margin-top: calc(var(--pico-spacing) * .25);
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
}
|
|
@@ -1,206 +1,90 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
:where(:scope),
|
|
6
|
-
:host {
|
|
7
|
-
--pico-group-box-shadow: 0 0 0 rgba(0, 0, 0, 0);
|
|
2
|
+
:where(:scope), :host {
|
|
3
|
+
--pico-group-box-shadow: 0 0 0 #0000;
|
|
8
4
|
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width)
|
|
9
5
|
var(--pico-primary-focus);
|
|
10
|
-
--pico-group-box-shadow-focus-with-input: 0 0 0
|
|
6
|
+
--pico-group-box-shadow-focus-with-input: 0 0 0 .0625rem var(--pico-form-element-border-color);
|
|
11
7
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[type="submit"].secondary:focus,
|
|
15
|
-
[type="button"].secondary:focus,
|
|
16
|
-
[role="button"].secondary:focus
|
|
17
|
-
),
|
|
18
|
-
[role="group"]:has(
|
|
19
|
-
button.secondary:focus,
|
|
20
|
-
[type="submit"].secondary:focus,
|
|
21
|
-
[type="button"].secondary:focus,
|
|
22
|
-
[role="button"].secondary:focus
|
|
23
|
-
) {
|
|
8
|
+
|
|
9
|
+
[role="search"]:has(button.secondary:focus, [type="submit"].secondary:focus, [type="button"].secondary:focus, [role="button"].secondary:focus), [role="group"]:has(button.secondary:focus, [type="submit"].secondary:focus, [type="button"].secondary:focus, [role="button"].secondary:focus) {
|
|
24
10
|
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width)
|
|
25
11
|
var(--pico-secondary-focus);
|
|
26
12
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
[type="submit"].contrast:focus,
|
|
30
|
-
[type="button"].contrast:focus,
|
|
31
|
-
[role="button"].contrast:focus
|
|
32
|
-
),
|
|
33
|
-
[role="group"]:has(
|
|
34
|
-
button.contrast:focus,
|
|
35
|
-
[type="submit"].contrast:focus,
|
|
36
|
-
[type="button"].contrast:focus,
|
|
37
|
-
[role="button"].contrast:focus
|
|
38
|
-
) {
|
|
13
|
+
|
|
14
|
+
[role="search"]:has(button.contrast:focus, [type="submit"].contrast:focus, [type="button"].contrast:focus, [role="button"].contrast:focus), [role="group"]:has(button.contrast:focus, [type="submit"].contrast:focus, [type="button"].contrast:focus, [role="button"].contrast:focus) {
|
|
39
15
|
--pico-group-box-shadow-focus-with-button: 0 0 0 var(--pico-outline-width)
|
|
40
16
|
var(--pico-contrast-focus);
|
|
41
17
|
}
|
|
42
18
|
|
|
43
|
-
[role="search"],
|
|
44
|
-
[role="group"] {
|
|
45
|
-
display: inline-flex;
|
|
46
|
-
position: relative;
|
|
19
|
+
[role="search"], [role="group"] {
|
|
47
20
|
width: 100%;
|
|
48
21
|
margin-bottom: var(--pico-spacing);
|
|
49
22
|
border-radius: var(--pico-border-radius);
|
|
50
|
-
box-shadow: var(--pico-group-box-shadow, 0 0 0
|
|
23
|
+
box-shadow: var(--pico-group-box-shadow, 0 0 0 #0000);
|
|
51
24
|
vertical-align: middle;
|
|
52
25
|
transition: box-shadow var(--pico-transition);
|
|
53
|
-
|
|
54
|
-
[role="search"] > *,
|
|
55
|
-
[role="search"] input:not([type="checkbox"], [type="radio"]),
|
|
56
|
-
[role="search"] select,
|
|
57
|
-
[role="group"] > *,
|
|
58
|
-
[role="group"] input:not([type="checkbox"], [type="radio"]),
|
|
59
|
-
[role="group"] select {
|
|
26
|
+
display: inline-flex;
|
|
60
27
|
position: relative;
|
|
61
|
-
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
[role="search"] > *, [role="search"] input:not([type="checkbox"], [type="radio"]), [role="search"] select, [role="group"] > *, [role="group"] input:not([type="checkbox"], [type="radio"]), [role="group"] select {
|
|
31
|
+
flex: auto;
|
|
62
32
|
margin-bottom: 0;
|
|
33
|
+
position: relative;
|
|
63
34
|
}
|
|
64
|
-
|
|
65
|
-
[role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child),
|
|
66
|
-
[role="search"] select:not(:first-child),
|
|
67
|
-
[role="group"] > *:not(:first-child),
|
|
68
|
-
[role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child),
|
|
69
|
-
[role="group"] select:not(:first-child) {
|
|
70
|
-
margin-left: 0;
|
|
35
|
+
|
|
36
|
+
[role="search"] > :not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"] > :not(:first-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"] select:not(:first-child) {
|
|
71
37
|
border-top-left-radius: 0;
|
|
72
38
|
border-bottom-left-radius: 0;
|
|
39
|
+
margin-left: 0;
|
|
73
40
|
}
|
|
74
|
-
|
|
75
|
-
[role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child),
|
|
76
|
-
[role="search"] select:not(:last-child),
|
|
77
|
-
[role="group"] > *:not(:last-child),
|
|
78
|
-
[role="group"] input:not([type="checkbox"], [type="radio"]):not(:last-child),
|
|
79
|
-
[role="group"] select:not(:last-child) {
|
|
41
|
+
|
|
42
|
+
[role="search"] > :not(:last-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="search"] select:not(:last-child), [role="group"] > :not(:last-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="group"] select:not(:last-child) {
|
|
80
43
|
border-top-right-radius: 0;
|
|
81
44
|
border-bottom-right-radius: 0;
|
|
82
45
|
}
|
|
83
|
-
|
|
84
|
-
[role="search"] input:not([type="checkbox"], [type="radio"]):focus,
|
|
85
|
-
[role="search"] select:focus,
|
|
86
|
-
[role="group"] > *:focus,
|
|
87
|
-
[role="group"] input:not([type="checkbox"], [type="radio"]):focus,
|
|
88
|
-
[role="group"] select:focus {
|
|
46
|
+
|
|
47
|
+
[role="search"] > :focus, [role="search"] input:not([type="checkbox"], [type="radio"]):focus, [role="search"] select:focus, [role="group"] > :focus, [role="group"] input:not([type="checkbox"], [type="radio"]):focus, [role="group"] select:focus {
|
|
89
48
|
z-index: 2;
|
|
90
49
|
}
|
|
91
|
-
|
|
92
|
-
[role="search"] [type="submit"]:not(:first-child),
|
|
93
|
-
[role="search"] [type="reset"]:not(:first-child),
|
|
94
|
-
[role="search"] [type="button"]:not(:first-child),
|
|
95
|
-
[role="search"] [role="button"]:not(:first-child),
|
|
96
|
-
[role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child),
|
|
97
|
-
[role="search"] select:not(:first-child),
|
|
98
|
-
[role="group"] button:not(:first-child),
|
|
99
|
-
[role="group"] [type="submit"]:not(:first-child),
|
|
100
|
-
[role="group"] [type="reset"]:not(:first-child),
|
|
101
|
-
[role="group"] [type="button"]:not(:first-child),
|
|
102
|
-
[role="group"] [role="button"]:not(:first-child),
|
|
103
|
-
[role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child),
|
|
104
|
-
[role="group"] select:not(:first-child) {
|
|
50
|
+
|
|
51
|
+
[role="search"] button:not(:first-child), [role="search"] [type="submit"]:not(:first-child), [role="search"] [type="reset"]:not(:first-child), [role="search"] [type="button"]:not(:first-child), [role="search"] [role="button"]:not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), [role="group"] button:not(:first-child), [role="group"] [type="submit"]:not(:first-child), [role="group"] [type="reset"]:not(:first-child), [role="group"] [type="button"]:not(:first-child), [role="group"] [role="button"]:not(:first-child), [role="group"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="group"] select:not(:first-child) {
|
|
105
52
|
margin-left: calc(var(--pico-border-width) * -1);
|
|
106
53
|
}
|
|
107
|
-
|
|
108
|
-
[role="search"] [type="submit"],
|
|
109
|
-
[role="search"] [type="reset"],
|
|
110
|
-
[role="search"] [type="button"],
|
|
111
|
-
[role="search"] [role="button"],
|
|
112
|
-
[role="group"] button,
|
|
113
|
-
[role="group"] [type="submit"],
|
|
114
|
-
[role="group"] [type="reset"],
|
|
115
|
-
[role="group"] [type="button"],
|
|
116
|
-
[role="group"] [role="button"] {
|
|
54
|
+
|
|
55
|
+
[role="search"] button, [role="search"] [type="submit"], [role="search"] [type="reset"], [role="search"] [type="button"], [role="search"] [role="button"], [role="group"] button, [role="group"] [type="submit"], [role="group"] [type="reset"], [role="group"] [type="button"], [role="group"] [role="button"] {
|
|
117
56
|
width: auto;
|
|
118
57
|
}
|
|
58
|
+
|
|
119
59
|
@supports selector(:has(*)) {
|
|
120
|
-
[role="search"]:has(
|
|
121
|
-
button:focus,
|
|
122
|
-
[type="submit"]:focus,
|
|
123
|
-
[type="button"]:focus,
|
|
124
|
-
[role="button"]:focus
|
|
125
|
-
),
|
|
126
|
-
[role="group"]:has(
|
|
127
|
-
button:focus,
|
|
128
|
-
[type="submit"]:focus,
|
|
129
|
-
[type="button"]:focus,
|
|
130
|
-
[role="button"]:focus
|
|
131
|
-
) {
|
|
60
|
+
[role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus), [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) {
|
|
132
61
|
--pico-group-box-shadow: var(--pico-group-box-shadow-focus-with-button);
|
|
133
62
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
[type="button"]:focus,
|
|
138
|
-
[role="button"]:focus
|
|
139
|
-
)
|
|
140
|
-
input:not([type="checkbox"], [type="radio"]),
|
|
141
|
-
[role="search"]:has(
|
|
142
|
-
button:focus,
|
|
143
|
-
[type="submit"]:focus,
|
|
144
|
-
[type="button"]:focus,
|
|
145
|
-
[role="button"]:focus
|
|
146
|
-
)
|
|
147
|
-
select,
|
|
148
|
-
[role="group"]:has(
|
|
149
|
-
button:focus,
|
|
150
|
-
[type="submit"]:focus,
|
|
151
|
-
[type="button"]:focus,
|
|
152
|
-
[role="button"]:focus
|
|
153
|
-
)
|
|
154
|
-
input:not([type="checkbox"], [type="radio"]),
|
|
155
|
-
[role="group"]:has(
|
|
156
|
-
button:focus,
|
|
157
|
-
[type="submit"]:focus,
|
|
158
|
-
[type="button"]:focus,
|
|
159
|
-
[role="button"]:focus
|
|
160
|
-
)
|
|
161
|
-
select {
|
|
162
|
-
border-color: transparent;
|
|
63
|
+
|
|
64
|
+
[role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"]), [role="search"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select, [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) input:not([type="checkbox"], [type="radio"]), [role="group"]:has(button:focus, [type="submit"]:focus, [type="button"]:focus, [role="button"]:focus) select {
|
|
65
|
+
border-color: #0000;
|
|
163
66
|
}
|
|
164
|
-
|
|
165
|
-
[role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) {
|
|
67
|
+
|
|
68
|
+
[role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus), [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) {
|
|
166
69
|
--pico-group-box-shadow: var(--pico-group-box-shadow-focus-with-input);
|
|
167
70
|
}
|
|
168
|
-
|
|
169
|
-
[role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
170
|
-
[type="submit"],
|
|
171
|
-
[role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
172
|
-
[type="button"],
|
|
173
|
-
[role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
174
|
-
[role="button"],
|
|
175
|
-
[role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) button,
|
|
176
|
-
[role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
177
|
-
[type="submit"],
|
|
178
|
-
[role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
179
|
-
[type="button"],
|
|
180
|
-
[role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus)
|
|
181
|
-
[role="button"] {
|
|
71
|
+
|
|
72
|
+
[role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) button, [role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="submit"], [role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="button"], [role="search"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [role="button"], [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) button, [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="submit"], [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [type="button"], [role="group"]:has(input:not([type="submit"], [type="button"]):focus, select:focus) [role="button"] {
|
|
182
73
|
--pico-button-box-shadow: 0 0 0 var(--pico-border-width) var(--pico-primary-border);
|
|
183
74
|
--pico-button-hover-box-shadow: 0 0 0 var(--pico-border-width) var(--pico-primary-hover-border);
|
|
184
75
|
}
|
|
185
|
-
|
|
186
|
-
[role="search"] [type="submit"]:focus,
|
|
187
|
-
[role="search"] [type="reset"]:focus,
|
|
188
|
-
[role="search"] [type="button"]:focus,
|
|
189
|
-
[role="search"] [role="button"]:focus,
|
|
190
|
-
[role="group"] button:focus,
|
|
191
|
-
[role="group"] [type="submit"]:focus,
|
|
192
|
-
[role="group"] [type="reset"]:focus,
|
|
193
|
-
[role="group"] [type="button"]:focus,
|
|
194
|
-
[role="group"] [role="button"]:focus {
|
|
76
|
+
|
|
77
|
+
[role="search"] button:focus, [role="search"] [type="submit"]:focus, [role="search"] [type="reset"]:focus, [role="search"] [type="button"]:focus, [role="search"] [role="button"]:focus, [role="group"] button:focus, [role="group"] [type="submit"]:focus, [role="group"] [type="reset"]:focus, [role="group"] [type="button"]:focus, [role="group"] [role="button"]:focus {
|
|
195
78
|
box-shadow: none;
|
|
196
79
|
}
|
|
197
80
|
}
|
|
198
81
|
|
|
199
|
-
[role="search"] >
|
|
82
|
+
[role="search"] > :first-child {
|
|
200
83
|
border-top-left-radius: 5rem;
|
|
201
84
|
border-bottom-left-radius: 5rem;
|
|
202
85
|
}
|
|
203
|
-
|
|
86
|
+
|
|
87
|
+
[role="search"] > :last-child {
|
|
204
88
|
border-top-right-radius: 5rem;
|
|
205
89
|
border-bottom-right-radius: 5rem;
|
|
206
90
|
}
|