webapp/src/components/_shared/Popup/Popup.module.scss

104 lines
1.4 KiB
SCSS
Raw Normal View History

2022-10-25 15:36:32 +00:00
.container {
position: relative;
}
2022-10-17 20:53:04 +00:00
.popup {
background: #fff;
2022-12-17 03:27:00 +00:00
color: #000;
min-width: 144px;
opacity: 1;
2022-12-17 03:27:00 +00:00
position: absolute;
2023-01-25 22:13:01 +00:00
text-align: left;
top: calc(100% + 8px);
2022-12-17 03:27:00 +00:00
z-index: 100;
2022-10-17 21:01:19 +00:00
2022-12-17 03:27:00 +00:00
ul {
margin-bottom: 0;
2022-12-17 03:27:00 +00:00
li {
position: relative;
2022-12-17 03:27:00 +00:00
&:last-child {
margin-bottom: 0;
}
}
}
2022-12-17 03:27:00 +00:00
&.bordered {
@include font-size(1.6rem);
border: 2px solid #000;
padding: 2.4rem;
2022-12-17 03:27:00 +00:00
ul li {
margin-bottom: 1.6rem;
2022-12-17 03:27:00 +00:00
&:last-child {
margin-bottom: 0;
}
}
2022-10-17 20:53:04 +00:00
}
2022-12-17 03:27:00 +00:00
&.tiny {
@include font-size(1.4rem);
box-shadow: 0 4px 60px rgba(0, 0, 0, 0.1);
padding: 1rem;
2022-12-17 03:27:00 +00:00
ul li {
margin-bottom: 1rem;
2022-12-17 03:27:00 +00:00
&:last-child {
margin-bottom: 0;
}
2022-10-17 20:53:04 +00:00
}
}
2022-12-17 03:27:00 +00:00
&.horizontalAnchorCenter {
left: 50%;
transform: translateX(-50%);
}
&.horizontalAnchorRight {
right: 0;
}
2022-11-02 21:55:29 +00:00
.topBorderItem {
border-top: 2px solid;
padding-top: 1em;
}
2022-10-17 20:53:04 +00:00
a {
border: none;
2022-10-25 15:36:32 +00:00
white-space: nowrap;
2022-10-26 19:22:22 +00:00
&:hover {
.icon img {
2022-10-26 19:22:22 +00:00
filter: invert(0);
}
}
2022-10-17 20:53:04 +00:00
}
.icon {
2022-10-26 19:22:22 +00:00
display: inline-block;
width: 3.6rem;
img {
filter: invert(1);
max-height: 2rem;
max-width: 2rem;
transition: filter 0.3s;
}
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;
// }
// }