@excom/valence 0.1.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/.rush/temp/chunked-rush-logs/valence.apply-exports.chunks.jsonl +1 -0
- package/.rush/temp/chunked-rush-logs/valence.build_package-metas.chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/all.log +1 -0
- package/.rush/temp/operation/apply-exports/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/apply-exports/state.json +3 -0
- package/.rush/temp/operation/build_package-metas/all.log +1 -0
- package/.rush/temp/operation/build_package-metas/log-chunks.jsonl +1 -0
- package/.rush/temp/operation/build_package-metas/state.json +3 -0
- package/.rush/temp/shrinkwrap-deps.json +3 -0
- package/basic-vars.css +395 -0
- package/basic.css +3 -0
- package/package.json +35 -0
- package/rush-logs/valence.apply-exports.cache.log +1 -0
- package/rush-logs/valence.apply-exports.log +1 -0
- package/rush-logs/valence.build_package-metas.cache.log +1 -0
- package/rush-logs/valence.build_package-metas.log +1 -0
- package/src/aliases.css +125 -0
- package/src/apply.css +54 -0
- package/src/components/accordion.css +134 -0
- package/src/components/card.css +54 -0
- package/src/components/dropdown.css +235 -0
- package/src/components/group.css +119 -0
- package/src/components/loading.css +41 -0
- package/src/components/modal.css +172 -0
- package/src/components/nav.css +198 -0
- package/src/components/popover.css +83 -0
- package/src/components/progress.css +88 -0
- package/src/components/tooltip.css +209 -0
- package/src/content/button.css +184 -0
- package/src/content/code.css +68 -0
- package/src/content/embedded.css +49 -0
- package/src/content/figure.css +17 -0
- package/src/content/link.css +79 -0
- package/src/content/misc.css +29 -0
- package/src/content/table.css +144 -0
- package/src/content/typography.css +218 -0
- package/src/forms/basics.css +415 -0
- package/src/forms/checkbox-radio-switch.css +163 -0
- package/src/forms/input-color.css +27 -0
- package/src/forms/input-date.css +66 -0
- package/src/forms/input-file.css +37 -0
- package/src/forms/input-range.css +109 -0
- package/src/forms/input-search.css +52 -0
- package/src/layout/abstract.css +9 -0
- package/src/layout/container.css +43 -0
- package/src/layout/document.css +45 -0
- package/src/layout/grid.css +24 -0
- package/src/layout/landmarks.css +54 -0
- package/src/layout/overflow-auto.css +33 -0
- package/src/layout/section.css +10 -0
- package/src/mixins.basic.css +308 -0
- package/src/mixins.default.css +49 -0
- package/src/util.default.css +55 -0
- package/src/utilities/accessibility.css +69 -0
- package/src/utilities/opt-outs.css +32 -0
- package/support/demos/accordion.html +18 -0
- package/support/demos/aliases.html +6 -0
- package/support/demos/button.html +14 -0
- package/support/demos/card.html +8 -0
- package/support/demos/checkboxes.html +22 -0
- package/support/demos/code.html +6 -0
- package/support/demos/container.html +15 -0
- package/support/demos/css-variables.html +14 -0
- package/support/demos/dropdown.html +17 -0
- package/support/demos/embedded.html +7 -0
- package/support/demos/forms.html +18 -0
- package/support/demos/grid.html +13 -0
- package/support/demos/group.html +14 -0
- package/support/demos/input.html +11 -0
- package/support/demos/landmarks.html +20 -0
- package/support/demos/link.html +7 -0
- package/support/demos/loading.html +5 -0
- package/support/demos/modal.html +18 -0
- package/support/demos/nav.html +39 -0
- package/support/demos/opt-outs.html +8 -0
- package/support/demos/overflow-auto.html +12 -0
- package/support/demos/popover.html +6 -0
- package/support/demos/progress.html +4 -0
- package/support/demos/range.html +6 -0
- package/support/demos/schemes.html +12 -0
- package/support/demos/select.html +13 -0
- package/support/demos/table.html +18 -0
- package/support/demos/textarea.html +7 -0
- package/support/demos/tooltip.html +7 -0
- package/support/demos/typography.html +18 -0
- package/support/docs/ACCORDION.md +26 -0
- package/support/docs/ALIASES.md +35 -0
- package/support/docs/BUTTON.md +28 -0
- package/support/docs/CARD.md +23 -0
- package/support/docs/CHECKBOXES.md +21 -0
- package/support/docs/CODE.md +18 -0
- package/support/docs/CONTAINER.md +24 -0
- package/support/docs/CSS_VARIABLES.md +44 -0
- package/support/docs/DROPDOWN.md +22 -0
- package/support/docs/EMBEDDED.md +18 -0
- package/support/docs/FORMS.md +44 -0
- package/support/docs/GRID.md +19 -0
- package/support/docs/GROUP.md +24 -0
- package/support/docs/INPUT.md +26 -0
- package/support/docs/LANDMARKS.md +25 -0
- package/support/docs/LINK.md +23 -0
- package/support/docs/LOADING.md +15 -0
- package/support/docs/MODAL.md +36 -0
- package/support/docs/NAV.md +25 -0
- package/support/docs/OPT_OUTS.md +31 -0
- package/support/docs/OVERFLOW_AUTO.md +15 -0
- package/support/docs/POPOVER.md +19 -0
- package/support/docs/PROGRESS.md +14 -0
- package/support/docs/RANGE.md +16 -0
- package/support/docs/README.md +70 -0
- package/support/docs/SCHEMES.md +20 -0
- package/support/docs/SELECT.md +18 -0
- package/support/docs/TABLE.md +29 -0
- package/support/docs/TEXTAREA.md +16 -0
- package/support/docs/THEMES.md +39 -0
- package/support/docs/TOOLTIP.md +18 -0
- package/support/docs/TYPOGRAPHY.md +29 -0
- package/support/docs-sections.json +45 -0
- package/support/flat-vars.css +197 -0
- package/support/flat.css +4 -0
- package/support/package-meta.json +1820 -0
- package/support/paper-vars.css +203 -0
- package/support/paper.css +4 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Table
|
|
3
|
+
*
|
|
4
|
+
* Reboot from normalize.css v8.0.1 (MIT) and sanitize.css v13.0.0 (CC0).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@define-mixin module-table $table: :--table, $thead: :--thead, $tbody: :--tbody,
|
|
8
|
+
$tfoot: :--tfoot, $tr: :--tr, $th: :--th, $td: :--td, $th--sort: :--th--sort,
|
|
9
|
+
$th--sort-asc: :--th--sort-asc, $th--sort-desc: :--th--sort-desc {
|
|
10
|
+
/* 1. Collapse border-spacing (opinionated)
|
|
11
|
+
2. Drop table text-indent in Chrome, Edge, Safari */
|
|
12
|
+
:where($(table)) {
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-collapse: collapse; /* 1 */
|
|
15
|
+
border-spacing: 0;
|
|
16
|
+
text-indent: 0; /* 2 */
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
$(table) {
|
|
20
|
+
display: table;
|
|
21
|
+
margin-bottom: var(--v-typography-spacing-vertical);
|
|
22
|
+
|
|
23
|
+
$(thead) {
|
|
24
|
+
display: table-header-group;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
$(th) {
|
|
28
|
+
&:is($(th--sort)) {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
user-select: none;
|
|
31
|
+
&::after {
|
|
32
|
+
white-space: pre-wrap;
|
|
33
|
+
content: "▲\A▼";
|
|
34
|
+
font-size: 0.6em;
|
|
35
|
+
opacity: 0.5;
|
|
36
|
+
margin-left: calc(var(--v-spacing) * 0.5);
|
|
37
|
+
display: inline-block;
|
|
38
|
+
vertical-align: text-bottom;
|
|
39
|
+
text-align: center;
|
|
40
|
+
width: 20px;
|
|
41
|
+
line-height: 1em;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&:is($(th--sort-asc))::after {
|
|
45
|
+
content: "▲";
|
|
46
|
+
font-size: 0.85em;
|
|
47
|
+
vertical-align: baseline;
|
|
48
|
+
}
|
|
49
|
+
&:is($(th--sort-desc))::after {
|
|
50
|
+
content: "▼";
|
|
51
|
+
font-size: 0.85em;
|
|
52
|
+
vertical-align: baseline;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
$(tbody) {
|
|
57
|
+
display: table-row-group;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
$(tfoot) {
|
|
61
|
+
display: table-footer-group;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
$(tr) {
|
|
65
|
+
display: table-row;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
$(th),
|
|
69
|
+
$(td) {
|
|
70
|
+
display: table-cell;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Corner cell radii */
|
|
74
|
+
$(tr):first-of-type:not(:is($(thead) ~ *, $(tbody) ~ *) > $(tr)) {
|
|
75
|
+
> :first-child {
|
|
76
|
+
border-top-left-radius: var(--v-border-radius);
|
|
77
|
+
}
|
|
78
|
+
> :last-child {
|
|
79
|
+
border-top-right-radius: var(--v-border-radius);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
$(tr):last-of-type:not(*:has(~ $(tfoot), ~ $(tbody)) > $(tr)) {
|
|
83
|
+
> * {
|
|
84
|
+
border-bottom-width: 0;
|
|
85
|
+
}
|
|
86
|
+
> :first-child {
|
|
87
|
+
border-bottom-left-radius: var(--v-border-radius);
|
|
88
|
+
}
|
|
89
|
+
> :last-child {
|
|
90
|
+
border-bottom-right-radius: var(--v-border-radius);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/* Cells */
|
|
94
|
+
$(th),
|
|
95
|
+
$(td) {
|
|
96
|
+
padding: calc(var(--v-spacing) / 2) var(--v-spacing);
|
|
97
|
+
border-bottom: var(--v-border-width) solid var(--v-table-border-color);
|
|
98
|
+
background-color: var(--v-background-color);
|
|
99
|
+
color: var(--v-color);
|
|
100
|
+
font-weight: var(--v-font-weight);
|
|
101
|
+
text-align: left;
|
|
102
|
+
text-align: start;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Header */
|
|
106
|
+
$(thead) {
|
|
107
|
+
$(th),
|
|
108
|
+
$(td) {
|
|
109
|
+
border-bottom: var(--v-border-width) solid var(--v-table-border-color);
|
|
110
|
+
border-top: 0;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Sticky table header row.
|
|
114
|
+
* @cssclass sticky
|
|
115
|
+
*/
|
|
116
|
+
&.sticky $(th) {
|
|
117
|
+
position: sticky;
|
|
118
|
+
z-index: 2;
|
|
119
|
+
top: var(--v-table-sticky-top);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* Footer */
|
|
124
|
+
$(tfoot) {
|
|
125
|
+
$(th),
|
|
126
|
+
$(td) {
|
|
127
|
+
border-top: var(--v-border-width) solid var(--v-table-border-color);
|
|
128
|
+
border-bottom: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Alternating row background.
|
|
134
|
+
* @cssclass striped
|
|
135
|
+
*/
|
|
136
|
+
/* Striped */
|
|
137
|
+
&.striped {
|
|
138
|
+
$(tbody) $(tr):nth-child(odd) $(th),
|
|
139
|
+
$(tbody) $(tr):nth-child(odd) $(td) {
|
|
140
|
+
background-color: var(--v-table-row-stripped-background-color);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typography
|
|
3
|
+
*
|
|
4
|
+
* Reboot from normalize.css v8.0.1 (MIT) and sanitize.css v13.0.0 (CC0).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
@define-mixin module-typography {
|
|
8
|
+
/* Inline text primitives as bare tags (custom elements rarely emit these) */
|
|
9
|
+
|
|
10
|
+
/* Correct font-weight in Chrome, Edge, Safari */
|
|
11
|
+
:--b,
|
|
12
|
+
:--strong {
|
|
13
|
+
display: inline;
|
|
14
|
+
font-weight: bolder;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Keep `sub` / `sup` from changing line-height */
|
|
18
|
+
:--sub,
|
|
19
|
+
:--sup {
|
|
20
|
+
display: inline;
|
|
21
|
+
position: relative;
|
|
22
|
+
font-size: var(--v-font-size);
|
|
23
|
+
line-height: 0;
|
|
24
|
+
vertical-align: baseline;
|
|
25
|
+
}
|
|
26
|
+
:--sub {
|
|
27
|
+
bottom: -0.25em;
|
|
28
|
+
}
|
|
29
|
+
:--sup {
|
|
30
|
+
top: -0.5em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:--small {
|
|
34
|
+
display: inline;
|
|
35
|
+
font-size: var(--v-font-size);
|
|
36
|
+
&:--note {
|
|
37
|
+
@mixin util-small-note;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:--address,
|
|
42
|
+
:--blockquote,
|
|
43
|
+
:--dl,
|
|
44
|
+
:--form,
|
|
45
|
+
:--list,
|
|
46
|
+
:--p,
|
|
47
|
+
:--pre {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:--address,
|
|
52
|
+
:--blockquote,
|
|
53
|
+
:--dl,
|
|
54
|
+
:--list,
|
|
55
|
+
:--p,
|
|
56
|
+
:--pre,
|
|
57
|
+
:--table {
|
|
58
|
+
margin-top: 0;
|
|
59
|
+
margin-bottom: var(--v-typography-spacing-vertical);
|
|
60
|
+
color: var(--v-color);
|
|
61
|
+
font-style: normal;
|
|
62
|
+
font-weight: var(--v-font-weight);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Headings */
|
|
66
|
+
:--heading {
|
|
67
|
+
display: block;
|
|
68
|
+
margin-top: 0;
|
|
69
|
+
margin-bottom: var(--v-typography-spacing-vertical);
|
|
70
|
+
color: var(--v-color);
|
|
71
|
+
font-weight: var(--v-font-weight);
|
|
72
|
+
font-size: var(--v-font-size);
|
|
73
|
+
line-height: var(--v-line-height);
|
|
74
|
+
font-family: var(--v-font-family);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
:--h1 {
|
|
78
|
+
--v-color: var(--v-h1-color);
|
|
79
|
+
}
|
|
80
|
+
:--h2 {
|
|
81
|
+
--v-color: var(--v-h2-color);
|
|
82
|
+
}
|
|
83
|
+
:--h3 {
|
|
84
|
+
--v-color: var(--v-h3-color);
|
|
85
|
+
}
|
|
86
|
+
:--h4 {
|
|
87
|
+
--v-color: var(--v-h4-color);
|
|
88
|
+
}
|
|
89
|
+
:--h5 {
|
|
90
|
+
--v-color: var(--v-h5-color);
|
|
91
|
+
}
|
|
92
|
+
:--h6 {
|
|
93
|
+
--v-color: var(--v-h6-color);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Margin-top for headings after a block */
|
|
97
|
+
:where(
|
|
98
|
+
:--article,
|
|
99
|
+
:--address,
|
|
100
|
+
:--blockquote,
|
|
101
|
+
:--dl,
|
|
102
|
+
:--figure,
|
|
103
|
+
:--form,
|
|
104
|
+
:--list,
|
|
105
|
+
:--p,
|
|
106
|
+
:--pre,
|
|
107
|
+
:--table
|
|
108
|
+
) {
|
|
109
|
+
~ :--heading {
|
|
110
|
+
margin-top: var(--v-typography-spacing-top);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Paragraphs */
|
|
115
|
+
:--p {
|
|
116
|
+
margin-bottom: var(--v-typography-spacing-vertical);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* Heading group */
|
|
120
|
+
:--hgroup {
|
|
121
|
+
display: block;
|
|
122
|
+
margin-bottom: var(--v-typography-spacing-vertical);
|
|
123
|
+
|
|
124
|
+
> * {
|
|
125
|
+
margin-top: 0;
|
|
126
|
+
margin-bottom: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
> *:not(:first-child):last-child {
|
|
130
|
+
--v-color: var(--v-muted-color);
|
|
131
|
+
--v-font-weight: unset;
|
|
132
|
+
font-size: 1rem;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Lists */
|
|
137
|
+
:--li {
|
|
138
|
+
display: list-item;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:where(:--list) {
|
|
142
|
+
:--li {
|
|
143
|
+
margin-bottom: calc(var(--v-typography-spacing-vertical) * 0.25);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Nested-list spacing
|
|
148
|
+
1. Drop nested-list margin in Chrome, Edge, IE, Safari */
|
|
149
|
+
:where(:--dl, :--list) :where(:--dl, :--list) {
|
|
150
|
+
margin: 0; /* 1 */
|
|
151
|
+
margin-top: calc(var(--v-typography-spacing-vertical) * 0.25);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* Tag-specific list aliases (`.tag-ul` / `.tag-ol` aren't in `:--list`) */
|
|
155
|
+
:--ul,
|
|
156
|
+
:--ol {
|
|
157
|
+
display: block;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/* Square markers only on `ul`-flavored lists (not generic `:--list`). */
|
|
161
|
+
:--ul :--li {
|
|
162
|
+
list-style: square;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Highlighted text */
|
|
166
|
+
:--mark {
|
|
167
|
+
display: inline;
|
|
168
|
+
padding: 0.125rem 0.25rem;
|
|
169
|
+
background-color: var(--v-mark-background-color);
|
|
170
|
+
color: var(--v-mark-color);
|
|
171
|
+
vertical-align: baseline;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/* Blockquote */
|
|
175
|
+
:--blockquote {
|
|
176
|
+
margin: var(--v-typography-spacing-vertical) 0;
|
|
177
|
+
padding: var(--v-spacing);
|
|
178
|
+
border-right: none;
|
|
179
|
+
border-left: 0.25rem solid var(--v-blockquote-border-color);
|
|
180
|
+
border-inline-start: 0.25rem solid var(--v-blockquote-border-color);
|
|
181
|
+
border-inline-end: none;
|
|
182
|
+
|
|
183
|
+
:--footer {
|
|
184
|
+
margin-top: calc(var(--v-typography-spacing-vertical) * 0.5);
|
|
185
|
+
color: var(--v-blockquote-footer-color);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* Abbreviations
|
|
190
|
+
1. Drop underline in Chrome, Edge, IE, Opera, Safari */
|
|
191
|
+
:--abbr {
|
|
192
|
+
display: inline;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
:--abbr[title] {
|
|
196
|
+
border-bottom: 1px dotted;
|
|
197
|
+
text-decoration: none; /* 1 */
|
|
198
|
+
cursor: help;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* Ins */
|
|
202
|
+
:--ins {
|
|
203
|
+
display: inline;
|
|
204
|
+
color: var(--v-ins-color);
|
|
205
|
+
text-decoration: none;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* Del */
|
|
209
|
+
:--del {
|
|
210
|
+
display: inline;
|
|
211
|
+
color: var(--v-del-color);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/* Selection */
|
|
215
|
+
::selection {
|
|
216
|
+
background-color: var(--v-text-selection-color);
|
|
217
|
+
}
|
|
218
|
+
}
|