mirror of
https://git.theinfopunk.com/punk/thewwwdotcom-blog.git
synced 2026-05-14 04:29:10 -04:00
82 lines
1.4 KiB
SCSS
82 lines
1.4 KiB
SCSS
.optionswitch {
|
|
position: relative;
|
|
|
|
&__label {
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&__list {
|
|
display: none;
|
|
list-style: none;
|
|
padding: 0;
|
|
position: relative;
|
|
|
|
@include desktop {
|
|
border-radius: 5px;
|
|
position: absolute;
|
|
top: 32px;
|
|
|
|
@include themed() {
|
|
background: t('primary-lighter');
|
|
box-shadow: t('shadow');
|
|
}
|
|
}
|
|
|
|
&-item {
|
|
background: transparent;
|
|
display: block;
|
|
line-height: 1;
|
|
bottom: 0;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
padding-top: 24px;
|
|
|
|
@include themed() {
|
|
color: t('primary');
|
|
}
|
|
|
|
@include desktop {
|
|
padding: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&__triangle {
|
|
display: none;
|
|
|
|
&::before {
|
|
content: '';
|
|
border-radius: 2px 0px 0px 0px;
|
|
height: 14px;
|
|
left: calc(50% / 2);
|
|
overflow: hidden;
|
|
position: absolute;
|
|
transform: rotate(45deg) translateY(0px) translatex(10px);
|
|
width: 14px;
|
|
|
|
@include themed() {
|
|
background: t('primary-lighter');
|
|
box-shadow: t('shadow');
|
|
border-color: t('primary-lighter');
|
|
}
|
|
}
|
|
}
|
|
|
|
&__picker {
|
|
&:checked {
|
|
~ .optionswitch {
|
|
&__list {
|
|
display: block;
|
|
}
|
|
|
|
&__triangle {
|
|
@include desktop {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|