Y-SLD/assets/playkit/examples/scss/theme-customizer.scss

141 lines
2.4 KiB
SCSS
Raw Permalink Normal View History

2024-03-01 11:23:55 +00:00
@import 'base';
#theme-customizer {
width: 300px;
position: fixed;
top: 0;
bottom: 0;
background: lighten($bg-faded, 1%);
transition: right .5s;
box-shadow: -2px 2px 4px rgba(0,0,0,.08);
right: -300px;
z-index: 1040;
&.show {
right: 0;
}
section {
padding: 1.5rem;
}
}
.theme-customizer-inner {
overflow: auto;
height: calc(100% - 162px);
}
.customizer-action-btns {
.btn {
width: 45%;
cursor: pointer;
padding-top: 6px;
padding-bottom: 6px;
}
}
#theme-customizer-toggler {
display: flex;
justify-content: center;
align-items: center;
width: 55px;
height: 60px;
position: absolute;
left: -55px;
top: 35%;
border: 1px solid #f0f0f0;
background: #fff;
box-shadow: -2px 2px 4px rgba(0,0,0,.08);
cursor: pointer;
border-top-left-radius: $border-radius;
border-bottom-left-radius: $border-radius;
}
.theme-sector-row {
display: flex;
justify-content: space-between;
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
.theme-sector {
position: relative;
cursor: pointer;
margin: 0;
&:first-child {
margin-right: 1.5rem;
}
input[type="radio"] {
opacity: 0;
z-index: -1;
position: absolute;
top: 50%;
left: 50%;
}
.theme-demo::before {
width: 20px;;
height: 20px;
content: '';
border-radius: 1000px;
position: absolute;
right: -10px;
top: -10px;
display: none;
}
input[type="radio"]:checked + .theme-demo::before {
background: $brand-success;
color: #fff;
font-size: 1rem;
text-align: center;
line-height: 20px;
content: '\f00c';
font-family: 'FontAwesome';
display: block;
}
}
.theme-demo {
width: 110px;
height: 45px;
background: #fff;
position: relative;
box-shadow: 0 0 2px rgba(0,0,0,.08);
transition: box-shadow .05s;
&:hover {
box-shadow: 4px 4px 8px rgba(0,0,0,.08);
}
}
.navbar-demo {
display: block;
height: 15px;
border-bottom: 1px solid $border-color-default;
}
.menubar-demo {
display: block;
height: calc(100% - 15px);
width: 15px;
position: absolute;
top: 15px;
bottom: 0;
border-right: 1px solid $border-color-default;
}
.theme-sector-navbar-light {
.navbar-demo {
margin-left: 15px;
}
.menubar-demo {
top: 0;
height: 100%;
&.bg-primary {
background: linear-gradient(to bottom, darken($brand-primary, 5%) 15px, $brand-primary 0, $brand-primary 30px);
}
}
}