@semanticus/semanticus-css 0.3.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/LICENSE +21 -0
- package/NOTICE +53 -0
- package/README.md +151 -0
- package/dist/semanticus-semantics.css +2 -0
- package/dist/semanticus-utilities.css +7 -0
- package/dist/semanticus-variants.css +1 -0
- package/dist/semanticus.css +7 -0
- package/dist/semanticus.palette.amber.css +1 -0
- package/dist/semanticus.palette.blue.css +1 -0
- package/dist/semanticus.palette.cyan.css +1 -0
- package/dist/semanticus.palette.fuchsia.css +1 -0
- package/dist/semanticus.palette.green.css +1 -0
- package/dist/semanticus.palette.grey.css +1 -0
- package/dist/semanticus.palette.indigo.css +1 -0
- package/dist/semanticus.palette.jade.css +1 -0
- package/dist/semanticus.palette.lime.css +1 -0
- package/dist/semanticus.palette.orange.css +1 -0
- package/dist/semanticus.palette.pink.css +1 -0
- package/dist/semanticus.palette.pumpkin.css +1 -0
- package/dist/semanticus.palette.purple.css +1 -0
- package/dist/semanticus.palette.red.css +1 -0
- package/dist/semanticus.palette.sand.css +1 -0
- package/dist/semanticus.palette.slate.css +1 -0
- package/dist/semanticus.palette.violet.css +1 -0
- package/dist/semanticus.palette.yellow.css +1 -0
- package/dist/semanticus.palette.zinc.css +1 -0
- package/dist/semanticus.size.slim.css +1 -0
- package/package.json +102 -0
- package/src/_normalize.css +214 -0
- package/src/_variables.css +863 -0
- package/src/index.css +20 -0
- package/src/palettes/amber.css +56 -0
- package/src/palettes/blue.css +56 -0
- package/src/palettes/cyan.css +56 -0
- package/src/palettes/fuchsia.css +56 -0
- package/src/palettes/green.css +56 -0
- package/src/palettes/grey.css +56 -0
- package/src/palettes/indigo.css +56 -0
- package/src/palettes/jade.css +56 -0
- package/src/palettes/lime.css +56 -0
- package/src/palettes/orange.css +56 -0
- package/src/palettes/pink.css +56 -0
- package/src/palettes/pumpkin.css +56 -0
- package/src/palettes/purple.css +56 -0
- package/src/palettes/red.css +56 -0
- package/src/palettes/sand.css +56 -0
- package/src/palettes/slate.css +56 -0
- package/src/palettes/violet.css +56 -0
- package/src/palettes/yellow.css +56 -0
- package/src/palettes/zinc.css +56 -0
- package/src/semantics/_aria-busy.css +34 -0
- package/src/semantics/_article.css +6 -0
- package/src/semantics/_body.css +10 -0
- package/src/semantics/_button.css +106 -0
- package/src/semantics/_code.css +50 -0
- package/src/semantics/_details.css +292 -0
- package/src/semantics/_dialog.css +163 -0
- package/src/semantics/_document.css +18 -0
- package/src/semantics/_embedded.css +41 -0
- package/src/semantics/_figure.css +13 -0
- package/src/semantics/_hidden.css +7 -0
- package/src/semantics/_hr.css +10 -0
- package/src/semantics/_input.css +306 -0
- package/src/semantics/_links.css +33 -0
- package/src/semantics/_main.css +3 -0
- package/src/semantics/_nav.css +116 -0
- package/src/semantics/_progress.css +62 -0
- package/src/semantics/_role-group-search.css +129 -0
- package/src/semantics/_role-toolbar.css +17 -0
- package/src/semantics/_role-tooltip.css +138 -0
- package/src/semantics/_section.css +6 -0
- package/src/semantics/_table.css +28 -0
- package/src/semantics/_type-checkbox-radio.css +142 -0
- package/src/semantics/_type-color.css +22 -0
- package/src/semantics/_type-date.css +40 -0
- package/src/semantics/_type-file.css +26 -0
- package/src/semantics/_type-range.css +90 -0
- package/src/semantics/_type-search.css +34 -0
- package/src/semantics/_typography.css +137 -0
- package/src/semantics/index.css +14 -0
- package/src/semantics/modules.css +35 -0
- package/src/sizes/slim.css +12 -0
- package/src/utilities/_variables.css +244 -0
- package/src/utilities/borders/_border-radius.css +216 -0
- package/src/utilities/borders/_border-style.css +39 -0
- package/src/utilities/borders/_border-width.css +39 -0
- package/src/utilities/colors/_background-colors.css +209 -0
- package/src/utilities/colors/_border-colors.css +69 -0
- package/src/utilities/colors/_text-colors.css +371 -0
- package/src/utilities/display/_display.css +259 -0
- package/src/utilities/display/_overflow.css +47 -0
- package/src/utilities/display/_visibility.css +27 -0
- package/src/utilities/effects/_opacity.css +19 -0
- package/src/utilities/effects/_shadows.css +48 -0
- package/src/utilities/effects/_transforms.css +11 -0
- package/src/utilities/index.css +14 -0
- package/src/utilities/layout/_flexbox.css +846 -0
- package/src/utilities/layout/_grid.css +51 -0
- package/src/utilities/layout/_misc.css +77 -0
- package/src/utilities/media/_object-fit.css +139 -0
- package/src/utilities/modules.css +56 -0
- package/src/utilities/positioning/_floats.css +72 -0
- package/src/utilities/positioning/_inset.css +47 -0
- package/src/utilities/positioning/_position.css +108 -0
- package/src/utilities/positioning/_z-index.css +19 -0
- package/src/utilities/sizing/_height.css +31 -0
- package/src/utilities/sizing/_width.css +31 -0
- package/src/utilities/spacing/_gap.css +393 -0
- package/src/utilities/spacing/_margin.css +1030 -0
- package/src/utilities/spacing/_padding.css +885 -0
- package/src/utilities/typography/_font-family.css +7 -0
- package/src/utilities/typography/_font-sizes.css +38 -0
- package/src/utilities/typography/_font-weight.css +51 -0
- package/src/utilities/typography/_text-alignment.css +141 -0
- package/src/variants/_card.css +41 -0
- package/src/variants/_container.css +36 -0
- package/src/variants/_contrast.css +50 -0
- package/src/variants/_ghost.css +58 -0
- package/src/variants/_secondary.css +38 -0
- package/src/variants/_striped.css +10 -0
- package/src/variants/index.css +6 -0
- package/src/variants/modules.css +12 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip ([role="tooltip"])
|
|
3
|
+
*/
|
|
4
|
+
:has(> [role="tooltip"]) {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
width: fit-content;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:not(a, button, input, [role=button])[aria-describedby] {
|
|
11
|
+
border-bottom: 1px dotted;
|
|
12
|
+
text-decoration: none;
|
|
13
|
+
cursor: help;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
[role="tooltip"] {
|
|
17
|
+
display: block;
|
|
18
|
+
z-index: 99;
|
|
19
|
+
position: absolute;
|
|
20
|
+
bottom: 100%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
padding: 0.25rem 0.5rem;
|
|
23
|
+
transform: translate(-50%, -0.25rem);
|
|
24
|
+
border-radius: var(--border-radius);
|
|
25
|
+
background: var(--tooltip-bg);
|
|
26
|
+
color: var(--tooltip-text);
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: var(--font-weight);
|
|
29
|
+
font-size: 0.875rem;
|
|
30
|
+
text-decoration: none;
|
|
31
|
+
text-overflow: ellipsis;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
opacity: 0;
|
|
34
|
+
pointer-events: none;
|
|
35
|
+
|
|
36
|
+
&::after {
|
|
37
|
+
content: "";
|
|
38
|
+
display: block;
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 100%;
|
|
41
|
+
left: 50%;
|
|
42
|
+
transform: translate(-50%, 0);
|
|
43
|
+
border-top: 0.3rem solid var(--tooltip-bg);
|
|
44
|
+
border-right: 0.3rem solid transparent;
|
|
45
|
+
border-left: 0.3rem solid transparent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-placement="bottom"] {
|
|
49
|
+
top: 100%;
|
|
50
|
+
bottom: auto;
|
|
51
|
+
transform: translate(-50%, 0.25rem);
|
|
52
|
+
|
|
53
|
+
&::after {
|
|
54
|
+
top: auto;
|
|
55
|
+
bottom: 100%;
|
|
56
|
+
transform: translate(-50%, 0);
|
|
57
|
+
border-top: none;
|
|
58
|
+
border-bottom: 0.3rem solid var(--tooltip-bg);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&[data-placement="left"] {
|
|
63
|
+
top: 50%;
|
|
64
|
+
right: 100%;
|
|
65
|
+
bottom: auto;
|
|
66
|
+
left: auto;
|
|
67
|
+
transform: translate(-0.25rem, -50%);
|
|
68
|
+
|
|
69
|
+
&::after {
|
|
70
|
+
top: 50%;
|
|
71
|
+
left: 100%;
|
|
72
|
+
transform: translate(0, -50%);
|
|
73
|
+
border-top: 0.3rem solid transparent;
|
|
74
|
+
border-bottom: 0.3rem solid transparent;
|
|
75
|
+
border-left: 0.3rem solid var(--tooltip-bg);
|
|
76
|
+
border-right: none;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-placement="right"] {
|
|
81
|
+
top: 50%;
|
|
82
|
+
left: 100%;
|
|
83
|
+
bottom: auto;
|
|
84
|
+
transform: translate(0.25rem, -50%);
|
|
85
|
+
|
|
86
|
+
&::after {
|
|
87
|
+
top: 50%;
|
|
88
|
+
right: 100%;
|
|
89
|
+
left: auto;
|
|
90
|
+
transform: translate(0, -50%);
|
|
91
|
+
border-top: 0.3rem solid transparent;
|
|
92
|
+
border-bottom: 0.3rem solid transparent;
|
|
93
|
+
border-right: 0.3rem solid var(--tooltip-bg);
|
|
94
|
+
border-left: none;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[aria-describedby]:hover + [role="tooltip"],
|
|
100
|
+
[aria-describedby]:focus + [role="tooltip"] {
|
|
101
|
+
opacity: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media (hover: hover) and (pointer: fine) {
|
|
105
|
+
[role="tooltip"] {
|
|
106
|
+
--tooltip-slide-to: translate(-50%, -0.25rem);
|
|
107
|
+
transform: translate(-50%, 0.75rem);
|
|
108
|
+
animation-duration: 0.2s;
|
|
109
|
+
animation-fill-mode: forwards;
|
|
110
|
+
|
|
111
|
+
&[data-placement="bottom"] {
|
|
112
|
+
--tooltip-slide-to: translate(-50%, 0.25rem);
|
|
113
|
+
transform: translate(-50%, -0.75rem);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&[data-placement="left"] {
|
|
117
|
+
--tooltip-slide-to: translate(-0.25rem, -50%);
|
|
118
|
+
transform: translate(0.75rem, -50%);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&[data-placement="right"] {
|
|
122
|
+
--tooltip-slide-to: translate(0.25rem, -50%);
|
|
123
|
+
transform: translate(-0.75rem, -50%);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
[aria-describedby]:hover + [role="tooltip"],
|
|
128
|
+
[aria-describedby]:focus + [role="tooltip"] {
|
|
129
|
+
animation-name: tooltip-slide;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@keyframes tooltip-slide {
|
|
134
|
+
to {
|
|
135
|
+
transform: var(--tooltip-slide-to);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table
|
|
3
|
+
*/
|
|
4
|
+
:where(table) {
|
|
5
|
+
width: 100%;
|
|
6
|
+
border-collapse: collapse;
|
|
7
|
+
border-spacing: 0;
|
|
8
|
+
text-indent: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
th,
|
|
12
|
+
td {
|
|
13
|
+
padding: calc(var(--spacing) / 2) var(--spacing);
|
|
14
|
+
border-bottom: var(--border-width) solid var(--table-border-color);
|
|
15
|
+
background-color: var(--color-background);
|
|
16
|
+
color: var(--color-text);
|
|
17
|
+
font-weight: var(--font-weight);
|
|
18
|
+
text-align: left;
|
|
19
|
+
text-align: start;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
tfoot {
|
|
23
|
+
& th,
|
|
24
|
+
& td {
|
|
25
|
+
border-top: var(--border-width) solid var(--table-border-color);
|
|
26
|
+
border-bottom: 0;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checkboxes, Radios and Switches
|
|
3
|
+
*/
|
|
4
|
+
label:has([type=checkbox], [type=radio]) {
|
|
5
|
+
width: fit-content;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[type=checkbox],
|
|
10
|
+
[type=radio] {
|
|
11
|
+
-webkit-appearance: none;
|
|
12
|
+
-moz-appearance: none;
|
|
13
|
+
appearance: none;
|
|
14
|
+
width: 1.25em;
|
|
15
|
+
height: 1.25em;
|
|
16
|
+
margin-top: -0.125em;
|
|
17
|
+
margin-inline-end: 0.5em;
|
|
18
|
+
border-width: var(--border-width);
|
|
19
|
+
vertical-align: middle;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
|
|
22
|
+
&::-ms-check {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:checked, &:checked:active, &:checked:focus {
|
|
27
|
+
--color-background: var(--color-primary-bg);
|
|
28
|
+
--border-color: var(--color-primary-border);
|
|
29
|
+
background-image: var(--icon-checkbox);
|
|
30
|
+
background-position: center;
|
|
31
|
+
background-size: 0.75em auto;
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
& ~ label {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
margin-bottom: 0;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
|
|
40
|
+
&:not(:last-of-type) {
|
|
41
|
+
margin-inline-end: 1em;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
[type=checkbox] {
|
|
47
|
+
&:indeterminate {
|
|
48
|
+
--color-background: var(--color-primary-bg);
|
|
49
|
+
--border-color: var(--color-primary-border);
|
|
50
|
+
background-image: var(--icon-minus);
|
|
51
|
+
background-position: center;
|
|
52
|
+
background-size: 0.75em auto;
|
|
53
|
+
background-repeat: no-repeat;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[type=radio] {
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
|
|
60
|
+
&:checked, &:checked:active, &:checked:focus {
|
|
61
|
+
--color-background: var(--color-primary-inverse);
|
|
62
|
+
border-width: 0.35em;
|
|
63
|
+
background-image: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[type=checkbox][role=switch] {
|
|
68
|
+
--color-background: var(--switch-bg);
|
|
69
|
+
--color-text: var(--switch-thumb-color);
|
|
70
|
+
width: 2.25em;
|
|
71
|
+
height: 1.25em;
|
|
72
|
+
border: var(--border-width) solid var(--border-color);
|
|
73
|
+
border-radius: 1.25em;
|
|
74
|
+
background-color: var(--color-background);
|
|
75
|
+
line-height: 1.25em;
|
|
76
|
+
|
|
77
|
+
&:not([aria-invalid]) {
|
|
78
|
+
--border-color: var(--switch-bg);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:before {
|
|
82
|
+
display: block;
|
|
83
|
+
aspect-ratio: 1;
|
|
84
|
+
height: 100%;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
background-color: var(--color-text);
|
|
87
|
+
box-shadow: var(--switch-thumb-shadow);
|
|
88
|
+
content: "";
|
|
89
|
+
transition: margin 0.1s ease-in-out;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:focus {
|
|
93
|
+
--color-background: var(--switch-bg);
|
|
94
|
+
--border-color: var(--switch-bg);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&:checked {
|
|
98
|
+
--color-background: var(--switch-checked-bg);
|
|
99
|
+
--border-color: var(--switch-checked-bg);
|
|
100
|
+
background-image: none;
|
|
101
|
+
|
|
102
|
+
&::before {
|
|
103
|
+
margin-inline-start: calc(2.25em - 1.25em);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[disabled] {
|
|
108
|
+
--color-background: var(--border-color);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[type=checkbox][aria-invalid=false]:checked, [type=checkbox][aria-invalid=false]:checked:active, [type=checkbox][aria-invalid=false]:checked:focus,
|
|
113
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked,
|
|
114
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked:active,
|
|
115
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked:focus {
|
|
116
|
+
--color-background: var(--form-valid-border);
|
|
117
|
+
}
|
|
118
|
+
[type=checkbox]:checked[aria-invalid=true], [type=checkbox]:checked:active[aria-invalid=true], [type=checkbox]:checked:focus[aria-invalid=true],
|
|
119
|
+
[type=checkbox][role=switch]:checked[aria-invalid=true],
|
|
120
|
+
[type=checkbox][role=switch]:checked:active[aria-invalid=true],
|
|
121
|
+
[type=checkbox][role=switch]:checked:focus[aria-invalid=true] {
|
|
122
|
+
--color-background: var(--form-invalid-border);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[type=checkbox][aria-invalid=false]:checked, [type=checkbox][aria-invalid=false]:checked:active, [type=checkbox][aria-invalid=false]:checked:focus,
|
|
126
|
+
[type=radio][aria-invalid=false]:checked,
|
|
127
|
+
[type=radio][aria-invalid=false]:checked:active,
|
|
128
|
+
[type=radio][aria-invalid=false]:checked:focus,
|
|
129
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked,
|
|
130
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked:active,
|
|
131
|
+
[type=checkbox][role=switch][aria-invalid=false]:checked:focus {
|
|
132
|
+
--border-color: var(--form-valid-border);
|
|
133
|
+
}
|
|
134
|
+
[type=checkbox]:checked[aria-invalid=true], [type=checkbox]:checked:active[aria-invalid=true], [type=checkbox]:checked:focus[aria-invalid=true],
|
|
135
|
+
[type=radio]:checked[aria-invalid=true],
|
|
136
|
+
[type=radio]:checked:active[aria-invalid=true],
|
|
137
|
+
[type=radio]:checked:focus[aria-invalid=true],
|
|
138
|
+
[type=checkbox][role=switch]:checked[aria-invalid=true],
|
|
139
|
+
[type=checkbox][role=switch]:checked:active[aria-invalid=true],
|
|
140
|
+
[type=checkbox][role=switch]:checked:focus[aria-invalid=true] {
|
|
141
|
+
--border-color: var(--form-invalid-border);
|
|
142
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type color
|
|
3
|
+
*/
|
|
4
|
+
[type=color] {
|
|
5
|
+
&::-webkit-color-swatch-wrapper {
|
|
6
|
+
padding: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
&::-moz-focus-inner {
|
|
10
|
+
padding: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&::-webkit-color-swatch {
|
|
14
|
+
border: 0;
|
|
15
|
+
border-radius: calc(var(--border-radius) * 0.5);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-moz-color-swatch {
|
|
19
|
+
border: 0;
|
|
20
|
+
border-radius: calc(var(--border-radius) * 0.5);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type datetime
|
|
3
|
+
*/
|
|
4
|
+
:where(input:not([type=checkbox], [type=radio], [type=range], [type=file]):is([type=date], [type=datetime-local], [type=month], [type=time], [type=week])) {
|
|
5
|
+
--icon-position: 0.75rem;
|
|
6
|
+
--icon-width: 1rem;
|
|
7
|
+
padding-right: calc(var(--icon-width) + var(--icon-position));
|
|
8
|
+
background-image: var(--icon-date);
|
|
9
|
+
background-position: center right var(--icon-position);
|
|
10
|
+
background-size: var(--icon-width) auto;
|
|
11
|
+
background-repeat: no-repeat;
|
|
12
|
+
}
|
|
13
|
+
:where(input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=time]) {
|
|
14
|
+
background-image: var(--icon-time);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
[type=date]::-webkit-calendar-picker-indicator,
|
|
18
|
+
[type=datetime-local]::-webkit-calendar-picker-indicator,
|
|
19
|
+
[type=month]::-webkit-calendar-picker-indicator,
|
|
20
|
+
[type=time]::-webkit-calendar-picker-indicator,
|
|
21
|
+
[type=week]::-webkit-calendar-picker-indicator {
|
|
22
|
+
width: var(--icon-width);
|
|
23
|
+
margin-right: calc(var(--icon-width) * -1);
|
|
24
|
+
margin-left: var(--icon-position);
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@-moz-document url-prefix() {
|
|
29
|
+
[type=date],
|
|
30
|
+
[type=datetime-local],
|
|
31
|
+
[type=month],
|
|
32
|
+
[type=time],
|
|
33
|
+
[type=week] {
|
|
34
|
+
padding-right: var(--form-element-spacing-horizontal);
|
|
35
|
+
background-image: none;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
[dir=rtl] :is([type=date], [type=datetime-local], [type=month], [type=time], [type=week]) {
|
|
39
|
+
text-align: right;
|
|
40
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type file
|
|
3
|
+
*/
|
|
4
|
+
[type=file] {
|
|
5
|
+
--color-text: var(--color-text-muted);
|
|
6
|
+
margin-left: calc(var(--outline-width) * -1);
|
|
7
|
+
padding: calc(var(--form-element-spacing-vertical) * 0.5) 0;
|
|
8
|
+
padding-left: var(--outline-width);
|
|
9
|
+
border: 0;
|
|
10
|
+
border-radius: 0;
|
|
11
|
+
background: none;
|
|
12
|
+
|
|
13
|
+
&::file-selector-button {
|
|
14
|
+
margin-right: calc(var(--spacing) / 2);
|
|
15
|
+
padding: calc(var(--form-element-spacing-vertical) * 0.5) var(--form-element-spacing-horizontal);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:is(:hover, :active, :focus)::file-selector-button {
|
|
19
|
+
--color-background: var(--color-secondary-hover-bg);
|
|
20
|
+
--border-color: var(--color-secondary-hover-border);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:focus::file-selector-button {
|
|
24
|
+
--shadow-lg: var(--button-shadow-hover, 0 0 0 rgba(0, 0, 0, 0)), 0 0 0 var(--outline-width) var(--color-secondary-focus);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type range
|
|
3
|
+
*/
|
|
4
|
+
[type=range] {
|
|
5
|
+
-webkit-appearance: none;
|
|
6
|
+
-moz-appearance: none;
|
|
7
|
+
appearance: none;
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 1.25rem;
|
|
10
|
+
background: none;
|
|
11
|
+
|
|
12
|
+
&::-webkit-slider-runnable-track {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 0.375rem;
|
|
15
|
+
border-radius: var(--border-radius);
|
|
16
|
+
background-color: var(--range-border-color);
|
|
17
|
+
transition: background-color var(--transition), box-shadow var(--transition);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&::-moz-range-track {
|
|
21
|
+
width: 100%;
|
|
22
|
+
height: 0.375rem;
|
|
23
|
+
border-radius: var(--border-radius);
|
|
24
|
+
background-color: var(--range-border-color);
|
|
25
|
+
transition: background-color var(--transition), box-shadow var(--transition);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::-ms-track {
|
|
29
|
+
width: 100%;
|
|
30
|
+
height: 0.375rem;
|
|
31
|
+
border-radius: var(--border-radius);
|
|
32
|
+
background-color: var(--range-border-color);
|
|
33
|
+
transition: background-color var(--transition), box-shadow var(--transition);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&::-webkit-slider-thumb {
|
|
37
|
+
-webkit-appearance: none;
|
|
38
|
+
width: 1.25rem;
|
|
39
|
+
height: 1.25rem;
|
|
40
|
+
margin-top: -0.4375rem;
|
|
41
|
+
border: 2px solid var(--range-thumb-border);
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
background-color: var(--range-thumb-color);
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
transition: background-color var(--transition), transform var(--transition);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&::-moz-range-thumb {
|
|
49
|
+
-webkit-appearance: none;
|
|
50
|
+
width: 1.25rem;
|
|
51
|
+
height: 1.25rem;
|
|
52
|
+
margin-top: -0.4375rem;
|
|
53
|
+
border: 2px solid var(--range-thumb-border);
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
background-color: var(--range-thumb-color);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
transition: background-color var(--transition), transform var(--transition);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&::-ms-thumb {
|
|
61
|
+
-webkit-appearance: none;
|
|
62
|
+
width: 1.25rem;
|
|
63
|
+
height: 1.25rem;
|
|
64
|
+
margin-top: -0.4375rem;
|
|
65
|
+
border: 2px solid var(--range-thumb-border);
|
|
66
|
+
border-radius: 50%;
|
|
67
|
+
background-color: var(--range-thumb-color);
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
transition: background-color var(--transition), transform var(--transition);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:active, &:focus-within {
|
|
73
|
+
--range-border-color: var(--range-active-border);
|
|
74
|
+
--range-thumb-color: var(--range-thumb-active);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:active {
|
|
78
|
+
&::-webkit-slider-thumb {
|
|
79
|
+
transform: scale(1.25);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&::-moz-range-thumb {
|
|
83
|
+
transform: scale(1.25);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&::-ms-thumb {
|
|
87
|
+
transform: scale(1.25);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input type search
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
|
|
6
|
+
padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
|
|
7
|
+
background-image: var(--icon-search);
|
|
8
|
+
background-position: left calc(var(--form-element-spacing-horizontal) + 0.125rem) center;
|
|
9
|
+
background-size: 1rem auto;
|
|
10
|
+
background-repeat: no-repeat;
|
|
11
|
+
|
|
12
|
+
&[aria-invalid] {
|
|
13
|
+
padding-inline-start: calc(var(--form-element-spacing-horizontal) + 1.75rem);
|
|
14
|
+
/* Using calc with var to workaround LightningCSS minification bug with 3-value syntax */
|
|
15
|
+
background-position: left calc(var(--form-element-spacing-horizontal) * 0 + 1.125rem) center, right calc(var(--form-element-spacing-horizontal) * 0 + 0.75rem) center;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[aria-invalid=false] {
|
|
19
|
+
background-image: var(--icon-search), var(--icon-valid);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[aria-invalid=true] {
|
|
23
|
+
background-image: var(--icon-search), var(--icon-invalid);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[dir=rtl] input:not([type=checkbox], [type=radio], [type=range], [type=file])[type=search] {
|
|
28
|
+
background-position: right calc(var(--form-element-spacing-horizontal) * 0 + 1.125rem) center;
|
|
29
|
+
|
|
30
|
+
&[aria-invalid] {
|
|
31
|
+
/* Using calc with var to workaround LightningCSS minification bug with 3-value syntax */
|
|
32
|
+
background-position: right calc(var(--form-element-spacing-horizontal) * 0 + 1.125rem) center, left calc(var(--form-element-spacing-horizontal) * 0 + 0.75rem) center;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography
|
|
3
|
+
*/
|
|
4
|
+
b,
|
|
5
|
+
strong {
|
|
6
|
+
font-weight: bolder;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
sub,
|
|
10
|
+
sup {
|
|
11
|
+
position: relative;
|
|
12
|
+
font-size: 0.75em;
|
|
13
|
+
line-height: 0;
|
|
14
|
+
vertical-align: baseline;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
sub {
|
|
18
|
+
bottom: -0.25em;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
sup {
|
|
22
|
+
top: -0.5em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
address,
|
|
26
|
+
blockquote,
|
|
27
|
+
dl,
|
|
28
|
+
ol,
|
|
29
|
+
p,
|
|
30
|
+
pre,
|
|
31
|
+
table,
|
|
32
|
+
ul {
|
|
33
|
+
margin-top: 0;
|
|
34
|
+
margin-bottom: var(--typography-spacing-vertical);
|
|
35
|
+
color: var(--color-text);
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: var(--font-weight);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
h1,
|
|
41
|
+
h2,
|
|
42
|
+
h3,
|
|
43
|
+
h4,
|
|
44
|
+
h5,
|
|
45
|
+
h6 {
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
margin-bottom: var(--typography-spacing-vertical);
|
|
48
|
+
color: var(--color-text);
|
|
49
|
+
font-weight: var(--font-weight);
|
|
50
|
+
font-size: var(--font-size);
|
|
51
|
+
line-height: var(--line-height);
|
|
52
|
+
font-family: var(--font-family);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
h1 { --color-text: var(--color-h1); }
|
|
56
|
+
h2 { --color-text: var(--color-h2); }
|
|
57
|
+
h3 { --color-text: var(--color-h3); }
|
|
58
|
+
h4 { --color-text: var(--color-h4); }
|
|
59
|
+
h5 { --color-text: var(--color-h5); }
|
|
60
|
+
h6 { --color-text: var(--color-h6); }
|
|
61
|
+
|
|
62
|
+
:where(article, address, blockquote, dl, figure, form, ol, p, pre, table, ul, hr) ~ :is(h1, h2, h3, h4, h5, h6) {
|
|
63
|
+
margin-top: var(--typography-spacing-top);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
p {
|
|
67
|
+
margin-bottom: var(--typography-spacing-vertical);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
hgroup {
|
|
71
|
+
margin-bottom: var(--typography-spacing-vertical);
|
|
72
|
+
|
|
73
|
+
& > * {
|
|
74
|
+
margin-top: 0;
|
|
75
|
+
margin-bottom: 0;
|
|
76
|
+
|
|
77
|
+
&:not(:first-child):last-child {
|
|
78
|
+
--color-text: var(--color-text-muted);
|
|
79
|
+
--font-weight: unset;
|
|
80
|
+
font-size: 1rem;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:where(ol, ul) li {
|
|
86
|
+
margin-bottom: calc(var(--typography-spacing-vertical) * 0.25);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:where(dl, ol, ul) :where(dl, ol, ul) {
|
|
90
|
+
margin: 0;
|
|
91
|
+
margin-top: calc(var(--typography-spacing-vertical) * 0.25);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
ul li {
|
|
95
|
+
list-style: square;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
mark {
|
|
99
|
+
padding: 0.125rem 0.25rem;
|
|
100
|
+
background-color: var(--color-mark-bg);
|
|
101
|
+
color: var(--color-mark-text);
|
|
102
|
+
vertical-align: baseline;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
blockquote {
|
|
106
|
+
display: block;
|
|
107
|
+
margin: var(--typography-spacing-vertical) 0;
|
|
108
|
+
padding: var(--spacing);
|
|
109
|
+
border-right: none;
|
|
110
|
+
border-left: 0.25rem solid var(--blockquote-border-color);
|
|
111
|
+
border-inline-start: 0.25rem solid var(--blockquote-border-color);
|
|
112
|
+
border-inline-end: none;
|
|
113
|
+
|
|
114
|
+
& footer {
|
|
115
|
+
margin-top: calc(var(--typography-spacing-vertical) * 0.5);
|
|
116
|
+
color: var(--blockquote-footer-color);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
abbr[title] {
|
|
121
|
+
border-bottom: 1px dotted;
|
|
122
|
+
text-decoration: none;
|
|
123
|
+
cursor: help;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
ins {
|
|
127
|
+
color: rgb(var(--success-rgb));
|
|
128
|
+
text-decoration: none;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
del {
|
|
132
|
+
color: rgb(var(--danger-rgb));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
::selection {
|
|
136
|
+
background-color: var(--color-text-selection);
|
|
137
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Semanticus CSS Semantics
|
|
3
|
+
* Variables + Normalize + Semantic HTML components
|
|
4
|
+
* Perfect for semantic-first development without utility classes
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/* Variables */
|
|
8
|
+
@import '../_variables.css';
|
|
9
|
+
|
|
10
|
+
/* Normalize */
|
|
11
|
+
@import '../_normalize.css';
|
|
12
|
+
|
|
13
|
+
/* Semantic Components */
|
|
14
|
+
@import "./modules.css";
|