mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 02:16:15 -04:00
style: textarea
This commit is contained in:
parent
76a656a08b
commit
44366a33d5
10 changed files with 61 additions and 16 deletions
|
@ -780,8 +780,7 @@ sup {
|
||||||
address,
|
address,
|
||||||
blockquote,
|
blockquote,
|
||||||
dl,
|
dl,
|
||||||
figure,
|
figure:not(figure:has(table)),
|
||||||
form,
|
|
||||||
ol,
|
ol,
|
||||||
p,
|
p,
|
||||||
pre,
|
pre,
|
||||||
|
@ -1413,10 +1412,20 @@ select[multiple] option:checked {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
display: block;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
textarea[aria-invalid] {
|
||||||
|
--pico-icon-height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
|
||||||
|
background-position: top right 0.75rem !important;
|
||||||
|
background-size: 1rem var(--pico-icon-height) !important;
|
||||||
|
}
|
||||||
|
|
||||||
:where(input, select, textarea) + small {
|
:where(input, select, textarea) + small {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--pico-spacing) * -0.625);
|
margin-top: calc(var(--pico-spacing) * -0.75);
|
||||||
margin-bottom: var(--pico-spacing);
|
margin-bottom: var(--pico-spacing);
|
||||||
color: var(--pico-muted-color);
|
color: var(--pico-muted-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
15
css/pico.css
15
css/pico.css
|
@ -824,8 +824,7 @@ sup {
|
||||||
address,
|
address,
|
||||||
blockquote,
|
blockquote,
|
||||||
dl,
|
dl,
|
||||||
figure,
|
figure:not(figure:has(table)),
|
||||||
form,
|
|
||||||
ol,
|
ol,
|
||||||
p,
|
p,
|
||||||
pre,
|
pre,
|
||||||
|
@ -1504,10 +1503,20 @@ select[multiple] option:checked {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
display: block;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
textarea[aria-invalid] {
|
||||||
|
--pico-icon-height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
|
||||||
|
background-position: top right 0.75rem !important;
|
||||||
|
background-size: 1rem var(--pico-icon-height) !important;
|
||||||
|
}
|
||||||
|
|
||||||
:where(input, select, textarea) + small {
|
:where(input, select, textarea) + small {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--pico-spacing) * -0.625);
|
margin-top: calc(var(--pico-spacing) * -0.75);
|
||||||
margin-bottom: var(--pico-spacing);
|
margin-bottom: var(--pico-spacing);
|
||||||
color: var(--pico-muted-color);
|
color: var(--pico-muted-color);
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -750,8 +750,7 @@ sup {
|
||||||
address,
|
address,
|
||||||
blockquote,
|
blockquote,
|
||||||
dl,
|
dl,
|
||||||
figure,
|
figure:not(figure:has(table)),
|
||||||
form,
|
|
||||||
ol,
|
ol,
|
||||||
p,
|
p,
|
||||||
pre,
|
pre,
|
||||||
|
@ -1383,10 +1382,20 @@ select[multiple] option:checked {
|
||||||
background-position: center left 0.75rem;
|
background-position: center left 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
display: block;
|
||||||
|
resize: vertical;
|
||||||
|
}
|
||||||
|
textarea[aria-invalid] {
|
||||||
|
--pico-icon-height: calc(1rem * var(--pico-line-height) + var(--pico-form-element-spacing-vertical) * 2 + var(--pico-border-width) * 2);
|
||||||
|
background-position: top right 0.75rem !important;
|
||||||
|
background-size: 1rem var(--pico-icon-height) !important;
|
||||||
|
}
|
||||||
|
|
||||||
:where(input, select, textarea) + small {
|
:where(input, select, textarea) + small {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(--pico-spacing) * -0.625);
|
margin-top: calc(var(--pico-spacing) * -0.75);
|
||||||
margin-bottom: var(--pico-spacing);
|
margin-bottom: var(--pico-spacing);
|
||||||
color: var(--pico-muted-color);
|
color: var(--pico-muted-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
|
@ -369,12 +369,30 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Textarea
|
||||||
|
textarea {
|
||||||
|
display: block;
|
||||||
|
resize: vertical;
|
||||||
|
|
||||||
|
&[aria-invalid] {
|
||||||
|
@if $enable-important {
|
||||||
|
#{$✨}icon-height: calc(
|
||||||
|
(1rem * var(#{$✨}line-height)) +
|
||||||
|
(var(#{$✨}form-element-spacing-vertical) * 2) +
|
||||||
|
(var(#{$✨}border-width) * 2)
|
||||||
|
);
|
||||||
|
background-position: top right 0.75rem !important;
|
||||||
|
background-size: 1rem var(#{$✨}icon-height) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Helper
|
// Helper
|
||||||
:where(input, select, textarea) {
|
:where(input, select, textarea) {
|
||||||
+ small {
|
+ small {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: calc(var(#{$✨}spacing) * -0.625);
|
margin-top: calc(var(#{$✨}spacing) * -0.75);
|
||||||
margin-bottom: var(#{$✨}spacing);
|
margin-bottom: var(#{$✨}spacing);
|
||||||
color: var(#{$✨}muted-color);
|
color: var(#{$✨}muted-color);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue