mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 08:45:06 -04:00
refactor: Links selectors
This commit is contained in:
parent
f1bde7f7f7
commit
ff30e814ec
17 changed files with 89 additions and 460 deletions
|
@ -675,11 +675,8 @@ a,
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
||||||
}
|
}
|
||||||
a[aria-current], a:hover, a:active, a:focus,
|
a:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link][aria-current],
|
[role=link]:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link]:hover,
|
|
||||||
[role=link]:active,
|
|
||||||
[role=link]:focus {
|
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
--text-decoration: underline;
|
--text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -726,61 +723,7 @@ h6 {
|
||||||
--color: var(--h6-color);
|
--color: var(--h6-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
address ~ h1, address ~ h2, address ~ h3, address ~ h4, address ~ h5, address ~ h6,
|
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
||||||
blockquote ~ h1,
|
|
||||||
blockquote ~ h2,
|
|
||||||
blockquote ~ h3,
|
|
||||||
blockquote ~ h4,
|
|
||||||
blockquote ~ h5,
|
|
||||||
blockquote ~ h6,
|
|
||||||
dl ~ h1,
|
|
||||||
dl ~ h2,
|
|
||||||
dl ~ h3,
|
|
||||||
dl ~ h4,
|
|
||||||
dl ~ h5,
|
|
||||||
dl ~ h6,
|
|
||||||
figure ~ h1,
|
|
||||||
figure ~ h2,
|
|
||||||
figure ~ h3,
|
|
||||||
figure ~ h4,
|
|
||||||
figure ~ h5,
|
|
||||||
figure ~ h6,
|
|
||||||
form ~ h1,
|
|
||||||
form ~ h2,
|
|
||||||
form ~ h3,
|
|
||||||
form ~ h4,
|
|
||||||
form ~ h5,
|
|
||||||
form ~ h6,
|
|
||||||
ol ~ h1,
|
|
||||||
ol ~ h2,
|
|
||||||
ol ~ h3,
|
|
||||||
ol ~ h4,
|
|
||||||
ol ~ h5,
|
|
||||||
ol ~ h6,
|
|
||||||
p ~ h1,
|
|
||||||
p ~ h2,
|
|
||||||
p ~ h3,
|
|
||||||
p ~ h4,
|
|
||||||
p ~ h5,
|
|
||||||
p ~ h6,
|
|
||||||
pre ~ h1,
|
|
||||||
pre ~ h2,
|
|
||||||
pre ~ h3,
|
|
||||||
pre ~ h4,
|
|
||||||
pre ~ h5,
|
|
||||||
pre ~ h6,
|
|
||||||
table ~ h1,
|
|
||||||
table ~ h2,
|
|
||||||
table ~ h3,
|
|
||||||
table ~ h4,
|
|
||||||
table ~ h5,
|
|
||||||
table ~ h6,
|
|
||||||
ul ~ h1,
|
|
||||||
ul ~ h2,
|
|
||||||
ul ~ h3,
|
|
||||||
ul ~ h4,
|
|
||||||
ul ~ h5,
|
|
||||||
ul ~ h6 {
|
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1155,19 +1098,13 @@ textarea {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--background-color: var(--form-element-active-background-color);
|
--background-color: var(--form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--border-color: var(--form-element-active-border-color);
|
--border-color: var(--form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1185,9 +1122,7 @@ textarea[disabled] {
|
||||||
opacity: var(--form-element-disabled-opacity);
|
opacity: var(--form-element-disabled-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
|
||||||
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
||||||
padding-left: var(--form-element-spacing-horizontal);
|
padding-left: var(--form-element-spacing-horizontal);
|
||||||
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
||||||
|
@ -1198,50 +1133,28 @@ textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
background-size: 1rem auto;
|
background-size: 1rem auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-image: var(--icon-valid);
|
background-image: var(--icon-valid);
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
|
||||||
background-image: var(--icon-invalid);
|
background-image: var(--icon-invalid);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false],
|
:where(input, select, textarea)[aria-invalid=false] {
|
||||||
select[aria-invalid=false],
|
|
||||||
textarea[aria-invalid=false] {
|
|
||||||
--border-color: var(--form-element-valid-border-color);
|
--border-color: var(--form-element-valid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false]:active, input[aria-invalid=false]:focus,
|
:where(input, select, textarea)[aria-invalid=false]:active, :where(input, select, textarea)[aria-invalid=false]:focus {
|
||||||
select[aria-invalid=false]:active,
|
|
||||||
select[aria-invalid=false]:focus,
|
|
||||||
textarea[aria-invalid=false]:active,
|
|
||||||
textarea[aria-invalid=false]:focus {
|
|
||||||
--border-color: var(--form-element-valid-active-border-color) !important;
|
--border-color: var(--form-element-valid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
||||||
}
|
}
|
||||||
input[aria-invalid=true],
|
:where(input, select, textarea)[aria-invalid=true] {
|
||||||
select[aria-invalid=true],
|
|
||||||
textarea[aria-invalid=true] {
|
|
||||||
--border-color: var(--form-element-invalid-border-color);
|
--border-color: var(--form-element-invalid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=true]:active, input[aria-invalid=true]:focus,
|
:where(input, select, textarea)[aria-invalid=true]:active, :where(input, select, textarea)[aria-invalid=true]:focus {
|
||||||
select[aria-invalid=true]:active,
|
|
||||||
select[aria-invalid=true]:focus,
|
|
||||||
textarea[aria-invalid=true]:active,
|
|
||||||
textarea[aria-invalid=true]:focus {
|
|
||||||
--border-color: var(--form-element-invalid-active-border-color) !important;
|
--border-color: var(--form-element-invalid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
[dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1281,9 +1194,7 @@ select:not([multiple]):not([size]) {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input + small,
|
:where(input, select, textarea) + small {
|
||||||
select + small,
|
|
||||||
textarea + small {
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--spacing) * -0.75);
|
margin-top: calc(var(--spacing) * -0.75);
|
||||||
|
@ -1291,7 +1202,7 @@ textarea + small {
|
||||||
color: var(--muted-color);
|
color: var(--muted-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
label > input, label > select, label > textarea {
|
label > :where(input, select, textarea) {
|
||||||
margin-top: calc(var(--spacing) * 0.25);
|
margin-top: calc(var(--spacing) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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
137
css/pico.css
137
css/pico.css
|
@ -705,11 +705,8 @@ a,
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
||||||
}
|
}
|
||||||
a[aria-current], a:hover, a:active, a:focus,
|
a:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link][aria-current],
|
[role=link]:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link]:hover,
|
|
||||||
[role=link]:active,
|
|
||||||
[role=link]:focus {
|
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
--text-decoration: underline;
|
--text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -721,11 +718,8 @@ a.secondary,
|
||||||
[role=link].secondary {
|
[role=link].secondary {
|
||||||
--color: var(--secondary);
|
--color: var(--secondary);
|
||||||
}
|
}
|
||||||
a.secondary[aria-current], a.secondary:hover, a.secondary:active, a.secondary:focus,
|
a.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link].secondary[aria-current],
|
[role=link].secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link].secondary:hover,
|
|
||||||
[role=link].secondary:active,
|
|
||||||
[role=link].secondary:focus {
|
|
||||||
--color: var(--secondary-hover);
|
--color: var(--secondary-hover);
|
||||||
}
|
}
|
||||||
a.secondary:focus,
|
a.secondary:focus,
|
||||||
|
@ -736,11 +730,8 @@ a.contrast,
|
||||||
[role=link].contrast {
|
[role=link].contrast {
|
||||||
--color: var(--contrast);
|
--color: var(--contrast);
|
||||||
}
|
}
|
||||||
a.contrast[aria-current], a.contrast:hover, a.contrast:active, a.contrast:focus,
|
a.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link].contrast[aria-current],
|
[role=link].contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link].contrast:hover,
|
|
||||||
[role=link].contrast:active,
|
|
||||||
[role=link].contrast:focus {
|
|
||||||
--color: var(--contrast-hover);
|
--color: var(--contrast-hover);
|
||||||
}
|
}
|
||||||
a.contrast:focus,
|
a.contrast:focus,
|
||||||
|
@ -786,61 +777,7 @@ h6 {
|
||||||
--color: var(--h6-color);
|
--color: var(--h6-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
address ~ h1, address ~ h2, address ~ h3, address ~ h4, address ~ h5, address ~ h6,
|
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
||||||
blockquote ~ h1,
|
|
||||||
blockquote ~ h2,
|
|
||||||
blockquote ~ h3,
|
|
||||||
blockquote ~ h4,
|
|
||||||
blockquote ~ h5,
|
|
||||||
blockquote ~ h6,
|
|
||||||
dl ~ h1,
|
|
||||||
dl ~ h2,
|
|
||||||
dl ~ h3,
|
|
||||||
dl ~ h4,
|
|
||||||
dl ~ h5,
|
|
||||||
dl ~ h6,
|
|
||||||
figure ~ h1,
|
|
||||||
figure ~ h2,
|
|
||||||
figure ~ h3,
|
|
||||||
figure ~ h4,
|
|
||||||
figure ~ h5,
|
|
||||||
figure ~ h6,
|
|
||||||
form ~ h1,
|
|
||||||
form ~ h2,
|
|
||||||
form ~ h3,
|
|
||||||
form ~ h4,
|
|
||||||
form ~ h5,
|
|
||||||
form ~ h6,
|
|
||||||
ol ~ h1,
|
|
||||||
ol ~ h2,
|
|
||||||
ol ~ h3,
|
|
||||||
ol ~ h4,
|
|
||||||
ol ~ h5,
|
|
||||||
ol ~ h6,
|
|
||||||
p ~ h1,
|
|
||||||
p ~ h2,
|
|
||||||
p ~ h3,
|
|
||||||
p ~ h4,
|
|
||||||
p ~ h5,
|
|
||||||
p ~ h6,
|
|
||||||
pre ~ h1,
|
|
||||||
pre ~ h2,
|
|
||||||
pre ~ h3,
|
|
||||||
pre ~ h4,
|
|
||||||
pre ~ h5,
|
|
||||||
pre ~ h6,
|
|
||||||
table ~ h1,
|
|
||||||
table ~ h2,
|
|
||||||
table ~ h3,
|
|
||||||
table ~ h4,
|
|
||||||
table ~ h5,
|
|
||||||
table ~ h6,
|
|
||||||
ul ~ h1,
|
|
||||||
ul ~ h2,
|
|
||||||
ul ~ h3,
|
|
||||||
ul ~ h4,
|
|
||||||
ul ~ h5,
|
|
||||||
ul ~ h6 {
|
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1365,19 +1302,13 @@ textarea {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--background-color: var(--form-element-active-background-color);
|
--background-color: var(--form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--border-color: var(--form-element-active-border-color);
|
--border-color: var(--form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1395,9 +1326,7 @@ textarea[disabled] {
|
||||||
opacity: var(--form-element-disabled-opacity);
|
opacity: var(--form-element-disabled-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
|
||||||
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
||||||
padding-left: var(--form-element-spacing-horizontal);
|
padding-left: var(--form-element-spacing-horizontal);
|
||||||
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
||||||
|
@ -1408,50 +1337,28 @@ textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
background-size: 1rem auto;
|
background-size: 1rem auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-image: var(--icon-valid);
|
background-image: var(--icon-valid);
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
|
||||||
background-image: var(--icon-invalid);
|
background-image: var(--icon-invalid);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false],
|
:where(input, select, textarea)[aria-invalid=false] {
|
||||||
select[aria-invalid=false],
|
|
||||||
textarea[aria-invalid=false] {
|
|
||||||
--border-color: var(--form-element-valid-border-color);
|
--border-color: var(--form-element-valid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false]:active, input[aria-invalid=false]:focus,
|
:where(input, select, textarea)[aria-invalid=false]:active, :where(input, select, textarea)[aria-invalid=false]:focus {
|
||||||
select[aria-invalid=false]:active,
|
|
||||||
select[aria-invalid=false]:focus,
|
|
||||||
textarea[aria-invalid=false]:active,
|
|
||||||
textarea[aria-invalid=false]:focus {
|
|
||||||
--border-color: var(--form-element-valid-active-border-color) !important;
|
--border-color: var(--form-element-valid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
||||||
}
|
}
|
||||||
input[aria-invalid=true],
|
:where(input, select, textarea)[aria-invalid=true] {
|
||||||
select[aria-invalid=true],
|
|
||||||
textarea[aria-invalid=true] {
|
|
||||||
--border-color: var(--form-element-invalid-border-color);
|
--border-color: var(--form-element-invalid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=true]:active, input[aria-invalid=true]:focus,
|
:where(input, select, textarea)[aria-invalid=true]:active, :where(input, select, textarea)[aria-invalid=true]:focus {
|
||||||
select[aria-invalid=true]:active,
|
|
||||||
select[aria-invalid=true]:focus,
|
|
||||||
textarea[aria-invalid=true]:active,
|
|
||||||
textarea[aria-invalid=true]:focus {
|
|
||||||
--border-color: var(--form-element-invalid-active-border-color) !important;
|
--border-color: var(--form-element-invalid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
[dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1491,9 +1398,7 @@ select:not([multiple]):not([size]) {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input + small,
|
:where(input, select, textarea) + small {
|
||||||
select + small,
|
|
||||||
textarea + small {
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--spacing) * -0.75);
|
margin-top: calc(var(--spacing) * -0.75);
|
||||||
|
@ -1501,7 +1406,7 @@ textarea + small {
|
||||||
color: var(--muted-color);
|
color: var(--muted-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
label > input, label > select, label > textarea {
|
label > :where(input, select, textarea) {
|
||||||
margin-top: calc(var(--spacing) * 0.25);
|
margin-top: calc(var(--spacing) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -645,11 +645,8 @@ a,
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition);
|
||||||
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
transition: background-color var(--transition), color var(--transition), text-decoration var(--transition), box-shadow var(--transition), -webkit-text-decoration var(--transition);
|
||||||
}
|
}
|
||||||
a[aria-current], a:hover, a:active, a:focus,
|
a:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link][aria-current],
|
[role=link]:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link]:hover,
|
|
||||||
[role=link]:active,
|
|
||||||
[role=link]:focus {
|
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
--text-decoration: underline;
|
--text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -696,61 +693,7 @@ h6 {
|
||||||
--color: var(--h6-color);
|
--color: var(--h6-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
address ~ h1, address ~ h2, address ~ h3, address ~ h4, address ~ h5, address ~ h6,
|
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
||||||
blockquote ~ h1,
|
|
||||||
blockquote ~ h2,
|
|
||||||
blockquote ~ h3,
|
|
||||||
blockquote ~ h4,
|
|
||||||
blockquote ~ h5,
|
|
||||||
blockquote ~ h6,
|
|
||||||
dl ~ h1,
|
|
||||||
dl ~ h2,
|
|
||||||
dl ~ h3,
|
|
||||||
dl ~ h4,
|
|
||||||
dl ~ h5,
|
|
||||||
dl ~ h6,
|
|
||||||
figure ~ h1,
|
|
||||||
figure ~ h2,
|
|
||||||
figure ~ h3,
|
|
||||||
figure ~ h4,
|
|
||||||
figure ~ h5,
|
|
||||||
figure ~ h6,
|
|
||||||
form ~ h1,
|
|
||||||
form ~ h2,
|
|
||||||
form ~ h3,
|
|
||||||
form ~ h4,
|
|
||||||
form ~ h5,
|
|
||||||
form ~ h6,
|
|
||||||
ol ~ h1,
|
|
||||||
ol ~ h2,
|
|
||||||
ol ~ h3,
|
|
||||||
ol ~ h4,
|
|
||||||
ol ~ h5,
|
|
||||||
ol ~ h6,
|
|
||||||
p ~ h1,
|
|
||||||
p ~ h2,
|
|
||||||
p ~ h3,
|
|
||||||
p ~ h4,
|
|
||||||
p ~ h5,
|
|
||||||
p ~ h6,
|
|
||||||
pre ~ h1,
|
|
||||||
pre ~ h2,
|
|
||||||
pre ~ h3,
|
|
||||||
pre ~ h4,
|
|
||||||
pre ~ h5,
|
|
||||||
pre ~ h6,
|
|
||||||
table ~ h1,
|
|
||||||
table ~ h2,
|
|
||||||
table ~ h3,
|
|
||||||
table ~ h4,
|
|
||||||
table ~ h5,
|
|
||||||
table ~ h6,
|
|
||||||
ul ~ h1,
|
|
||||||
ul ~ h2,
|
|
||||||
ul ~ h3,
|
|
||||||
ul ~ h4,
|
|
||||||
ul ~ h5,
|
|
||||||
ul ~ h6 {
|
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1125,19 +1068,13 @@ textarea {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--background-color: var(--form-element-active-background-color);
|
--background-color: var(--form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--border-color: var(--form-element-active-border-color);
|
--border-color: var(--form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1155,9 +1092,7 @@ textarea[disabled] {
|
||||||
opacity: var(--form-element-disabled-opacity);
|
opacity: var(--form-element-disabled-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
|
||||||
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem) !important;
|
||||||
padding-left: var(--form-element-spacing-horizontal);
|
padding-left: var(--form-element-spacing-horizontal);
|
||||||
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
-webkit-padding-start: var(--form-element-spacing-horizontal) !important;
|
||||||
|
@ -1168,50 +1103,28 @@ textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
background-size: 1rem auto;
|
background-size: 1rem auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-image: var(--icon-valid);
|
background-image: var(--icon-valid);
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
|
||||||
background-image: var(--icon-invalid);
|
background-image: var(--icon-invalid);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false],
|
:where(input, select, textarea)[aria-invalid=false] {
|
||||||
select[aria-invalid=false],
|
|
||||||
textarea[aria-invalid=false] {
|
|
||||||
--border-color: var(--form-element-valid-border-color);
|
--border-color: var(--form-element-valid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false]:active, input[aria-invalid=false]:focus,
|
:where(input, select, textarea)[aria-invalid=false]:active, :where(input, select, textarea)[aria-invalid=false]:focus {
|
||||||
select[aria-invalid=false]:active,
|
|
||||||
select[aria-invalid=false]:focus,
|
|
||||||
textarea[aria-invalid=false]:active,
|
|
||||||
textarea[aria-invalid=false]:focus {
|
|
||||||
--border-color: var(--form-element-valid-active-border-color) !important;
|
--border-color: var(--form-element-valid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color) !important;
|
||||||
}
|
}
|
||||||
input[aria-invalid=true],
|
:where(input, select, textarea)[aria-invalid=true] {
|
||||||
select[aria-invalid=true],
|
|
||||||
textarea[aria-invalid=true] {
|
|
||||||
--border-color: var(--form-element-invalid-border-color);
|
--border-color: var(--form-element-invalid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=true]:active, input[aria-invalid=true]:focus,
|
:where(input, select, textarea)[aria-invalid=true]:active, :where(input, select, textarea)[aria-invalid=true]:focus {
|
||||||
select[aria-invalid=true]:active,
|
|
||||||
select[aria-invalid=true]:focus,
|
|
||||||
textarea[aria-invalid=true]:active,
|
|
||||||
textarea[aria-invalid=true]:focus {
|
|
||||||
--border-color: var(--form-element-invalid-active-border-color) !important;
|
--border-color: var(--form-element-invalid-active-border-color) !important;
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
[dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1251,9 +1164,7 @@ select:not([multiple]):not([size]) {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input + small,
|
:where(input, select, textarea) + small {
|
||||||
select + small,
|
|
||||||
textarea + small {
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--spacing) * -0.75);
|
margin-top: calc(var(--spacing) * -0.75);
|
||||||
|
@ -1261,7 +1172,7 @@ textarea + small {
|
||||||
color: var(--muted-color);
|
color: var(--muted-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
label > input, label > select, label > textarea {
|
label > :where(input, select, textarea) {
|
||||||
margin-top: calc(var(--spacing) * 0.25);
|
margin-top: calc(var(--spacing) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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
|
@ -634,11 +634,8 @@ a,
|
||||||
-webkit-text-decoration: var(--text-decoration);
|
-webkit-text-decoration: var(--text-decoration);
|
||||||
text-decoration: var(--text-decoration);
|
text-decoration: var(--text-decoration);
|
||||||
}
|
}
|
||||||
a[aria-current], a:hover, a:active, a:focus,
|
a:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link][aria-current],
|
[role=link]:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link]:hover,
|
|
||||||
[role=link]:active,
|
|
||||||
[role=link]:focus {
|
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
--text-decoration: underline;
|
--text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
@ -650,11 +647,8 @@ a.secondary,
|
||||||
[role=link].secondary {
|
[role=link].secondary {
|
||||||
--color: var(--secondary);
|
--color: var(--secondary);
|
||||||
}
|
}
|
||||||
a.secondary[aria-current], a.secondary:hover, a.secondary:active, a.secondary:focus,
|
a.secondary:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link].secondary[aria-current],
|
[role=link].secondary:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link].secondary:hover,
|
|
||||||
[role=link].secondary:active,
|
|
||||||
[role=link].secondary:focus {
|
|
||||||
--color: var(--secondary-hover);
|
--color: var(--secondary-hover);
|
||||||
}
|
}
|
||||||
a.secondary:focus,
|
a.secondary:focus,
|
||||||
|
@ -665,11 +659,8 @@ a.contrast,
|
||||||
[role=link].contrast {
|
[role=link].contrast {
|
||||||
--color: var(--contrast);
|
--color: var(--contrast);
|
||||||
}
|
}
|
||||||
a.contrast[aria-current], a.contrast:hover, a.contrast:active, a.contrast:focus,
|
a.contrast:is([aria-current], :hover, :active, :focus),
|
||||||
[role=link].contrast[aria-current],
|
[role=link].contrast:is([aria-current], :hover, :active, :focus) {
|
||||||
[role=link].contrast:hover,
|
|
||||||
[role=link].contrast:active,
|
|
||||||
[role=link].contrast:focus {
|
|
||||||
--color: var(--contrast-hover);
|
--color: var(--contrast-hover);
|
||||||
}
|
}
|
||||||
a.contrast:focus,
|
a.contrast:focus,
|
||||||
|
@ -715,61 +706,7 @@ h6 {
|
||||||
--color: var(--h6-color);
|
--color: var(--h6-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
address ~ h1, address ~ h2, address ~ h3, address ~ h4, address ~ h5, address ~ h6,
|
:where(address, blockquote, dl, figure, form, ol, p, pre, table, ul) ~ :is(h1, h2, h3, h4, h5, h6) {
|
||||||
blockquote ~ h1,
|
|
||||||
blockquote ~ h2,
|
|
||||||
blockquote ~ h3,
|
|
||||||
blockquote ~ h4,
|
|
||||||
blockquote ~ h5,
|
|
||||||
blockquote ~ h6,
|
|
||||||
dl ~ h1,
|
|
||||||
dl ~ h2,
|
|
||||||
dl ~ h3,
|
|
||||||
dl ~ h4,
|
|
||||||
dl ~ h5,
|
|
||||||
dl ~ h6,
|
|
||||||
figure ~ h1,
|
|
||||||
figure ~ h2,
|
|
||||||
figure ~ h3,
|
|
||||||
figure ~ h4,
|
|
||||||
figure ~ h5,
|
|
||||||
figure ~ h6,
|
|
||||||
form ~ h1,
|
|
||||||
form ~ h2,
|
|
||||||
form ~ h3,
|
|
||||||
form ~ h4,
|
|
||||||
form ~ h5,
|
|
||||||
form ~ h6,
|
|
||||||
ol ~ h1,
|
|
||||||
ol ~ h2,
|
|
||||||
ol ~ h3,
|
|
||||||
ol ~ h4,
|
|
||||||
ol ~ h5,
|
|
||||||
ol ~ h6,
|
|
||||||
p ~ h1,
|
|
||||||
p ~ h2,
|
|
||||||
p ~ h3,
|
|
||||||
p ~ h4,
|
|
||||||
p ~ h5,
|
|
||||||
p ~ h6,
|
|
||||||
pre ~ h1,
|
|
||||||
pre ~ h2,
|
|
||||||
pre ~ h3,
|
|
||||||
pre ~ h4,
|
|
||||||
pre ~ h5,
|
|
||||||
pre ~ h6,
|
|
||||||
table ~ h1,
|
|
||||||
table ~ h2,
|
|
||||||
table ~ h3,
|
|
||||||
table ~ h4,
|
|
||||||
table ~ h5,
|
|
||||||
table ~ h6,
|
|
||||||
ul ~ h1,
|
|
||||||
ul ~ h2,
|
|
||||||
ul ~ h3,
|
|
||||||
ul ~ h4,
|
|
||||||
ul ~ h5,
|
|
||||||
ul ~ h6 {
|
|
||||||
margin-top: var(--typography-spacing-vertical);
|
margin-top: var(--typography-spacing-vertical);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1292,19 +1229,13 @@ textarea {
|
||||||
font-weight: var(--font-weight);
|
font-weight: var(--font-weight);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([type=checkbox]):not([type=radio]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--background-color: var(--form-element-active-background-color);
|
--background-color: var(--form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):active, input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):focus,
|
input:not([type=submit]):not([type=button]):not([type=reset]):not([role=switch]):not([readonly]):is(:active, :focus),
|
||||||
select:active,
|
:where(select, textarea):is(:active, :focus) {
|
||||||
select:focus,
|
|
||||||
textarea:active,
|
|
||||||
textarea:focus {
|
|
||||||
--border-color: var(--form-element-active-border-color);
|
--border-color: var(--form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1322,9 +1253,7 @@ textarea[disabled] {
|
||||||
opacity: var(--form-element-disabled-opacity);
|
opacity: var(--form-element-disabled-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
|
||||||
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
|
padding-right: calc(var(--form-element-spacing-horizontal) + 1.5rem);
|
||||||
padding-left: var(--form-element-spacing-horizontal);
|
padding-left: var(--form-element-spacing-horizontal);
|
||||||
-webkit-padding-start: var(--form-element-spacing-horizontal);
|
-webkit-padding-start: var(--form-element-spacing-horizontal);
|
||||||
|
@ -1335,50 +1264,28 @@ textarea:not([type=checkbox]):not([type=radio])[aria-invalid] {
|
||||||
background-size: 1rem auto;
|
background-size: 1rem auto;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-image: var(--icon-valid);
|
background-image: var(--icon-valid);
|
||||||
}
|
}
|
||||||
input:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
:where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
||||||
select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true] {
|
|
||||||
background-image: var(--icon-invalid);
|
background-image: var(--icon-invalid);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false],
|
:where(input, select, textarea)[aria-invalid=false] {
|
||||||
select[aria-invalid=false],
|
|
||||||
textarea[aria-invalid=false] {
|
|
||||||
--border-color: var(--form-element-valid-border-color);
|
--border-color: var(--form-element-valid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=false]:active, input[aria-invalid=false]:focus,
|
:where(input, select, textarea)[aria-invalid=false]:active, :where(input, select, textarea)[aria-invalid=false]:focus {
|
||||||
select[aria-invalid=false]:active,
|
|
||||||
select[aria-invalid=false]:focus,
|
|
||||||
textarea[aria-invalid=false]:active,
|
|
||||||
textarea[aria-invalid=false]:focus {
|
|
||||||
--border-color: var(--form-element-valid-active-border-color);
|
--border-color: var(--form-element-valid-active-border-color);
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color);
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-valid-focus-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=true],
|
:where(input, select, textarea)[aria-invalid=true] {
|
||||||
select[aria-invalid=true],
|
|
||||||
textarea[aria-invalid=true] {
|
|
||||||
--border-color: var(--form-element-invalid-border-color);
|
--border-color: var(--form-element-invalid-border-color);
|
||||||
}
|
}
|
||||||
input[aria-invalid=true]:active, input[aria-invalid=true]:focus,
|
:where(input, select, textarea)[aria-invalid=true]:active, :where(input, select, textarea)[aria-invalid=true]:focus {
|
||||||
select[aria-invalid=true]:active,
|
|
||||||
select[aria-invalid=true]:focus,
|
|
||||||
textarea[aria-invalid=true]:active,
|
|
||||||
textarea[aria-invalid=true]:focus {
|
|
||||||
--border-color: var(--form-element-invalid-active-border-color);
|
--border-color: var(--form-element-invalid-active-border-color);
|
||||||
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color);
|
--box-shadow: 0 0 0 var(--outline-width) var(--form-element-invalid-focus-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
[dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] input:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
[dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=true], [dir=rtl] :where(input, select, textarea):not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] select:not([type=checkbox]):not([type=radio])[aria-invalid=false],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=true],
|
|
||||||
[dir=rtl] textarea:not([type=checkbox]):not([type=radio])[aria-invalid=false] {
|
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1418,9 +1325,7 @@ select:not([multiple]):not([size]) {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
input + small,
|
:where(input, select, textarea) + small {
|
||||||
select + small,
|
|
||||||
textarea + small {
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--spacing) * -0.75);
|
margin-top: calc(var(--spacing) * -0.75);
|
||||||
|
@ -1428,7 +1333,7 @@ textarea + small {
|
||||||
color: var(--muted-color);
|
color: var(--muted-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
label > input, label > select, label > textarea {
|
label > :where(input, select, textarea) {
|
||||||
margin-top: calc(var(--spacing) * 0.25);
|
margin-top: calc(var(--spacing) * 0.25);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
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
|
@ -82,10 +82,7 @@ a,
|
||||||
text-decoration var(--transition), box-shadow var(--transition);
|
text-decoration var(--transition), box-shadow var(--transition);
|
||||||
}
|
}
|
||||||
|
|
||||||
&[aria-current],
|
&:is([aria-current], :hover, :active, :focus) {
|
||||||
&:hover,
|
|
||||||
&:active,
|
|
||||||
&:focus {
|
|
||||||
--color: var(--primary-hover);
|
--color: var(--primary-hover);
|
||||||
--text-decoration: underline;
|
--text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue