mirror of
https://github.com/picocss/pico
synced 2025-11-21 15:02:38 +00:00
fix: readonly input
This commit is contained in:
parent
8f572c156c
commit
9a18b46e12
@ -1300,12 +1300,12 @@ input:not([type=submit],
|
||||
[type=checkbox],
|
||||
[type=radio],
|
||||
[readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||
}
|
||||
|
||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||
}
|
||||
|
||||
@ -1315,7 +1315,7 @@ input:not([type=submit],
|
||||
[type=range],
|
||||
[type=file],
|
||||
[readonly]):focus,
|
||||
:where(select, textarea):focus {
|
||||
:where(select, textarea):not([readonly]):focus {
|
||||
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
|
||||
}
|
||||
|
||||
|
||||
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
@ -1452,12 +1452,12 @@ input:not([type=submit],
|
||||
[type=checkbox],
|
||||
[type=radio],
|
||||
[readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||
}
|
||||
|
||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||
}
|
||||
|
||||
@ -1467,7 +1467,7 @@ input:not([type=submit],
|
||||
[type=range],
|
||||
[type=file],
|
||||
[readonly]):focus,
|
||||
:where(select, textarea):focus {
|
||||
:where(select, textarea):not([readonly]):focus {
|
||||
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1263,12 +1263,12 @@ input:not([type=submit],
|
||||
[type=checkbox],
|
||||
[type=radio],
|
||||
[readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||
}
|
||||
|
||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
||||
:where(select, textarea):is(:active, :focus) {
|
||||
:where(select, textarea):not([readonly]):is(:active, :focus) {
|
||||
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||
}
|
||||
|
||||
@ -1278,7 +1278,7 @@ input:not([type=submit],
|
||||
[type=range],
|
||||
[type=file],
|
||||
[readonly]):focus,
|
||||
:where(select, textarea):focus {
|
||||
:where(select, textarea):not([readonly]):focus {
|
||||
--pico-box-shadow: 0 0 0 var(--pico-outline-width) var(--pico-form-element-focus-color);
|
||||
}
|
||||
|
||||
|
||||
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
2
css/pico.min.css
vendored
2
css/pico.min.css
vendored
File diff suppressed because one or more lines are too long
@ -194,7 +194,7 @@
|
||||
[type="radio"],
|
||||
[readonly]
|
||||
),
|
||||
:where(select, textarea) {
|
||||
:where(select, textarea):not([readonly]) {
|
||||
&:is(:active, :focus) {
|
||||
#{$css-var-prefix}background-color: var(
|
||||
#{$css-var-prefix}form-element-active-background-color
|
||||
@ -204,7 +204,7 @@
|
||||
|
||||
// Active & Focus
|
||||
input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]),
|
||||
:where(select, textarea) {
|
||||
:where(select, textarea):not([readonly]) {
|
||||
&:is(:active, :focus) {
|
||||
#{$css-var-prefix}border-color: var(#{$css-var-prefix}form-element-active-border-color);
|
||||
}
|
||||
@ -219,7 +219,7 @@
|
||||
[type="file"],
|
||||
[readonly]
|
||||
),
|
||||
:where(select, textarea) {
|
||||
:where(select, textarea):not([readonly]) {
|
||||
&:focus {
|
||||
#{$css-var-prefix}box-shadow: 0
|
||||
0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user