2022-10-25 15:36:32 +00:00
|
|
|
.container {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2022-10-17 20:53:04 +00:00
|
|
|
.popup {
|
|
|
|
background: #fff;
|
|
|
|
border: 2px solid #000;
|
2022-10-25 15:36:32 +00:00
|
|
|
top: calc(100% + 8px);
|
|
|
|
opacity: 1;
|
2022-10-17 21:01:19 +00:00
|
|
|
|
2022-10-28 09:10:14 +00:00
|
|
|
&.horizontalAnchorCenter {
|
|
|
|
left: 50%;
|
|
|
|
transform: translateX(-50%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.horizontalAnchorRight {
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2022-10-17 20:53:04 +00:00
|
|
|
@include font-size(1.6rem);
|
2022-10-17 21:01:19 +00:00
|
|
|
|
2022-10-26 19:22:22 +00:00
|
|
|
padding: 2.4rem;
|
2022-10-17 20:53:04 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin-bottom: 1.6rem;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
border: none;
|
2022-10-25 15:36:32 +00:00
|
|
|
white-space: nowrap;
|
2022-10-26 19:22:22 +00:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
img {
|
|
|
|
filter: invert(0);
|
|
|
|
}
|
|
|
|
}
|
2022-10-17 20:53:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
filter: invert(1);
|
|
|
|
max-height: 2rem;
|
|
|
|
max-width: 2rem;
|
2022-10-26 19:22:22 +00:00
|
|
|
transition: filter 0.3s;
|
2022-10-17 20:53:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon {
|
2022-10-26 19:22:22 +00:00
|
|
|
display: inline-block;
|
|
|
|
width: 3.6rem;
|
2022-10-17 20:53:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-25 15:36:32 +00:00
|
|
|
// 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;
|
|
|
|
// }
|
|
|
|
// }
|