input focus accent

This commit is contained in:
Geoff Doty 2021-10-16 03:46:22 -04:00
parent aad56e0ea9
commit c2db9be6e8
2 changed files with 8 additions and 15 deletions

View File

@ -56,8 +56,4 @@ Still have a bunch of tiny tweaks and extras to build, but th
- ability for an accent color (defaults to theme) - ability for an accent color (defaults to theme)
- Tweak `code`, `pre`, `kbd`
- input highlight on focus
- documentation around `main` , `article`, `section` tags - documentation around `main` , `article`, `section` tags

View File

@ -14,8 +14,7 @@
--space: 1rem; --space: 1rem;
} }
[data-theme="light"], [data-theme="light"],:root:not([data-theme="dark"]) {
:root:not([data-theme="dark"]) {
--light: hsl(var(--Hsl), var(--hSl), calc(var(--hsL) + 35%)); --light: hsl(var(--Hsl), var(--hSl), calc(var(--hsL) + 35%));
--dark: hsl(var(--Hsl), var(--hSl), calc(var(--hsL) - 35%)); --dark: hsl(var(--Hsl), var(--hSl), calc(var(--hsL) - 35%));
--gray: hsl(var(--Hsl), 15%, 75%); --gray: hsl(var(--Hsl), 15%, 75%);
@ -157,8 +156,11 @@ input:disabled {
cursor:not-allowed; cursor:not-allowed;
} }
input[type="checkbox"], select:focus, textarea:focus, input:focus {
input[type="radio"] { border: 2px solid var(--theme);
}
input[type="checkbox"],input[type="radio"] {
background: red; background: red;
display: inline-block; display: inline-block;
padding: 0; padding: 0;
@ -167,11 +169,7 @@ input[type="radio"] {
height: calc(var(--size) * .8); height: calc(var(--size) * .8);
} }
button, button,input[type="submit"],input[type="reset"],select,textarea {
input[type="submit"],
input[type="reset"],
select,
textarea {
display: inline-block; display: inline-block;
outline: none; outline: none;
font-family: var(--font); font-family: var(--font);
@ -187,8 +185,7 @@ textarea {
cursor: pointer; cursor: pointer;
} }
input[type="submit"], input[type="submit"],input[type="reset"] {
input[type="reset"] {
background-color: var(--theme); background-color: var(--theme);
color: var(--bg); color: var(--bg);
} }