Add .big
class to switches
This commit is contained in:
@ -364,6 +364,36 @@ With `switch` class:
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
With `switch` and `big` classes:
|
||||
|
||||
```html
|
||||
<input class="switch big" type="checkbox" />
|
||||
<label>Checkbox</label>
|
||||
```
|
||||
|
||||
<ul>
|
||||
<li>
|
||||
<input class="switch big" type="checkbox" />
|
||||
<label> Milk</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="switch big" type="checkbox" />
|
||||
<label> Eggs</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="switch big" type="checkbox" />
|
||||
<label> Flour</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="switch big" type="checkbox" checked />
|
||||
<label> Coffee</label>
|
||||
</li>
|
||||
<li>
|
||||
<input class="switch big" type="checkbox" disabled />
|
||||
<label> Combustible lemons</label>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
With `radio` type:
|
||||
|
||||
```html
|
||||
|
@ -94,6 +94,17 @@ input[type="checkbox"] {
|
||||
width: 2.5rem;
|
||||
height: 1.5rem;
|
||||
|
||||
&.big {
|
||||
vertical-align: -0.625rem;
|
||||
width: 3rem;
|
||||
height: 2rem;
|
||||
|
||||
&::before {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&::before {
|
||||
-webkit-mask-image: none;
|
||||
top: 0.25rem;
|
||||
|
Reference in New Issue
Block a user