@anyblades/blades 3.1.0-beta.4 → 3.1.0-beta.6
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 +20 -10
- package/_includes/.prettierrc.json +12 -0
- package/_includes/package.json +10 -0
- package/css/blades.css +942 -1805
- package/css/blades.min.css +11 -1
- package/css/blades.ninja.css +1124 -2265
- 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 +942 -1805
- 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 +92 -0
- 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 +20 -0
- 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 +10 -0
- 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 +20 -0
- 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 +33 -0
- 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 +31 -0
- package/css/layered/forms/float-label/theme.css +28 -0
- package/css/layered/forms/float-label.css +57 -0
- 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 +10 -0
- 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 +11 -0
- 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 +13 -26
- package/src/blades/_index.css +9 -9
- package/src/blades/{_dropdown-popover.css → components/_dropdown-popover.css} +3 -3
- package/src/blades/forms/float-label/_index.css +2 -0
- 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 +7 -8
- 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/_includes/blades/links.liquid +0 -21
- package/_includes/blades/links.njk +0 -9
- package/_includes/blades/links.twig +0 -18
- package/src/blades/float-label/_index.css +0 -2
- package/src/ninja/_page-anchors.css +0 -10
- /package/src/blades/{_variables.css → _variables-blades.css} +0 -0
- /package/src/blades/{_modal.css → components/_modal-modern.css} +0 -0
- /package/src/blades/{_timeline.css → components/_timeline.css} +0 -0
- /package/src/blades/{_code.css → content/_code-block.css} +0 -0
- /package/src/blades/{_icon.css → content/_icon.css} +0 -0
- /package/src/blades/{float-label → forms/float-label}/_core.css +0 -0
- /package/src/blades/{float-label → forms/float-label}/_theme.css +0 -0
- /package/src/blades/{_columns.css → layout/_columns.css} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Container
|
|
4
|
-
*/
|
|
5
|
-
.container,
|
|
6
|
-
.container-fluid {
|
|
2
|
+
.container, .container-fluid {
|
|
7
3
|
width: 100%;
|
|
8
|
-
margin-right: auto;
|
|
9
|
-
margin-left: auto;
|
|
10
4
|
padding-right: var(--pico-spacing);
|
|
11
5
|
padding-left: var(--pico-spacing);
|
|
6
|
+
margin-left: auto;
|
|
7
|
+
margin-right: auto;
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
@media (
|
|
10
|
+
@media (width >= 576px) {
|
|
15
11
|
.container {
|
|
16
12
|
max-width: 510px;
|
|
17
|
-
padding-right: 0;
|
|
18
13
|
padding-left: 0;
|
|
14
|
+
padding-right: 0;
|
|
19
15
|
}
|
|
20
16
|
}
|
|
21
|
-
|
|
17
|
+
|
|
18
|
+
@media (width >= 768px) {
|
|
22
19
|
.container {
|
|
23
20
|
max-width: 700px;
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
|
|
23
|
+
|
|
24
|
+
@media (width >= 1024px) {
|
|
27
25
|
.container {
|
|
28
26
|
max-width: 950px;
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
|
-
|
|
29
|
+
|
|
30
|
+
@media (width >= 1280px) {
|
|
32
31
|
.container {
|
|
33
32
|
max-width: 1200px;
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
|
-
|
|
35
|
+
|
|
36
|
+
@media (width >= 1536px) {
|
|
37
37
|
.container {
|
|
38
38
|
max-width: 1450px;
|
|
39
39
|
}
|
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Document
|
|
4
|
-
* Content-box & Responsive typography
|
|
5
|
-
*/
|
|
6
|
-
*,
|
|
7
|
-
*::before,
|
|
8
|
-
*::after {
|
|
2
|
+
*, :before, :after {
|
|
9
3
|
box-sizing: border-box;
|
|
10
4
|
background-repeat: no-repeat;
|
|
11
5
|
}
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
::after {
|
|
7
|
+
:before, :after {
|
|
15
8
|
text-decoration: inherit;
|
|
16
9
|
vertical-align: inherit;
|
|
17
10
|
}
|
|
18
11
|
|
|
19
|
-
:where(:scope),
|
|
20
|
-
:where(:host) {
|
|
12
|
+
:where(:scope), :where(:host) {
|
|
21
13
|
-webkit-tap-highlight-color: transparent;
|
|
22
14
|
-webkit-text-size-adjust: 100%;
|
|
23
15
|
-moz-text-size-adjust: 100%;
|
|
@@ -29,7 +21,7 @@
|
|
|
29
21
|
line-height: var(--pico-line-height);
|
|
30
22
|
font-family: var(--pico-font-family);
|
|
31
23
|
text-underline-offset: var(--pico-text-underline-offset);
|
|
32
|
-
text-rendering:
|
|
24
|
+
text-rendering: optimizelegibility;
|
|
33
25
|
overflow-wrap: break-word;
|
|
34
26
|
-moz-tab-size: 4;
|
|
35
27
|
-o-tab-size: 4;
|
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Grid
|
|
4
|
-
* Minimal grid system with auto-layout columns
|
|
5
|
-
*/
|
|
6
2
|
.grid {
|
|
7
3
|
grid-column-gap: var(--pico-grid-column-gap);
|
|
8
4
|
grid-row-gap: var(--pico-grid-row-gap);
|
|
9
|
-
display: grid;
|
|
10
5
|
grid-template-columns: 1fr;
|
|
6
|
+
display: grid;
|
|
11
7
|
}
|
|
12
|
-
|
|
8
|
+
|
|
9
|
+
@media (width >= 768px) {
|
|
13
10
|
.grid {
|
|
14
11
|
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
|
-
|
|
14
|
+
|
|
15
|
+
.grid > :not(.does-not-exist) {
|
|
18
16
|
min-width: 0;
|
|
19
|
-
margin-bottom: 0;
|
|
17
|
+
margin-bottom: 0;
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
}
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Landmarks
|
|
4
|
-
* Included in pico.css and blades.ninja.css; not in blades.css
|
|
5
|
-
*/
|
|
6
|
-
body > header,
|
|
7
|
-
body > main,
|
|
8
|
-
body > footer {
|
|
2
|
+
body > header, body > main, body > footer {
|
|
9
3
|
padding-block: var(--pico-block-spacing-vertical);
|
|
10
4
|
}
|
|
11
5
|
|
package/css/layered/layout.css
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
|
|
3
|
-
* Document
|
|
4
|
-
* Content-box & Responsive typography
|
|
5
|
-
*/
|
|
6
|
-
*,
|
|
7
|
-
*::before,
|
|
8
|
-
*::after {
|
|
2
|
+
*, :before, :after {
|
|
9
3
|
box-sizing: border-box;
|
|
10
4
|
background-repeat: no-repeat;
|
|
11
5
|
}
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
::after {
|
|
7
|
+
:before, :after {
|
|
15
8
|
text-decoration: inherit;
|
|
16
9
|
vertical-align: inherit;
|
|
17
10
|
}
|
|
18
11
|
|
|
19
|
-
:where(:scope),
|
|
20
|
-
:where(:host) {
|
|
12
|
+
:where(:scope), :where(:host) {
|
|
21
13
|
-webkit-tap-highlight-color: transparent;
|
|
22
14
|
-webkit-text-size-adjust: 100%;
|
|
23
15
|
-moz-text-size-adjust: 100%;
|
|
@@ -29,7 +21,7 @@
|
|
|
29
21
|
line-height: var(--pico-line-height);
|
|
30
22
|
font-family: var(--pico-font-family);
|
|
31
23
|
text-underline-offset: var(--pico-text-underline-offset);
|
|
32
|
-
text-rendering:
|
|
24
|
+
text-rendering: optimizelegibility;
|
|
33
25
|
overflow-wrap: break-word;
|
|
34
26
|
-moz-tab-size: 4;
|
|
35
27
|
-o-tab-size: 4;
|
|
@@ -45,73 +37,68 @@ main {
|
|
|
45
37
|
display: block;
|
|
46
38
|
}
|
|
47
39
|
|
|
48
|
-
/**
|
|
49
|
-
* Section
|
|
50
|
-
*/
|
|
51
40
|
section {
|
|
52
41
|
margin-bottom: var(--pico-block-spacing-vertical);
|
|
53
42
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*/
|
|
57
|
-
.container,
|
|
58
|
-
.container-fluid {
|
|
43
|
+
|
|
44
|
+
.container, .container-fluid {
|
|
59
45
|
width: 100%;
|
|
60
|
-
margin-right: auto;
|
|
61
|
-
margin-left: auto;
|
|
62
46
|
padding-right: var(--pico-spacing);
|
|
63
47
|
padding-left: var(--pico-spacing);
|
|
48
|
+
margin-left: auto;
|
|
49
|
+
margin-right: auto;
|
|
64
50
|
}
|
|
65
51
|
|
|
66
|
-
@media (
|
|
52
|
+
@media (width >= 576px) {
|
|
67
53
|
.container {
|
|
68
54
|
max-width: 510px;
|
|
69
|
-
padding-right: 0;
|
|
70
55
|
padding-left: 0;
|
|
56
|
+
padding-right: 0;
|
|
71
57
|
}
|
|
72
58
|
}
|
|
73
|
-
|
|
59
|
+
|
|
60
|
+
@media (width >= 768px) {
|
|
74
61
|
.container {
|
|
75
62
|
max-width: 700px;
|
|
76
63
|
}
|
|
77
64
|
}
|
|
78
|
-
|
|
65
|
+
|
|
66
|
+
@media (width >= 1024px) {
|
|
79
67
|
.container {
|
|
80
68
|
max-width: 950px;
|
|
81
69
|
}
|
|
82
70
|
}
|
|
83
|
-
|
|
71
|
+
|
|
72
|
+
@media (width >= 1280px) {
|
|
84
73
|
.container {
|
|
85
74
|
max-width: 1200px;
|
|
86
75
|
}
|
|
87
76
|
}
|
|
88
|
-
|
|
77
|
+
|
|
78
|
+
@media (width >= 1536px) {
|
|
89
79
|
.container {
|
|
90
80
|
max-width: 1450px;
|
|
91
81
|
}
|
|
92
82
|
}
|
|
93
|
-
|
|
94
|
-
* Grid
|
|
95
|
-
* Minimal grid system with auto-layout columns
|
|
96
|
-
*/
|
|
83
|
+
|
|
97
84
|
.grid {
|
|
98
85
|
grid-column-gap: var(--pico-grid-column-gap);
|
|
99
86
|
grid-row-gap: var(--pico-grid-row-gap);
|
|
100
|
-
display: grid;
|
|
101
87
|
grid-template-columns: 1fr;
|
|
88
|
+
display: grid;
|
|
102
89
|
}
|
|
103
|
-
|
|
90
|
+
|
|
91
|
+
@media (width >= 768px) {
|
|
104
92
|
.grid {
|
|
105
93
|
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
106
94
|
}
|
|
107
95
|
}
|
|
108
|
-
|
|
96
|
+
|
|
97
|
+
.grid > :not(.does-not-exist) {
|
|
109
98
|
min-width: 0;
|
|
110
|
-
margin-bottom: 0;
|
|
99
|
+
margin-bottom: 0;
|
|
111
100
|
}
|
|
112
|
-
|
|
113
|
-
* Overflow auto
|
|
114
|
-
*/
|
|
101
|
+
|
|
115
102
|
.overflow-auto {
|
|
116
103
|
overflow: auto;
|
|
117
104
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
@layer blades {
|
|
2
|
-
/**
|
|
3
|
-
* Accessibility & User interaction
|
|
4
|
-
*/
|
|
5
2
|
[aria-controls] {
|
|
6
3
|
cursor: pointer;
|
|
7
4
|
}
|
|
8
5
|
|
|
9
|
-
[aria-disabled="true"],
|
|
10
|
-
[disabled] {
|
|
6
|
+
[aria-disabled="true"], [disabled] {
|
|
11
7
|
cursor: not-allowed;
|
|
12
8
|
}
|
|
13
9
|
|
|
@@ -15,20 +11,15 @@
|
|
|
15
11
|
direction: rtl;
|
|
16
12
|
}
|
|
17
13
|
|
|
18
|
-
/**
|
|
19
|
-
* Reduce Motion Features
|
|
20
|
-
*/
|
|
21
14
|
@media (prefers-reduced-motion: reduce) {
|
|
22
|
-
|
|
23
|
-
:not([aria-busy="true"])::before,
|
|
24
|
-
:not([aria-busy="true"])::after {
|
|
15
|
+
:not([aria-busy="true"]):not(.unreduce-motion), :not([aria-busy="true"]):before, :not([aria-busy="true"]):after {
|
|
25
16
|
background-attachment: initial !important;
|
|
26
|
-
animation-duration: 1ms !important;
|
|
27
|
-
animation-delay: -1ms !important;
|
|
28
|
-
animation-iteration-count: 1 !important;
|
|
29
17
|
scroll-behavior: auto !important;
|
|
30
|
-
transition-delay: 0s !important;
|
|
31
18
|
transition-duration: 0s !important;
|
|
19
|
+
transition-delay: 0s !important;
|
|
20
|
+
animation-duration: 1ms !important;
|
|
21
|
+
animation-iteration-count: 1 !important;
|
|
22
|
+
animation-delay: -1ms !important;
|
|
32
23
|
}
|
|
33
24
|
}
|
|
34
25
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@layer blades {
|
|
2
|
+
:scope, :host {
|
|
3
|
+
--blades-token-primary: var(--pico-primary, dodgerblue);
|
|
4
|
+
--in-pico: #969eaf;
|
|
5
|
+
--blades-token-secondary: var(--pico-secondary, lightslategray);
|
|
6
|
+
--blades-timeline-border-color: color-mix(in srgb,
|
|
7
|
+
var(--blades-token-secondary) 50%,
|
|
8
|
+
transparent);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
}
|