mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
style: Checkboxes, radios and switches
This commit is contained in:
parent
fed92a6f92
commit
5b96712843
2 changed files with 107 additions and 43 deletions
|
@ -133,10 +133,14 @@
|
|||
label,
|
||||
fieldset legend {
|
||||
display: block;
|
||||
margin-bottom: calc(var(#{$✨}spacing) * 0.25);
|
||||
margin-bottom: calc(var(#{$✨}spacing) * 0.375);
|
||||
font-weight: var(#{$✨}form-label-font-weight, var(#{$✨}font-weight));
|
||||
}
|
||||
|
||||
fieldset legend {
|
||||
margin-bottom: calc(var(#{$✨}spacing) * 0.5);
|
||||
}
|
||||
|
||||
// Blocks, 100%
|
||||
input:not([type="checkbox"], [type="radio"]),
|
||||
select,
|
||||
|
@ -267,18 +271,24 @@
|
|||
&:is(:active, :focus) {
|
||||
@if $enable-important {
|
||||
#{$✨}border-color: var(#{$✨}form-element-valid-active-border-color) !important;
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-valid-focus-color) !important;
|
||||
|
||||
&:not([type="checkbox"], [type="radio"]) {
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-valid-focus-color) !important;
|
||||
}
|
||||
} @else {
|
||||
#{$✨}border-color: var(#{$✨}form-element-valid-active-border-color);
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-valid-focus-color);
|
||||
|
||||
&:not([type="checkbox"], [type="radio"]) {
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-valid-focus-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -289,18 +299,24 @@
|
|||
&:is(:active, :focus) {
|
||||
@if $enable-important {
|
||||
#{$✨}border-color: var(#{$✨}form-element-invalid-active-border-color) !important;
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-invalid-focus-color) !important;
|
||||
|
||||
&:not([type="checkbox"], [type="radio"]) {
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-invalid-focus-color) !important;
|
||||
}
|
||||
} @else {
|
||||
#{$✨}border-color: var(#{$✨}form-element-invalid-active-border-color);
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-invalid-focus-color);
|
||||
|
||||
&:not([type="checkbox"], [type="radio"]) {
|
||||
#{$✨}box-shadow: 0
|
||||
0
|
||||
0
|
||||
var(#{$✨}outline-width)
|
||||
var(#{$✨}form-element-invalid-focus-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue