hugo-theme-zzo/assets/sass/components/_donation.scss

81 lines
1.5 KiB
SCSS

.donation {
margin: 2.5rem 0;
position: relative;
&__icons {
@include flexbox();
@include align-items(center);
@include justify-content(center);
@include flex-wrap(wrap);
a {
text-decoration: none !important;
}
}
&__message {
padding: 0.5rem;
font-size: 18px;
line-height: 18px;
font-weight: bold;
font-family: $title-font;
@include flexbox();
@include justify-content(center);
}
&__item {
font-family: $title-font;
font-size: 0.8rem;
cursor: pointer;
border-radius: 0.25rem;
margin: 0.25rem;
text-transform: capitalize;
@include flexbox();
@include align-items(center);
svg {
margin-right: 0.25rem;
}
}
&__dropup {
position: relative;
height: 100%;
@media only screen and (max-width: 769px) {
position: static;
}
&--content {
display: none;
position: absolute;
bottom: 100%;
z-index: 1;
min-width: 250px;
max-width: 350px;
height: auto;
margin-bottom: 0.25rem;
border-radius: 0.25rem;
img {
margin: auto;
}
@media only screen and (max-width: 769px) {
left: 50%;
transform: translate(-50%);
}
@include themify($themes) {
border: 1px solid themed('dropdown-item-hover-background-color');
background-color: themed('dropdown-content-background-color');
}
}
}
}
.donation__dropup:hover .donation__dropup--content {
display: block;
}