113 lines
1.7 KiB
SCSS
113 lines
1.7 KiB
SCSS
//@import "../../../node_modules/foundation-sites/scss/foundation";
|
|
|
|
.settings-container {
|
|
border: 1px solid black;
|
|
border-radius: 2px;
|
|
padding: 0.3rem;
|
|
|
|
#settings-fragments-container {
|
|
@include breakpoint(medium) {
|
|
border-left: 1px solid $prototype-border-color;
|
|
}
|
|
|
|
#settings-fragments {
|
|
> * {
|
|
display: none;
|
|
|
|
&.active {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
height: initial;
|
|
|
|
@include breakpoint(small down) {
|
|
font-size: 0.6em;
|
|
}
|
|
@include breakpoint(smedium down) {
|
|
font-size: 0.7em;
|
|
}
|
|
|
|
input {
|
|
|
|
display: none;
|
|
|
|
&:checked + .slider {
|
|
//background-color: #2196F3;
|
|
&:before {
|
|
transform: translateX(1.5em);
|
|
}
|
|
}
|
|
|
|
&:focus + .slider {
|
|
//box-shadow: 0 0 1px #2196F3;
|
|
}
|
|
}
|
|
|
|
.slider {
|
|
display: inline-block;
|
|
position: relative;
|
|
cursor: pointer;
|
|
width: 3em;
|
|
height: 1.5em;
|
|
border-radius: 1.5em;
|
|
background-color: #ccc;
|
|
transition: .4s;
|
|
margin-bottom: 0;
|
|
margin-top: 0;
|
|
|
|
&:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 1.1em;
|
|
width: 1.1em;
|
|
left: 0.15em;
|
|
bottom: 0.15em;
|
|
background-color: white;
|
|
transition: .4s;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
img, svg {
|
|
width: 1.4em;
|
|
display: inline;
|
|
vertical-align: initial;
|
|
|
|
path {
|
|
stroke-color: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
label {
|
|
font-size: 1em !important;
|
|
|
|
}
|
|
|
|
.setting-row:not(.hidden) {
|
|
line-height: 1;
|
|
display: flex;
|
|
padding: 0.5rem 0.4rem;
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
cursor: pointer;
|
|
background: rgba(195, 195, 195, 0.13);
|
|
|
|
> * {
|
|
flex: 1;
|
|
}
|
|
|
|
input[type=checkbox] {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|