mirror of
https://github.com/picocss/pico.git
synced 2025-04-24 02:16:15 -04:00
had to update the striped table rows again cause they were failing, and update the floating labels
This commit is contained in:
parent
af735a6d75
commit
ba48bb50da
6 changed files with 264 additions and 319 deletions
|
@ -23,9 +23,9 @@
|
|||
> textarea + label,
|
||||
> select + label {
|
||||
position: absolute;
|
||||
top: 35%;
|
||||
top: 0.55rem;
|
||||
left: 0.8rem;
|
||||
transform: translateY(-50%);
|
||||
transform: translateY(0%);
|
||||
background: var(#{$css-var-prefix}form-element-background-color);
|
||||
color: var(#{$css-var-prefix}form-element-placeholder-color);
|
||||
cursor: text;
|
||||
|
@ -38,26 +38,16 @@
|
|||
> textarea:focus + label,
|
||||
> select:focus + label,
|
||||
> select:has(option:checked:not([disabled])) + label {
|
||||
top: -5%;
|
||||
top: 0;
|
||||
padding: calc(var(#{$css-var-prefix}spacing) * 0.15)
|
||||
calc(var(#{$css-var-prefix}spacing) * 0.5);
|
||||
transform: translateY(-55%) scale(0.8);
|
||||
transform: translateY(-50%) scale(0.8);
|
||||
color: var(#{$css-var-prefix}form-element-active-border-color);
|
||||
font-size: var(#{$css-var-prefix}font-size);
|
||||
line-height: 1.15;
|
||||
transition: all $transition-fast;
|
||||
}
|
||||
|
||||
> textarea + label {
|
||||
top: 1rem;
|
||||
transform: translateY(0);
|
||||
}
|
||||
> textarea:not(:placeholder-shown) + label,
|
||||
> textarea:focus + label {
|
||||
top: 0;
|
||||
transform: translateY(-50%) scale(0.8);
|
||||
}
|
||||
|
||||
@if map.get($modules, "forms/validation") {
|
||||
> input:user-invalid:not(:placeholder-shown) + label,
|
||||
> textarea:user-invalid:not(:placeholder-shown) + label {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue