Reverted back to before prettier

Better floating label handling
organized validation for better scss
Updated copyright for 2025
This commit is contained in:
Yohn 2025-01-10 22:35:09 -05:00
parent 5677e11bc2
commit 8533005d9b
6 changed files with 198 additions and 238 deletions

View file

@ -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;
}
}
}
}