mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 08:45:06 -04:00
fix: readonly input
This commit is contained in:
parent
8f572c156c
commit
9a18b46e12
10 changed files with 18 additions and 18 deletions
|
@ -1300,12 +1300,12 @@ input:not([type=submit],
|
||||||
[type=checkbox],
|
[type=checkbox],
|
||||||
[type=radio],
|
[type=radio],
|
||||||
[readonly]):is(:active, :focus),
|
[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);
|
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
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);
|
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1315,7 +1315,7 @@ input:not([type=submit],
|
||||||
[type=range],
|
[type=range],
|
||||||
[type=file],
|
[type=file],
|
||||||
[readonly]):focus,
|
[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);
|
--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=checkbox],
|
||||||
[type=radio],
|
[type=radio],
|
||||||
[readonly]):is(:active, :focus),
|
[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);
|
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
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);
|
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1467,7 +1467,7 @@ input:not([type=submit],
|
||||||
[type=range],
|
[type=range],
|
||||||
[type=file],
|
[type=file],
|
||||||
[readonly]):focus,
|
[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);
|
--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=checkbox],
|
||||||
[type=radio],
|
[type=radio],
|
||||||
[readonly]):is(:active, :focus),
|
[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);
|
--pico-background-color: var(--pico-form-element-active-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
input:not([type=submit], [type=button], [type=reset], [role=switch], [readonly]):is(:active, :focus),
|
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);
|
--pico-border-color: var(--pico-form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1278,7 +1278,7 @@ input:not([type=submit],
|
||||||
[type=range],
|
[type=range],
|
||||||
[type=file],
|
[type=file],
|
||||||
[readonly]):focus,
|
[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);
|
--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"],
|
[type="radio"],
|
||||||
[readonly]
|
[readonly]
|
||||||
),
|
),
|
||||||
:where(select, textarea) {
|
:where(select, textarea):not([readonly]) {
|
||||||
&:is(:active, :focus) {
|
&:is(:active, :focus) {
|
||||||
#{$css-var-prefix}background-color: var(
|
#{$css-var-prefix}background-color: var(
|
||||||
#{$css-var-prefix}form-element-active-background-color
|
#{$css-var-prefix}form-element-active-background-color
|
||||||
|
@ -204,7 +204,7 @@
|
||||||
|
|
||||||
// Active & Focus
|
// Active & Focus
|
||||||
input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]),
|
input:not([type="submit"], [type="button"], [type="reset"], [role="switch"], [readonly]),
|
||||||
:where(select, textarea) {
|
:where(select, textarea):not([readonly]) {
|
||||||
&:is(:active, :focus) {
|
&:is(:active, :focus) {
|
||||||
#{$css-var-prefix}border-color: var(#{$css-var-prefix}form-element-active-border-color);
|
#{$css-var-prefix}border-color: var(#{$css-var-prefix}form-element-active-border-color);
|
||||||
}
|
}
|
||||||
|
@ -219,7 +219,7 @@
|
||||||
[type="file"],
|
[type="file"],
|
||||||
[readonly]
|
[readonly]
|
||||||
),
|
),
|
||||||
:where(select, textarea) {
|
:where(select, textarea):not([readonly]) {
|
||||||
&:focus {
|
&:focus {
|
||||||
#{$css-var-prefix}box-shadow: 0
|
#{$css-var-prefix}box-shadow: 0
|
||||||
0
|
0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue