@rcarls/rc-theme-win31 0.0.0 → 0.7.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/CHANGELOG.md +185 -0
- package/DESIGN.md +195 -0
- package/README.md +157 -5
- package/bridge.css +257 -0
- package/components/accordion.css +21 -0
- package/components/adaptive-menu.css +108 -0
- package/components/app-bar.css +66 -0
- package/components/bottom-sheet.css +41 -0
- package/components/button.css +74 -0
- package/components/card.css +50 -0
- package/components/carousel.css +59 -0
- package/components/chip-group.css +33 -0
- package/components/chip.css +56 -0
- package/components/combobox.css +83 -0
- package/components/dialog.css +156 -0
- package/components/disclosure.css +106 -0
- package/components/fab-menu.css +47 -0
- package/components/fab.css +49 -0
- package/components/field.css +73 -0
- package/components/icons.css +56 -0
- package/components/list-item.css +90 -0
- package/components/listbox.css +39 -0
- package/components/markdown-editor.css +80 -0
- package/components/menu-button.css +39 -0
- package/components/menu.css +64 -0
- package/components/menubar.css +67 -0
- package/components/modes.css +58 -0
- package/components/navigation-bar.css +52 -0
- package/components/navigation-rail.css +57 -0
- package/components/popover.css +13 -0
- package/components/progress.css +47 -0
- package/components/range-slider.css +41 -0
- package/components/scroller.css +91 -0
- package/components/search-bar.css +65 -0
- package/components/segmented-button.css +64 -0
- package/components/select.css +73 -0
- package/components/slider.css +64 -0
- package/components/snackbar.css +50 -0
- package/components/splitter.css +42 -0
- package/components/switch.css +75 -0
- package/components/textarea.css +42 -0
- package/components/toolbar.css +68 -0
- package/components/tooltip.css +23 -0
- package/components/transfer-list.css +74 -0
- package/components/virtual-canvas.css +45 -0
- package/components/virtual-scroller.css +7 -0
- package/components.css +45 -0
- package/css-components/button.css +99 -0
- package/css-components/card.css +14 -0
- package/css-components/chip-group.css +9 -0
- package/css-components/chip.css +109 -0
- package/css-components/disclosure.css +34 -0
- package/css-components/list.css +34 -0
- package/css-components/select.css +19 -0
- package/css-components/textarea.css +22 -0
- package/css-components.css +31 -0
- package/defaults.css +169 -0
- package/native.css +271 -0
- package/package.json +51 -7
- package/theme.css +3 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@layer rc-theme-win31.components {
|
|
2
|
+
/*
|
|
3
|
+
* The closest thing in this library to a verbatim 3.1 control. The period
|
|
4
|
+
* form is two sunken lists with a column of beveled movers between them, and
|
|
5
|
+
* the movers include ordering as well as transfer.
|
|
6
|
+
*/
|
|
7
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list {
|
|
8
|
+
--rc-transfer-list-gap: var(--win31-gap-panel);
|
|
9
|
+
--rc-transfer-list-panel-gap: var(--win31-gap-tight);
|
|
10
|
+
--rc-transfer-list-listbox-border: var(--win31-hairline) solid;
|
|
11
|
+
--rc-transfer-list-listbox-radius: var(--win31-radius);
|
|
12
|
+
--rc-transfer-list-listbox-bg: var(--win31-color-field);
|
|
13
|
+
--rc-transfer-list-listbox-color: var(--win31-color-field-text);
|
|
14
|
+
--rc-transfer-list-option-gap: var(--win31-gap-tight);
|
|
15
|
+
--rc-transfer-list-option-padding-block: var(--win31-padding-block);
|
|
16
|
+
--rc-transfer-list-option-padding-inline: var(--win31-padding-inline);
|
|
17
|
+
--rc-transfer-list-option-hover-bg: transparent;
|
|
18
|
+
--rc-transfer-list-option-hover-color: var(--win31-color-field-text);
|
|
19
|
+
--rc-transfer-list-option-selected-bg: var(--win31-color-selection);
|
|
20
|
+
--rc-transfer-list-option-selected-color: var(--win31-color-selection-text);
|
|
21
|
+
font-family: var(--win31-font-family);
|
|
22
|
+
font-size: var(--win31-font-size);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(listbox) {
|
|
26
|
+
border-color: var(--win31-inset-border-color);
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
--rc-listbox-option-min-block-size: var(--win31-listbox-row-height);
|
|
29
|
+
--rc-listbox-option-transition: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(panel) {
|
|
33
|
+
box-shadow: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(label) {
|
|
37
|
+
color: var(--win31-color-frame);
|
|
38
|
+
font-size: var(--win31-font-size);
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(actions) {
|
|
43
|
+
gap: var(--win31-gap-panel);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(button) {
|
|
47
|
+
min-block-size: var(--win31-control-height);
|
|
48
|
+
padding-inline: calc(8 * var(--win31-unit));
|
|
49
|
+
color: var(--win31-color-frame);
|
|
50
|
+
background: var(--win31-color-surface);
|
|
51
|
+
border: var(--win31-border);
|
|
52
|
+
border-radius: var(--win31-radius);
|
|
53
|
+
box-shadow: var(--win31-bevel-outset-1);
|
|
54
|
+
font-family: var(--win31-font-family);
|
|
55
|
+
font-size: var(--win31-font-size);
|
|
56
|
+
cursor: default;
|
|
57
|
+
transition: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(button):active {
|
|
61
|
+
box-shadow: var(--win31-bevel-inset-1);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/*
|
|
65
|
+
* A disabled mover was embossed rather than hidden, so the set of available
|
|
66
|
+
* moves stayed readable at rest. Without state attributes on the root this
|
|
67
|
+
* relies on the native disabled state the component already sets.
|
|
68
|
+
*/
|
|
69
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-transfer-list::part(button):disabled {
|
|
70
|
+
color: var(--win31-color-disabled-text);
|
|
71
|
+
text-shadow: var(--win31-unit) var(--win31-unit) 0 var(--win31-color-disabled-emboss);
|
|
72
|
+
opacity: 1;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@layer rc-theme-win31.components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-virtual-canvas {
|
|
3
|
+
--rc-virtual-canvas-scrollbar-width: auto;
|
|
4
|
+
--rc-virtual-canvas-scrollbar-size: var(--win31-scrollbar-size);
|
|
5
|
+
--rc-virtual-canvas-scrollbar-thumb-background: var(--win31-color-surface);
|
|
6
|
+
--rc-virtual-canvas-scrollbar-button-background: var(--win31-color-surface);
|
|
7
|
+
--rc-virtual-canvas-scrollbar-track-background: var(--win31-color-shadow);
|
|
8
|
+
/* Bitmap art scaled without smoothing, the way a 3.1 canvas rendered it. */
|
|
9
|
+
--rc-virtual-canvas-image-rendering: pixelated;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) rc-virtual-canvas::part(scroller) {
|
|
13
|
+
border: var(--win31-hairline) solid;
|
|
14
|
+
border-color: var(--win31-inset-border-color);
|
|
15
|
+
border-radius: var(--win31-radius);
|
|
16
|
+
scrollbar-width: auto;
|
|
17
|
+
scrollbar-color: var(--win31-color-surface) var(--win31-color-shadow);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
21
|
+
rc-virtual-canvas::part(scroller)::-webkit-scrollbar {
|
|
22
|
+
inline-size: var(--win31-scrollbar-size);
|
|
23
|
+
block-size: var(--win31-scrollbar-size);
|
|
24
|
+
background: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
28
|
+
rc-virtual-canvas::part(scroller)::-webkit-scrollbar-thumb,
|
|
29
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
30
|
+
rc-virtual-canvas::part(scroller)::-webkit-scrollbar-button {
|
|
31
|
+
background: var(--win31-color-surface);
|
|
32
|
+
border: var(--win31-hairline) solid;
|
|
33
|
+
border-color: var(--win31-color-surface) var(--win31-color-frame) var(--win31-color-frame)
|
|
34
|
+
var(--win31-color-surface);
|
|
35
|
+
box-shadow: var(--win31-bevel-outset-1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
39
|
+
rc-virtual-canvas::part(scroller)::-webkit-scrollbar-track {
|
|
40
|
+
background-image: var(--win31-dither-track);
|
|
41
|
+
background-repeat: repeat;
|
|
42
|
+
background-size: var(--win31-dither-size);
|
|
43
|
+
image-rendering: pixelated;
|
|
44
|
+
}
|
|
45
|
+
}
|
package/components.css
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@layer rc-base, rc-theme-win31.defaults, rc-theme-win31.bridge, rc-theme-win31.native, rc-theme-win31.components, rc-theme-win31.css-components,
|
|
2
|
+
rc-theme-win31.overrides;
|
|
3
|
+
|
|
4
|
+
@import './components/icons.css';
|
|
5
|
+
@import './components/listbox.css';
|
|
6
|
+
@import './components/select.css';
|
|
7
|
+
@import './components/combobox.css';
|
|
8
|
+
@import './components/search-bar.css';
|
|
9
|
+
@import './components/bottom-sheet.css';
|
|
10
|
+
@import './components/field.css';
|
|
11
|
+
@import './components/textarea.css';
|
|
12
|
+
@import './components/markdown-editor.css';
|
|
13
|
+
@import './components/transfer-list.css';
|
|
14
|
+
@import './components/button.css';
|
|
15
|
+
@import './components/card.css';
|
|
16
|
+
@import './components/chip.css';
|
|
17
|
+
@import './components/list-item.css';
|
|
18
|
+
@import './components/fab.css';
|
|
19
|
+
@import './components/fab-menu.css';
|
|
20
|
+
@import './components/app-bar.css';
|
|
21
|
+
@import './components/menu.css';
|
|
22
|
+
@import './components/menu-button.css';
|
|
23
|
+
@import './components/menubar.css';
|
|
24
|
+
@import './components/navigation-bar.css';
|
|
25
|
+
@import './components/navigation-rail.css';
|
|
26
|
+
@import './components/toolbar.css';
|
|
27
|
+
@import './components/segmented-button.css';
|
|
28
|
+
@import './components/slider.css';
|
|
29
|
+
@import './components/progress.css';
|
|
30
|
+
@import './components/snackbar.css';
|
|
31
|
+
@import './components/range-slider.css';
|
|
32
|
+
@import './components/splitter.css';
|
|
33
|
+
@import './components/switch.css';
|
|
34
|
+
@import './components/dialog.css';
|
|
35
|
+
@import './components/disclosure.css';
|
|
36
|
+
@import './components/accordion.css';
|
|
37
|
+
@import './components/virtual-canvas.css';
|
|
38
|
+
@import './components/adaptive-menu.css';
|
|
39
|
+
@import './components/carousel.css';
|
|
40
|
+
@import './components/chip-group.css';
|
|
41
|
+
@import './components/scroller.css';
|
|
42
|
+
@import './components/virtual-scroller.css';
|
|
43
|
+
@import './components/tooltip.css';
|
|
44
|
+
@import './components/popover.css';
|
|
45
|
+
@import './components/modes.css';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
3
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
4
|
+
:where(rc-button > a)
|
|
5
|
+
) {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: var(--rc-button-gap, 0.5rem);
|
|
10
|
+
min-block-size: var(--rc-button-block-size, 2.5rem);
|
|
11
|
+
padding-block: var(--rc-button-padding-block, 0.5rem);
|
|
12
|
+
padding-inline: var(--rc-button-padding-inline, 1.5rem);
|
|
13
|
+
border: var(--rc-button-border, var(--rc-border, 1px solid ButtonBorder));
|
|
14
|
+
border-radius: var(--rc-button-radius, var(--rc-control-radius, 999px));
|
|
15
|
+
background: var(--rc-button-bg, ButtonFace);
|
|
16
|
+
color: var(--rc-button-color, var(--rc-button-text, ButtonText));
|
|
17
|
+
font: var(--rc-button-font, inherit);
|
|
18
|
+
text-decoration: var(--rc-button-text-decoration, none);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
user-select: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
24
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
25
|
+
:where(rc-button > a)
|
|
26
|
+
):hover:not(:where(:disabled)) {
|
|
27
|
+
background: color-mix(in srgb, currentColor 8%, var(--rc-button-bg, ButtonFace));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
31
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
32
|
+
:where(rc-button > a)
|
|
33
|
+
):active:not(:where(:disabled)),
|
|
34
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
35
|
+
:where(button.rc-button, a[href].rc-button)[aria-pressed='true']:not(
|
|
36
|
+
:where(rc-button > button)
|
|
37
|
+
):not(:where(rc-button > a)) {
|
|
38
|
+
background: var(--rc-highlight, Highlight);
|
|
39
|
+
color: var(--rc-highlight-text, HighlightText);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
43
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
44
|
+
:where(rc-button > a)
|
|
45
|
+
):focus-visible {
|
|
46
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
47
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
51
|
+
:where(button.rc-button, a[href].rc-button):is(:disabled, [aria-disabled='true']) {
|
|
52
|
+
color: var(--rc-text-disabled, GrayText);
|
|
53
|
+
cursor: not-allowed;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (forced-colors: active) {
|
|
57
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
58
|
+
:where(button.rc-button, a[href].rc-button)[aria-pressed='true'] {
|
|
59
|
+
border-color: Highlight;
|
|
60
|
+
outline: 1px solid Highlight;
|
|
61
|
+
outline-offset: -1px;
|
|
62
|
+
background: Highlight;
|
|
63
|
+
color: HighlightText;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
68
|
+
:where(button.rc-button, a[href].rc-button):not(:where(rc-button > button)):not(
|
|
69
|
+
:where(rc-button > a)
|
|
70
|
+
) {
|
|
71
|
+
padding-block: var(--win31-padding-block);
|
|
72
|
+
padding-inline: calc(8 * var(--win31-unit));
|
|
73
|
+
color: var(--win31-color-frame);
|
|
74
|
+
background: var(--win31-color-surface);
|
|
75
|
+
border: var(--win31-border);
|
|
76
|
+
border-radius: var(--win31-radius);
|
|
77
|
+
box-shadow: var(--win31-bevel-outset-1);
|
|
78
|
+
font: var(--rc-button-font);
|
|
79
|
+
cursor: default;
|
|
80
|
+
transition: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
84
|
+
:where(button.rc-button, a[href].rc-button):not(:where(:disabled)):is(
|
|
85
|
+
:active,
|
|
86
|
+
[aria-pressed='true']
|
|
87
|
+
) {
|
|
88
|
+
box-shadow: var(--win31-bevel-inset-1);
|
|
89
|
+
background: var(--win31-color-surface);
|
|
90
|
+
color: var(--win31-color-frame);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
94
|
+
:where(button.rc-button, a[href].rc-button):is(:disabled, [aria-disabled='true']) {
|
|
95
|
+
color: var(--win31-color-disabled-text);
|
|
96
|
+
text-shadow: var(--win31-unit) var(--win31-unit) 0 var(--win31-color-disabled-emboss);
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-card {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--rc-card-actions-gap, 0.5rem);
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
padding-block: var(--rc-card-padding-block, 1rem);
|
|
7
|
+
padding-inline: var(--rc-card-padding-inline, 1rem);
|
|
8
|
+
border: var(--rc-border, 1px solid ButtonBorder);
|
|
9
|
+
border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
|
|
10
|
+
background: var(--rc-card-bg, var(--rc-surface, Canvas));
|
|
11
|
+
color: var(--rc-card-color, CanvasText);
|
|
12
|
+
box-shadow: var(--rc-shadow, none);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-chip-group {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--rc-chip-group-row-gap, var(--rc-control-gap, 0.5rem))
|
|
7
|
+
var(--rc-chip-group-column-gap, var(--rc-control-gap, 0.5rem));
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
3
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
4
|
+
:where(rc-chip > a)
|
|
5
|
+
):not(:where(rc-chip > label)) {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
gap: var(--rc-chip-gap, 0.25rem);
|
|
10
|
+
min-block-size: var(--rc-chip-block-size, 2rem);
|
|
11
|
+
padding-block: var(--rc-chip-padding-block, 0.25rem);
|
|
12
|
+
padding-inline: var(--rc-chip-padding-inline, 1rem);
|
|
13
|
+
border: var(--rc-chip-border, var(--rc-border, 1px solid ButtonBorder));
|
|
14
|
+
border-radius: var(--rc-chip-radius, 0.5rem);
|
|
15
|
+
background: var(--rc-chip-bg, ButtonFace);
|
|
16
|
+
color: var(--rc-chip-color, ButtonText);
|
|
17
|
+
font: var(--rc-chip-font, inherit);
|
|
18
|
+
text-decoration: var(--rc-chip-text-decoration, none);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
23
|
+
label.rc-chip
|
|
24
|
+
> :where(input[type='checkbox'], input[type='radio']) {
|
|
25
|
+
position: absolute;
|
|
26
|
+
inline-size: 1px;
|
|
27
|
+
block-size: 1px;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
clip-path: inset(50%);
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
34
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
35
|
+
:where(rc-chip > a)
|
|
36
|
+
):not(:where(rc-chip > label)):hover:not(:where(:disabled)):not(:has(input:disabled)) {
|
|
37
|
+
background: color-mix(in srgb, currentColor 8%, var(--rc-chip-bg, ButtonFace));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
41
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
42
|
+
:where(rc-chip > a)
|
|
43
|
+
):not(:where(rc-chip > label)):has(input:checked) {
|
|
44
|
+
background: var(--rc-chip-selected-bg, Highlight);
|
|
45
|
+
color: var(--rc-highlight-text, HighlightText);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
49
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
50
|
+
:where(rc-chip > a)
|
|
51
|
+
):not(:where(rc-chip > label)):is(:focus-visible, :has(input:focus-visible)) {
|
|
52
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
53
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
57
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):not(:where(rc-chip > button)):not(
|
|
58
|
+
:where(rc-chip > a)
|
|
59
|
+
):not(:where(rc-chip > label)):has(input:disabled) {
|
|
60
|
+
color: var(--rc-text-disabled, GrayText);
|
|
61
|
+
cursor: not-allowed;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
65
|
+
:where(button.rc-chip, a[href].rc-chip):is(:disabled, [aria-disabled='true']) {
|
|
66
|
+
color: var(--rc-text-disabled, GrayText);
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@media (forced-colors: active) {
|
|
71
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
72
|
+
:where(button.rc-chip, a[href].rc-chip, label.rc-chip):has(input:checked) {
|
|
73
|
+
border-color: Highlight;
|
|
74
|
+
outline: 1px solid Highlight;
|
|
75
|
+
outline-offset: -1px;
|
|
76
|
+
background: Highlight;
|
|
77
|
+
color: HighlightText;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.rc-theme-win31 :where(button.rc-chip, a[href].rc-chip, label.rc-chip) {
|
|
82
|
+
color: var(--win31-color-frame);
|
|
83
|
+
background: var(--win31-color-surface);
|
|
84
|
+
border-color: var(--win31-color-frame);
|
|
85
|
+
border-radius: var(--win31-radius);
|
|
86
|
+
box-shadow: var(--win31-bevel-outset-1);
|
|
87
|
+
cursor: default;
|
|
88
|
+
transition: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.rc-theme-win31 :where(button.rc-chip, a[href].rc-chip, label.rc-chip):has(input:checked) {
|
|
92
|
+
background: var(--win31-dither-surface);
|
|
93
|
+
color: var(--win31-color-frame);
|
|
94
|
+
box-shadow: var(--win31-bevel-inset-1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rc-theme-win31 :where(button.rc-chip, a[href].rc-chip):is(:disabled, [aria-disabled='true']),
|
|
98
|
+
.rc-theme-win31 label.rc-chip:has(input:disabled) {
|
|
99
|
+
color: var(--win31-color-disabled-text);
|
|
100
|
+
text-shadow: var(--win31-unit) var(--win31-unit) 0 var(--win31-color-disabled-emboss);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@media (forced-colors: active) {
|
|
104
|
+
.rc-theme-win31 :where(button.rc-chip, a[href].rc-chip, label.rc-chip):has(input:checked) {
|
|
105
|
+
color: var(--win31-color-frame);
|
|
106
|
+
background: var(--win31-color-surface);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
3
|
+
details.rc-disclosure:not(:where(rc-disclosure > details)) {
|
|
4
|
+
padding-block: var(--rc-control-padding-block, 0.5rem);
|
|
5
|
+
padding-inline: var(--rc-control-padding-inline, 1rem);
|
|
6
|
+
border: var(--rc-border, 1px solid ButtonBorder);
|
|
7
|
+
border-radius: var(--rc-card-radius, var(--rc-control-radius, 0.5rem));
|
|
8
|
+
background: var(--rc-surface, Canvas);
|
|
9
|
+
color: var(--rc-field-text, CanvasText);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
13
|
+
details.rc-disclosure:not(:where(rc-disclosure > details))
|
|
14
|
+
> summary {
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
20
|
+
details.rc-disclosure:not(:where(rc-disclosure > details))
|
|
21
|
+
> summary:focus-visible {
|
|
22
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
23
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
27
|
+
details.rc-disclosure:not(:where(rc-disclosure > details)) {
|
|
28
|
+
color: var(--win31-color-frame);
|
|
29
|
+
background: var(--win31-color-surface);
|
|
30
|
+
border-color: var(--win31-color-frame);
|
|
31
|
+
border-radius: var(--win31-radius);
|
|
32
|
+
box-shadow: var(--win31-bevel-outset-1);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-list {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: var(--rc-list-item-gap, 0.5rem);
|
|
5
|
+
margin-block: 0;
|
|
6
|
+
padding-inline-start: 0;
|
|
7
|
+
list-style: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-list > li {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
min-block-size: var(--rc-list-item-min-block-size, 3rem);
|
|
14
|
+
padding-block: var(--rc-list-item-padding-block, 0.5rem);
|
|
15
|
+
padding-inline: var(--rc-list-item-padding-inline, 1rem);
|
|
16
|
+
border-radius: var(--rc-control-radius, 0.5rem);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-list > li[aria-selected='true'],
|
|
20
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) .rc-list > li:has(input:checked) {
|
|
21
|
+
background: var(--rc-list-item-selected-bg, Highlight);
|
|
22
|
+
color: var(--rc-list-item-selected-color, HighlightText);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (forced-colors: active) {
|
|
26
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
27
|
+
.rc-list
|
|
28
|
+
> li:is([aria-selected='true'], :has(input:checked)) {
|
|
29
|
+
border-color: Highlight;
|
|
30
|
+
outline: 1px solid Highlight;
|
|
31
|
+
outline-offset: -1px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31)) select.rc-select:not(:where(rc-select > select)) {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
min-block-size: var(--rc-select-control-block-size, var(--rc-control-block-size, 2.5rem));
|
|
5
|
+
padding-block: var(--rc-select-padding-block, var(--rc-control-padding-block, 0.5rem));
|
|
6
|
+
padding-inline: var(--rc-select-padding-inline, var(--rc-control-padding-inline, 1rem));
|
|
7
|
+
border: var(--rc-select-border, var(--rc-border, 1px solid ButtonBorder));
|
|
8
|
+
border-radius: var(--rc-select-radius, var(--rc-control-radius, 0.5rem));
|
|
9
|
+
background: var(--rc-field, Field);
|
|
10
|
+
color: var(--rc-field-text, FieldText);
|
|
11
|
+
font: inherit;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
15
|
+
select.rc-select:not(:where(rc-select > select)):focus-visible {
|
|
16
|
+
outline: var(--rc-focus-ring, 2px solid Highlight);
|
|
17
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@layer rc-theme-win31.css-components {
|
|
2
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
3
|
+
textarea.rc-textarea:not(:where(rc-textarea > textarea)) {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
min-block-size: var(--rc-control-block-size, 2.5rem);
|
|
6
|
+
padding-block: var(--rc-control-padding-block, 0.5rem);
|
|
7
|
+
padding-inline: var(--rc-control-padding-inline, 1rem);
|
|
8
|
+
border: var(--rc-textarea-border, var(--rc-border, 1px solid ButtonBorder));
|
|
9
|
+
border-radius: var(--rc-textarea-border-radius, var(--rc-control-radius, 0.5rem));
|
|
10
|
+
background: var(--rc-textarea-background, var(--rc-field, Field));
|
|
11
|
+
color: var(--rc-textarea-color, var(--rc-field-text, FieldText));
|
|
12
|
+
caret-color: var(--rc-textarea-caret-color, var(--rc-accent, AccentColor));
|
|
13
|
+
font: inherit;
|
|
14
|
+
resize: block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
18
|
+
textarea.rc-textarea:not(:where(rc-textarea > textarea)):focus-visible {
|
|
19
|
+
outline: var(--rc-textarea-focus-outline, var(--rc-focus-ring, 2px solid Highlight));
|
|
20
|
+
outline-offset: var(--rc-focus-ring-offset, 2px);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer rc-base, rc-theme-win31.defaults, rc-theme-win31.bridge, rc-theme-win31.native, rc-theme-win31.components, rc-theme-win31.css-components,
|
|
2
|
+
rc-theme-win31.overrides;
|
|
3
|
+
|
|
4
|
+
@import './css-components/button.css';
|
|
5
|
+
@import './css-components/chip.css';
|
|
6
|
+
@import './css-components/chip-group.css';
|
|
7
|
+
@import './css-components/select.css';
|
|
8
|
+
@import './css-components/textarea.css';
|
|
9
|
+
@import './css-components/card.css';
|
|
10
|
+
@import './css-components/list.css';
|
|
11
|
+
@import './css-components/disclosure.css';
|
|
12
|
+
|
|
13
|
+
@layer rc-theme-win31.css-components {
|
|
14
|
+
@media (forced-colors: active) {
|
|
15
|
+
:where(.rc-theme-win31, :host(.rc-theme-win31))
|
|
16
|
+
:where(
|
|
17
|
+
button.rc-button,
|
|
18
|
+
a.rc-button,
|
|
19
|
+
button.rc-chip,
|
|
20
|
+
a.rc-chip,
|
|
21
|
+
label.rc-chip,
|
|
22
|
+
select.rc-select,
|
|
23
|
+
textarea.rc-textarea,
|
|
24
|
+
.rc-card,
|
|
25
|
+
.rc-list,
|
|
26
|
+
details.rc-disclosure
|
|
27
|
+
) {
|
|
28
|
+
forced-color-adjust: auto;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|