mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 16:46:14 -04:00
chore(button): Revert selectors
This commit is contained in:
parent
cf7c1e340c
commit
201be1cb53
17 changed files with 276 additions and 101 deletions
|
@ -868,7 +868,11 @@ button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
button,
|
||||||
|
input[type=submit],
|
||||||
|
input[type=button],
|
||||||
|
input[type=reset],
|
||||||
|
[role=button] {
|
||||||
--background-color: var(--primary);
|
--background-color: var(--primary);
|
||||||
--border-color: var(--primary);
|
--border-color: var(--primary);
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
|
@ -887,13 +891,21 @@ button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):is([aria-current], :hover, :active, :focus) {
|
button:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button]:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--primary-hover);
|
--background-color: var(--primary-hover);
|
||||||
--border-color: var(--primary-hover);
|
--border-color: var(--primary-hover);
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):focus {
|
button:focus,
|
||||||
|
input[type=submit]:focus,
|
||||||
|
input[type=button]:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button]:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--primary-focus);
|
0 0 0 var(--outline-width) var(--primary-focus);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.classless.min.css
vendored
2
css/pico.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
94
css/pico.css
94
css/pico.css
|
@ -925,7 +925,11 @@ button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
button,
|
||||||
|
input[type=submit],
|
||||||
|
input[type=button],
|
||||||
|
input[type=reset],
|
||||||
|
[role=button] {
|
||||||
--background-color: var(--primary);
|
--background-color: var(--primary);
|
||||||
--border-color: var(--primary);
|
--border-color: var(--primary);
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
|
@ -944,64 +948,124 @@ button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):is([aria-current], :hover, :active, :focus) {
|
button:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button]:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--primary-hover);
|
--background-color: var(--primary-hover);
|
||||||
--border-color: var(--primary-hover);
|
--border-color: var(--primary-hover);
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):focus {
|
button:focus,
|
||||||
|
input[type=submit]:focus,
|
||||||
|
input[type=button]:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button]:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--primary-focus);
|
0 0 0 var(--outline-width) var(--primary-focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary {
|
button.secondary,
|
||||||
|
input[type=submit].secondary,
|
||||||
|
input[type=button].secondary,
|
||||||
|
input[type=reset],
|
||||||
|
[role=button].secondary {
|
||||||
--background-color: var(--secondary);
|
--background-color: var(--secondary);
|
||||||
--border-color: var(--secondary);
|
--border-color: var(--secondary);
|
||||||
--color: var(--secondary-inverse);
|
--color: var(--secondary-inverse);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary:is([aria-current], :hover, :active, :focus) {
|
button.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--secondary-hover);
|
--background-color: var(--secondary-hover);
|
||||||
--border-color: var(--secondary-hover);
|
--border-color: var(--secondary-hover);
|
||||||
--color: var(--secondary-inverse);
|
--color: var(--secondary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary:focus {
|
button.secondary:focus,
|
||||||
|
input[type=submit].secondary:focus,
|
||||||
|
input[type=button].secondary:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button].secondary:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--secondary-focus);
|
0 0 0 var(--outline-width) var(--secondary-focus);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast {
|
|
||||||
|
button.contrast,
|
||||||
|
input[type=submit].contrast,
|
||||||
|
input[type=button].contrast,
|
||||||
|
input[type=reset].contrast,
|
||||||
|
[role=button].contrast {
|
||||||
--background-color: var(--contrast);
|
--background-color: var(--contrast);
|
||||||
--border-color: var(--contrast);
|
--border-color: var(--contrast);
|
||||||
--color: var(--contrast-inverse);
|
--color: var(--contrast-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast:is([aria-current], :hover, :active, :focus) {
|
button.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--contrast-hover);
|
--background-color: var(--contrast-hover);
|
||||||
--border-color: var(--contrast-hover);
|
--border-color: var(--contrast-hover);
|
||||||
--color: var(--contrast-inverse);
|
--color: var(--contrast-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast:focus {
|
button.contrast:focus,
|
||||||
|
input[type=submit].contrast:focus,
|
||||||
|
input[type=button].contrast:focus,
|
||||||
|
input[type=reset].contrast:focus,
|
||||||
|
[role=button].contrast:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--contrast-focus);
|
0 0 0 var(--outline-width) var(--contrast-focus);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline {
|
|
||||||
|
button.outline,
|
||||||
|
input[type=submit].outline,
|
||||||
|
input[type=button].outline,
|
||||||
|
input[type=reset].outline,
|
||||||
|
[role=button].outline {
|
||||||
--background-color: transparent;
|
--background-color: transparent;
|
||||||
--color: var(--primary);
|
--color: var(--primary);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline:is([aria-current], :hover, :active, :focus) {
|
button.outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: transparent;
|
--background-color: transparent;
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.secondary {
|
|
||||||
|
button.outline.secondary,
|
||||||
|
input[type=submit].outline.secondary,
|
||||||
|
input[type=button].outline.secondary,
|
||||||
|
input[type=reset].outline.secondary,
|
||||||
|
[role=button].outline.secondary {
|
||||||
--color: var(--secondary);
|
--color: var(--secondary);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.secondary:is([aria-current], :hover, :active, :focus) {
|
button.outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline.secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
--color: var(--secondary-hover);
|
--color: var(--secondary-hover);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.contrast {
|
|
||||||
|
button.outline.contrast,
|
||||||
|
input[type=submit].outline.contrast,
|
||||||
|
input[type=button].outline.contrast,
|
||||||
|
input[type=reset].outline.contrast,
|
||||||
|
[role=button].outline.contrast {
|
||||||
--color: var(--contrast);
|
--color: var(--contrast);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.contrast:is([aria-current], :hover, :active, :focus) {
|
button.outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline.contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
--color: var(--contrast-hover);
|
--color: var(--contrast-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -838,7 +838,11 @@ button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
button,
|
||||||
|
input[type=submit],
|
||||||
|
input[type=button],
|
||||||
|
input[type=reset],
|
||||||
|
[role=button] {
|
||||||
--background-color: var(--primary);
|
--background-color: var(--primary);
|
||||||
--border-color: var(--primary);
|
--border-color: var(--primary);
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
|
@ -857,13 +861,21 @@ button {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):is([aria-current], :hover, :active, :focus) {
|
button:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button]:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--primary-hover);
|
--background-color: var(--primary-hover);
|
||||||
--border-color: var(--primary-hover);
|
--border-color: var(--primary-hover);
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):focus {
|
button:focus,
|
||||||
|
input[type=submit]:focus,
|
||||||
|
input[type=button]:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button]:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--primary-focus);
|
0 0 0 var(--outline-width) var(--primary-focus);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.fluid.classless.min.css
vendored
2
css/pico.fluid.classless.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -854,7 +854,11 @@ button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
button,
|
||||||
|
input[type=submit],
|
||||||
|
input[type=button],
|
||||||
|
input[type=reset],
|
||||||
|
[role=button] {
|
||||||
--background-color: var(--primary);
|
--background-color: var(--primary);
|
||||||
--border-color: var(--primary);
|
--border-color: var(--primary);
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
|
@ -872,64 +876,124 @@ button {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):is([aria-current], :hover, :active, :focus) {
|
button:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button]:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button]:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--primary-hover);
|
--background-color: var(--primary-hover);
|
||||||
--border-color: var(--primary-hover);
|
--border-color: var(--primary-hover);
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0));
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]):focus {
|
button:focus,
|
||||||
|
input[type=submit]:focus,
|
||||||
|
input[type=button]:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button]:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--primary-focus);
|
0 0 0 var(--outline-width) var(--primary-focus);
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary {
|
button.secondary,
|
||||||
|
input[type=submit].secondary,
|
||||||
|
input[type=button].secondary,
|
||||||
|
input[type=reset],
|
||||||
|
[role=button].secondary {
|
||||||
--background-color: var(--secondary);
|
--background-color: var(--secondary);
|
||||||
--border-color: var(--secondary);
|
--border-color: var(--secondary);
|
||||||
--color: var(--secondary-inverse);
|
--color: var(--secondary-inverse);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary:is([aria-current], :hover, :active, :focus) {
|
button.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset]:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--secondary-hover);
|
--background-color: var(--secondary-hover);
|
||||||
--border-color: var(--secondary-hover);
|
--border-color: var(--secondary-hover);
|
||||||
--color: var(--secondary-inverse);
|
--color: var(--secondary-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).secondary:focus {
|
button.secondary:focus,
|
||||||
|
input[type=submit].secondary:focus,
|
||||||
|
input[type=button].secondary:focus,
|
||||||
|
input[type=reset]:focus,
|
||||||
|
[role=button].secondary:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--secondary-focus);
|
0 0 0 var(--outline-width) var(--secondary-focus);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast {
|
|
||||||
|
button.contrast,
|
||||||
|
input[type=submit].contrast,
|
||||||
|
input[type=button].contrast,
|
||||||
|
input[type=reset].contrast,
|
||||||
|
[role=button].contrast {
|
||||||
--background-color: var(--contrast);
|
--background-color: var(--contrast);
|
||||||
--border-color: var(--contrast);
|
--border-color: var(--contrast);
|
||||||
--color: var(--contrast-inverse);
|
--color: var(--contrast-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast:is([aria-current], :hover, :active, :focus) {
|
button.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: var(--contrast-hover);
|
--background-color: var(--contrast-hover);
|
||||||
--border-color: var(--contrast-hover);
|
--border-color: var(--contrast-hover);
|
||||||
--color: var(--contrast-inverse);
|
--color: var(--contrast-inverse);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).contrast:focus {
|
button.contrast:focus,
|
||||||
|
input[type=submit].contrast:focus,
|
||||||
|
input[type=button].contrast:focus,
|
||||||
|
input[type=reset].contrast:focus,
|
||||||
|
[role=button].contrast:focus {
|
||||||
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
--box-shadow: var(--button-hover-box-shadow, 0 0 0 rgba(0, 0, 0, 0)),
|
||||||
0 0 0 var(--outline-width) var(--contrast-focus);
|
0 0 0 var(--outline-width) var(--contrast-focus);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline {
|
|
||||||
|
button.outline,
|
||||||
|
input[type=submit].outline,
|
||||||
|
input[type=button].outline,
|
||||||
|
input[type=reset].outline,
|
||||||
|
[role=button].outline {
|
||||||
--background-color: transparent;
|
--background-color: transparent;
|
||||||
--color: var(--primary);
|
--color: var(--primary);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline:is([aria-current], :hover, :active, :focus) {
|
button.outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline:is([aria-current], :hover, :active, :focus) {
|
||||||
--background-color: transparent;
|
--background-color: transparent;
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.secondary {
|
|
||||||
|
button.outline.secondary,
|
||||||
|
input[type=submit].outline.secondary,
|
||||||
|
input[type=button].outline.secondary,
|
||||||
|
input[type=reset].outline.secondary,
|
||||||
|
[role=button].outline.secondary {
|
||||||
--color: var(--secondary);
|
--color: var(--secondary);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.secondary:is([aria-current], :hover, :active, :focus) {
|
button.outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline.secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
--color: var(--secondary-hover);
|
--color: var(--secondary-hover);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.contrast {
|
|
||||||
|
button.outline.contrast,
|
||||||
|
input[type=submit].outline.contrast,
|
||||||
|
input[type=button].outline.contrast,
|
||||||
|
input[type=reset].outline.contrast,
|
||||||
|
[role=button].outline.contrast {
|
||||||
--color: var(--contrast);
|
--color: var(--contrast);
|
||||||
}
|
}
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]).outline.contrast:is([aria-current], :hover, :active, :focus) {
|
button.outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=submit].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=button].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
input[type=reset].outline.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
|
[role=button].outline.contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
--color: var(--contrast-hover);
|
--color: var(--contrast-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
css/pico.slim.min.css
vendored
2
css/pico.slim.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -39,7 +39,11 @@ button {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
button,
|
||||||
|
input[type="submit"],
|
||||||
|
input[type="button"],
|
||||||
|
input[type="reset"],
|
||||||
|
[role="button"] {
|
||||||
--background-color: var(--primary);
|
--background-color: var(--primary);
|
||||||
--border-color: var(--primary);
|
--border-color: var(--primary);
|
||||||
--color: var(--primary-inverse);
|
--color: var(--primary-inverse);
|
||||||
|
@ -80,10 +84,14 @@ button {
|
||||||
// .secondary, .contrast & .outline
|
// .secondary, .contrast & .outline
|
||||||
@if $enable-classes {
|
@if $enable-classes {
|
||||||
|
|
||||||
:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
//:where(button, input[type="submit"], input[type="button"], input[type="reset"], [role="button"]) {
|
||||||
|
|
||||||
// Secondary
|
// Secondary
|
||||||
&.secondary {
|
button.secondary,
|
||||||
|
input[type="submit"].secondary,
|
||||||
|
input[type="button"].secondary,
|
||||||
|
input[type="reset"],
|
||||||
|
[role="button"].secondary {
|
||||||
--background-color: var(--secondary);
|
--background-color: var(--secondary);
|
||||||
--border-color: var(--secondary);
|
--border-color: var(--secondary);
|
||||||
--color: var(--secondary-inverse);
|
--color: var(--secondary-inverse);
|
||||||
|
@ -102,7 +110,11 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Contrast
|
// Contrast
|
||||||
&.contrast {
|
button.contrast,
|
||||||
|
input[type="submit"].contrast,
|
||||||
|
input[type="button"].contrast,
|
||||||
|
input[type="reset"].contrast,
|
||||||
|
[role="button"].contrast {
|
||||||
--background-color: var(--contrast);
|
--background-color: var(--contrast);
|
||||||
--border-color: var(--contrast);
|
--border-color: var(--contrast);
|
||||||
--color: var(--contrast-inverse);
|
--color: var(--contrast-inverse);
|
||||||
|
@ -120,7 +132,11 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Outline (primary)
|
// Outline (primary)
|
||||||
&.outline {
|
button.outline,
|
||||||
|
input[type="submit"].outline,
|
||||||
|
input[type="button"].outline,
|
||||||
|
input[type="reset"].outline,
|
||||||
|
[role="button"].outline {
|
||||||
--background-color: transparent;
|
--background-color: transparent;
|
||||||
--color: var(--primary);
|
--color: var(--primary);
|
||||||
|
|
||||||
|
@ -131,7 +147,11 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Outline (secondary)
|
// Outline (secondary)
|
||||||
&.outline.secondary {
|
button.outline.secondary,
|
||||||
|
input[type="submit"].outline.secondary,
|
||||||
|
input[type="button"].outline.secondary,
|
||||||
|
input[type="reset"].outline.secondary,
|
||||||
|
[role="button"].outline.secondary {
|
||||||
--color: var(--secondary);
|
--color: var(--secondary);
|
||||||
|
|
||||||
&:is([aria-current], :hover, :active, :focus) {
|
&:is([aria-current], :hover, :active, :focus) {
|
||||||
|
@ -140,7 +160,11 @@ button {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Outline (contrast)
|
// Outline (contrast)
|
||||||
&.outline.contrast {
|
button.outline.contrast,
|
||||||
|
input[type="submit"].outline.contrast,
|
||||||
|
input[type="button"].outline.contrast,
|
||||||
|
input[type="reset"].outline.contrast,
|
||||||
|
[role="button"].outline.contrast {
|
||||||
--color: var(--contrast);
|
--color: var(--contrast);
|
||||||
|
|
||||||
&:is([aria-current], :hover, :active, :focus) {
|
&:is([aria-current], :hover, :active, :focus) {
|
||||||
|
@ -148,7 +172,6 @@ button {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@else {
|
@else {
|
||||||
// Secondary button without .class
|
// Secondary button without .class
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue