infusion
Version:
Infusion is an application framework for developing flexible stuff with JavaScript
51 lines (44 loc) • 1.35 kB
CSS
.fl-switchUI {
--fl-switch-knobSize: 1.8em;
--fl-switch-knobMargin: 0.2em;
align-items: center;
display: flex;
font-size: 1rem;
justify-content: center;
}
.fl-switchUI-control {
align-items: center;
background-color: var(--fl-buttonBgColor, #fff);
border: 0.15em solid var(--fl-buttonFgColor, currentColor);
border-radius: calc(var(--fl-switch-knobSize) + var(--fl-switch-knobMargin));
box-sizing: content-box;
color: var(--fl-buttonFgColor, currentColor);
display: flex;
font-family: inherit;
font-size: var(--fl-enhance-font-size, 100%);
margin: 0 1em;
padding: 0;
width: calc(var(--fl-switch-knobSize) * 3);
}
.fl-switchUI-control:focus {
box-shadow:
0 0 0 0.2em var(--fl-buttonBgColor, #fff),
0 0 0 0.35em var(--fl-buttonFgColor, #000);
outline: none;
}
.fl-switchUI-control[aria-checked=true] {
justify-content: flex-end;
}
.fl-switchUI-controlKnob {
background-color: var(--fl-buttonFgColor, currentColor) ;
border-radius: var(--fl-switch-knobSize);
display: inline-block;
height: var(--fl-switch-knobSize);
margin: var(--fl-switch-knobMargin);
width: var(--fl-switch-knobSize);
}
.fl-switchUI-text {
font-size: var(--fl-enhance-font-size);
font-weight: 600;
text-transform: uppercase;
}