feat: Add slider and styles
This commit is contained in:
@@ -1,21 +1,78 @@
|
|||||||
// Set your brand colors
|
$primary: #6CD4FF;
|
||||||
$purple: #8a4d76;
|
$link: #292a2c;
|
||||||
$pink: #4f8e1b;
|
$grey-light: #c4c6ce;
|
||||||
$brown: #757763;
|
$grey-dark: #262728;
|
||||||
$beige-light: #d0d1cd;
|
|
||||||
$beige-lighter: #eff0eb;
|
|
||||||
|
|
||||||
// Path to Bulma's sass folder
|
// Path to Bulma's sass folder
|
||||||
@use "bulma/sass" with (
|
@use "bulma/sass" with (
|
||||||
$family-primary: '"Nunito", sans-serif',
|
$family-primary: '"Nunito", sans-serif',
|
||||||
$grey-dark: $brown,
|
$grey-dark: $grey-dark,
|
||||||
$grey-light: $beige-light,
|
$grey-light: $grey-light,
|
||||||
$primary: $purple,
|
$primary: $primary,
|
||||||
$link: $pink,
|
$link: $link,
|
||||||
$control-border-width: 2px,
|
$control-border-width: 2px,
|
||||||
$input-shadow: none
|
$input-shadow: none
|
||||||
);
|
);
|
||||||
|
|
||||||
|
.card-header {
|
||||||
|
background-color: $primary;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.toggle-switch {
|
||||||
|
display: inline-block;
|
||||||
|
background: #ccc;
|
||||||
|
border-radius: 16px;
|
||||||
|
width: 58px;
|
||||||
|
height: 32px;
|
||||||
|
position: relative;
|
||||||
|
vertical-align: middle;
|
||||||
|
transition: background 0.25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-switch:before, .toggle-switch:after {
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-switch:before {
|
||||||
|
display: block;
|
||||||
|
background: linear-gradient(to bottom, #fff 0%, #eee 100%);
|
||||||
|
border-radius: 50%;
|
||||||
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
position: absolute;
|
||||||
|
top: 4px;
|
||||||
|
left: 4px;
|
||||||
|
transition: left 0.25s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle:hover .toggle-switch:before {
|
||||||
|
background: linear-gradient(to bottom, #fff 0%, #fff 100%);
|
||||||
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.checked + .toggle-switch {
|
||||||
|
background: #56c080;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checked + .toggle-switch:before {
|
||||||
|
left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-checkbox {
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.slider-label {
|
||||||
|
margin-left: 5px;
|
||||||
|
position: relative;
|
||||||
|
top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Import the Google Font
|
// Import the Google Font
|
||||||
|
Reference in New Issue
Block a user