mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 10:46:14 -04:00
Reverted back to before prettier
Better floating label handling organized validation for better scss Updated copyright for 2025
This commit is contained in:
parent
5677e11bc2
commit
8533005d9b
6 changed files with 198 additions and 238 deletions
|
@ -208,3 +208,58 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@if map.get($modules, "forms/floating") {
|
||||
#{$parent-selector} [role="group"] > section[role="form"] {
|
||||
flex: 1;
|
||||
|
||||
> *,
|
||||
> input:not([type="checkbox"], [type="radio"]),
|
||||
> select,
|
||||
> label,
|
||||
> legend,
|
||||
> details {
|
||||
// need to check this for details > summary
|
||||
&:focus {
|
||||
z-index: 4;
|
||||
}
|
||||
}
|
||||
|
||||
> input:not([type="checkbox"], [type="radio"]),
|
||||
> select {
|
||||
&:focus {
|
||||
z-index: 10;
|
||||
}
|
||||
+ label {
|
||||
z-index: 10;
|
||||
// label was positioned above placeholder..
|
||||
margin-top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:first-child) {
|
||||
> *,
|
||||
> input:not([type="checkbox"], [type="radio"]),
|
||||
> select,
|
||||
> label,
|
||||
> legend,
|
||||
> details > summary {
|
||||
margin-left: 0;
|
||||
border-top-left-radius: 0;
|
||||
border-bottom-left-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
> *,
|
||||
> input:not([type="checkbox"], [type="radio"]),
|
||||
> select,
|
||||
> label,
|
||||
> legend,
|
||||
> details > summary {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue