Skip to content

Commit

Permalink
fixes #310 (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink authored Aug 24, 2023
1 parent de9daf9 commit 81abc47
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/extra/buttons.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../props.media.css";
@import "../props.gray-hsl.css";

:where(button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(input[type="file"])::-webkit-file-upload-button,
:where(input[type="file"])::file-selector-button {
--_accent: initial /* your color */;
Expand Down Expand Up @@ -68,7 +68,7 @@
}
}

:where(button,input:is([type="button"],[type="submit"],[type="reset"])) {
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])) {
/* disabled */
&[disabled] {
--_bg: none;
Expand Down
4 changes: 2 additions & 2 deletions src/extra/buttons.dark.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../props.media.css";
@import "../props.gray-hsl.css";

:where(button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(input[type="file"])::-webkit-file-upload-button,
:where(input[type="file"])::file-selector-button {
--_accent: initial /* your color */;
Expand Down Expand Up @@ -53,7 +53,7 @@
}
}

:where(button,input:is([type="button"],[type="submit"],[type="reset"])) {
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])) {
/* disabled */
&[disabled] {
--_bg: none;
Expand Down
4 changes: 2 additions & 2 deletions src/extra/buttons.light.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../props.media.css";
@import "../props.gray-hsl.css";

:where(button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])),
:where(input[type="file"])::-webkit-file-upload-button,
:where(input[type="file"])::file-selector-button {
--_accent: initial /* your color */;
Expand Down Expand Up @@ -55,7 +55,7 @@
}
}

:where(button,input:is([type="button"],[type="submit"],[type="reset"])) {
:where(.btn,button,input:is([type="button"],[type="submit"],[type="reset"])) {
/* disabled */
&[disabled] {
--_bg: none;
Expand Down
4 changes: 2 additions & 2 deletions src/extra/theme.dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
background-color: var(--surface-2);
}

& :where(button) {
& :where(button,.btn) {
--_highlight: var(--_highlight-dark);
--_bg: var(--_bg-dark);
--_ink-shadow: var(--_ink-shadow-dark);
Expand All @@ -29,7 +29,7 @@
}
}

& :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
& :where(button,.btn,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
--_text: var(--gray-5);
}

Expand Down
4 changes: 2 additions & 2 deletions src/extra/theme.dark.switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
background-color: var(--surface-2);
}

& :where(button) {
& :where(button,.btn) {
--_highlight: var(--_highlight-dark);
--_bg: var(--_bg-dark);
--_ink-shadow: var(--_ink-shadow-dark);
Expand All @@ -37,7 +37,7 @@
}
}

& :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
& :where(button,.btn,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
--_text: var(--gray-5);
}

Expand Down
4 changes: 2 additions & 2 deletions src/extra/theme.light.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
background-color: var(--surface-1);
}

& :where(button) {
& :where(button,.btn) {
--_highlight: var(--_highlight-light);
--_bg: var(--_bg-light);
--_ink-shadow: var(--_ink-shadow-light);
Expand All @@ -38,7 +38,7 @@
}
}

& :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
& :where(button,.btn,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
--_text: var(--gray-6);
}

Expand Down
4 changes: 2 additions & 2 deletions src/extra/theme.light.switch.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
background-color: var(--surface-1);
}

& :where(button) {
& :where(button,.btn) {
--_highlight: var(--_highlight-light);
--_bg: var(--_bg-light);
--_ink-shadow: var(--_ink-shadow-light);
Expand All @@ -44,7 +44,7 @@
}
}

& :where(button,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
& :where(button,.btn,input:is([type="button"],[type="submit"],[type="reset"]))[disabled] {
--_text: var(--gray-6);
}

Expand Down

0 comments on commit 81abc47

Please sign in to comment.