174 lines
3.5 KiB
SCSS
174 lines
3.5 KiB
SCSS
$bg: fade-out(#fff, 0.05);
|
|
$textColor: #484848;
|
|
$textColor2: #9A9697;
|
|
$primary: #E75B12;
|
|
$boxShadow: 0px 0px 8px rgba(0, 0, 0, .25);
|
|
|
|
.homelink {
|
|
position: absolute;
|
|
right: 2rem;
|
|
top: 2rem;
|
|
|
|
transition: right 300ms linear;
|
|
|
|
a {
|
|
color: $bg;
|
|
line-height: 1;
|
|
font-size: 2.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
svg {
|
|
filter: drop-shadow($boxShadow);
|
|
}
|
|
|
|
&.open {
|
|
right: 31vw;
|
|
|
|
svg {
|
|
transform: scale(-1, 1);
|
|
}
|
|
}
|
|
}
|
|
|
|
.sidebar {
|
|
position: fixed;
|
|
width: 30vw;
|
|
top: 2rem;
|
|
right: -50%;
|
|
bottom: 0;
|
|
transition: all 300ms linear;
|
|
line-height: 1.25;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
color: #484848;
|
|
|
|
&.open {
|
|
right: 0;
|
|
}
|
|
|
|
&-inner {
|
|
// max-height: calc(100vh - 38rem);
|
|
overflow: auto;
|
|
}
|
|
|
|
&-content {
|
|
background-color: $bg;
|
|
border-top-left-radius: 0.5rem;
|
|
border-bottom-left-radius: 0.5rem;
|
|
box-shadow: $boxShadow;
|
|
|
|
color: $textColor;
|
|
}
|
|
|
|
&-accordion {
|
|
padding: 1.125rem 1rem;
|
|
border-bottom: 2px solid var(--primary-color);
|
|
max-height: 4rem;
|
|
overflow: hidden;
|
|
transition: max-height 300ms linear;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
h3 {
|
|
font-weight: 700;
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
p {
|
|
&:not(:last-child) {
|
|
margin-bottom: 1rem;
|
|
}
|
|
}
|
|
|
|
&-title {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 0.75rem;
|
|
color: var(--primary-color);
|
|
cursor: pointer;
|
|
|
|
svg {
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
&.open {
|
|
max-height: 50vh;
|
|
}
|
|
|
|
&-content {
|
|
max-height: 20vh;
|
|
overflow: auto;
|
|
margin-top: 1.125rem;
|
|
padding-left: 2rem;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
text-align: center;
|
|
padding: 0.5rem 1rem;
|
|
min-height: 3rem;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
line-height: 1;
|
|
|
|
border-bottom: 2px solid var(--primary-color);
|
|
}
|
|
|
|
&-list {
|
|
&-item {
|
|
font-size: 1.25rem;
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-right: 0.25rem;
|
|
margin-bottom: 0.25rem;
|
|
|
|
input[type=radio],
|
|
input[type=checkbox] {
|
|
order: 10
|
|
}
|
|
label {
|
|
flex-grow: 1;
|
|
}
|
|
$r: 0.5rem;
|
|
&:before,
|
|
&::after {
|
|
content: '';
|
|
display: block;
|
|
background-color: var(--primary-color);
|
|
position: absolute;
|
|
left: -1.5rem;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
&:before {
|
|
width: $r;
|
|
height: $r;
|
|
border-radius: 50%;
|
|
top: calc(50% - 0.125rem)
|
|
}
|
|
|
|
&:after {
|
|
width: 0.125rem;
|
|
top: 50%;
|
|
bottom: -50%;
|
|
transform: translate3d((0.125rem)*1.5, -100%, 0);
|
|
}
|
|
}
|
|
}
|
|
} |