62 lines
896 B
SCSS
62 lines
896 B
SCSS
.container {
|
|
position: relative;
|
|
}
|
|
|
|
.popup {
|
|
background: #fff;
|
|
border: 2px solid #000;
|
|
top: calc(100% + 8px);
|
|
transform: translateX(-50%);
|
|
opacity: 1;
|
|
|
|
@include font-size(1.6rem);
|
|
|
|
padding: 2.4rem 2.4rem 2.4rem 1.6rem;
|
|
position: absolute;
|
|
z-index: 10;
|
|
|
|
ul {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
li {
|
|
margin-bottom: 1.6rem;
|
|
padding-left: 3.6rem;
|
|
position: relative;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
a {
|
|
border: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
img {
|
|
filter: invert(1);
|
|
max-height: 2rem;
|
|
max-width: 2rem;
|
|
}
|
|
|
|
.icon {
|
|
left: 1.5rem;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
}
|
|
|
|
// TODO: animation
|
|
// .popup {
|
|
// opacity: 1;
|
|
// transition: opacity 0.3s;
|
|
// z-index: 1;
|
|
// &.visible {
|
|
// opacity: 0;
|
|
// transition: opacity 0.3s, z-index 0s 0.3s;
|
|
// z-index: -1;
|
|
// }
|
|
// }
|