webapp/src/components/_shared/Popup/Popup.module.scss
2023-01-26 01:13:01 +03:00

104 lines
1.4 KiB
SCSS

.container {
position: relative;
}
.popup {
background: #fff;
color: #000;
min-width: 144px;
opacity: 1;
position: absolute;
text-align: left;
top: calc(100% + 8px);
z-index: 100;
ul {
margin-bottom: 0;
li {
position: relative;
&:last-child {
margin-bottom: 0;
}
}
}
&.bordered {
@include font-size(1.6rem);
border: 2px solid #000;
padding: 2.4rem;
ul li {
margin-bottom: 1.6rem;
&:last-child {
margin-bottom: 0;
}
}
}
&.tiny {
@include font-size(1.4rem);
box-shadow: 0 4px 60px rgba(0, 0, 0, 0.1);
padding: 1rem;
ul li {
margin-bottom: 1rem;
&:last-child {
margin-bottom: 0;
}
}
}
&.horizontalAnchorCenter {
left: 50%;
transform: translateX(-50%);
}
&.horizontalAnchorRight {
right: 0;
}
.topBorderItem {
border-top: 2px solid;
padding-top: 1em;
}
a {
border: none;
white-space: nowrap;
&:hover {
.icon img {
filter: invert(0);
}
}
}
.icon {
display: inline-block;
width: 3.6rem;
img {
filter: invert(1);
max-height: 2rem;
max-width: 2rem;
transition: filter 0.3s;
}
}
}
// 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;
// }
// }