@anyblades/pico 2.1.1-alpha → 2.2.0-alpha
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/README.md +7 -7
- package/css/pico.blades.css +3682 -0
- package/css/pico.blades.min.css +110 -0
- package/css/pico.css +890 -708
- package/css/pico.min.css +100 -1
- package/css/postcss.config.js +6 -4
- package/package.json +11 -10
- package/src/_components.css +974 -0
- package/src/_content.css +604 -0
- package/src/_forms.css +745 -0
- package/src/_layout.css +127 -0
- package/src/_utilities.css +53 -0
- package/src/_variables.css +689 -0
- package/src/pico.blades.css +7 -0
- package/src/pico.css +11 -0
package/src/_layout.css
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document
|
|
3
|
+
* Content-box & Responsive typography
|
|
4
|
+
*/
|
|
5
|
+
*,
|
|
6
|
+
*::before,
|
|
7
|
+
*::after {
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
background-repeat: no-repeat;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::before,
|
|
13
|
+
::after {
|
|
14
|
+
text-decoration: inherit;
|
|
15
|
+
vertical-align: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:where(:root),
|
|
19
|
+
:where(:host) {
|
|
20
|
+
-webkit-tap-highlight-color: transparent;
|
|
21
|
+
-webkit-text-size-adjust: 100%;
|
|
22
|
+
-moz-text-size-adjust: 100%;
|
|
23
|
+
text-size-adjust: 100%;
|
|
24
|
+
background-color: var(--pico-background-color);
|
|
25
|
+
color: var(--pico-color);
|
|
26
|
+
font-weight: var(--pico-font-weight);
|
|
27
|
+
font-size: var(--pico-font-size);
|
|
28
|
+
line-height: var(--pico-line-height);
|
|
29
|
+
font-family: var(--pico-font-family);
|
|
30
|
+
text-underline-offset: var(--pico-text-underline-offset);
|
|
31
|
+
text-rendering: optimizeLegibility;
|
|
32
|
+
overflow-wrap: break-word;
|
|
33
|
+
-moz-tab-size: 4;
|
|
34
|
+
-o-tab-size: 4;
|
|
35
|
+
tab-size: 4;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Landmarks
|
|
40
|
+
*/
|
|
41
|
+
body {
|
|
42
|
+
width: 100%;
|
|
43
|
+
margin: 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
main {
|
|
47
|
+
display: block;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
body > header,
|
|
51
|
+
body > main,
|
|
52
|
+
body > footer {
|
|
53
|
+
padding-block: var(--pico-block-spacing-vertical);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Section
|
|
58
|
+
*/
|
|
59
|
+
section {
|
|
60
|
+
margin-bottom: var(--pico-block-spacing-vertical);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Container
|
|
65
|
+
*/
|
|
66
|
+
.container,
|
|
67
|
+
.container-fluid {
|
|
68
|
+
width: 100%;
|
|
69
|
+
margin-right: auto;
|
|
70
|
+
margin-left: auto;
|
|
71
|
+
padding-right: var(--pico-spacing);
|
|
72
|
+
padding-left: var(--pico-spacing);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@media (min-width: 576px) {
|
|
76
|
+
.container {
|
|
77
|
+
max-width: 510px;
|
|
78
|
+
padding-right: 0;
|
|
79
|
+
padding-left: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@media (min-width: 768px) {
|
|
83
|
+
.container {
|
|
84
|
+
max-width: 700px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
@media (min-width: 1024px) {
|
|
88
|
+
.container {
|
|
89
|
+
max-width: 950px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
@media (min-width: 1280px) {
|
|
93
|
+
.container {
|
|
94
|
+
max-width: 1200px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
@media (min-width: 1536px) {
|
|
98
|
+
.container {
|
|
99
|
+
max-width: 1450px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Grid
|
|
105
|
+
* Minimal grid system with auto-layout columns
|
|
106
|
+
*/
|
|
107
|
+
.grid {
|
|
108
|
+
grid-column-gap: var(--pico-grid-column-gap);
|
|
109
|
+
grid-row-gap: var(--pico-grid-row-gap);
|
|
110
|
+
display: grid;
|
|
111
|
+
grid-template-columns: 1fr;
|
|
112
|
+
}
|
|
113
|
+
@media (min-width: 768px) {
|
|
114
|
+
.grid {
|
|
115
|
+
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
.grid > * {
|
|
119
|
+
min-width: 0;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Overflow auto
|
|
124
|
+
*/
|
|
125
|
+
.overflow-auto {
|
|
126
|
+
overflow: auto;
|
|
127
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessibility & User interaction
|
|
3
|
+
*/
|
|
4
|
+
[aria-controls] {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[aria-disabled="true"],
|
|
9
|
+
[disabled] {
|
|
10
|
+
cursor: not-allowed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
[aria-hidden="false"][hidden] {
|
|
14
|
+
display: initial;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[aria-hidden="false"][hidden]:not(:focus) {
|
|
18
|
+
clip: rect(0, 0, 0, 0);
|
|
19
|
+
position: absolute;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
a,
|
|
23
|
+
area,
|
|
24
|
+
button,
|
|
25
|
+
input,
|
|
26
|
+
label,
|
|
27
|
+
select,
|
|
28
|
+
summary,
|
|
29
|
+
textarea,
|
|
30
|
+
[tabindex] {
|
|
31
|
+
-ms-touch-action: manipulation;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
[dir="rtl"] {
|
|
35
|
+
direction: rtl;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Reduce Motion Features
|
|
40
|
+
*/
|
|
41
|
+
@media (prefers-reduced-motion: reduce) {
|
|
42
|
+
*:not([aria-busy="true"]),
|
|
43
|
+
:not([aria-busy="true"])::before,
|
|
44
|
+
:not([aria-busy="true"])::after {
|
|
45
|
+
background-attachment: initial !important;
|
|
46
|
+
animation-duration: 1ms !important;
|
|
47
|
+
animation-delay: -1ms !important;
|
|
48
|
+
animation-iteration-count: 1 !important;
|
|
49
|
+
scroll-behavior: auto !important;
|
|
50
|
+
transition-delay: 0s !important;
|
|
51
|
+
transition-duration: 0s !important;
|
|
52
|
+
}
|
|
53
|
+
}
|