File: /var/www/zaklada/html/lib/scss/core/_expandable-btn.scss
.expandable {
position: relative;
&__btn {
position: relative;
text-transform: uppercase;
font-size: rem(18);
line-height: 1;
font-weight: 700;
color: $color-white;
display: flex;
justify-content: center;
align-items: center;
padding: 10px 30px;
width: 100%;
background: $color-gold-dark;
border-radius: 30px;
z-index: 2;
cursor: pointer;
transition: all 200ms ease-in-out;
@media screen and (min-width: 992px) {
&:hover {
background: $color-gold-light;
}
font-size: rem(42);
/* padding: 10px 30px; */
}
}
&__content {
position: relative;
top: -16px;
background: $color-blue-dark;
padding: 30px 18px 7px;
// transition: 200ms all ease-in-out;
z-index: 1;
// transform: scaleY(0);
// transform-origin: top;
display: none;
width: 100%;
@media screen and (min-width: 992px) {
position: absolute;
padding: 30px 18px 55px;
// transform-origin: bottom;
top: initial;
bottom: 30px;
// display: block;
}
ul {
li {
font-size: rem(16);
margin-bottom: 15px;
color: $color-white;
font-weight: 400;
strong {
font-weight: 700;
}
&:last-of-type {
margin-bottom: 0;
}
}
}
&.show {
// transform: scaleY(1);
// display: block;
& + .expandable__btn {
z-index: 4;
}
}
}
&--hero {
.expandable {
&__btn {
width: 100%;
// font-size: rem(18);
// @media screen and (min-width: 992px) {
// font-size: rem(18);
// }
}
&__content {
background: $color-bg-gray;
padding: 25px 15px;
@media screen and (min-width: 992px) {
bottom: 15px;
}
& > h4:first-child {
margin-top: 0;
}
ul {
li {
color: $color-black;
font-size: rem(16);
text-align: left;
@media screen and (min-width: 992px) {
font-size: rem(12);
}
@media screen and (min-width: 1440px) {
font-size: rem(16);
}
}
}
h3 {
font-size: rem(16);
font-weight: 700;
color: $color-black;
margin-bottom: 17px;
text-align: center;
@media screen and (min-width: 992px) {
font-size: rem(12);
}
@media screen and (min-width: 1440px) {
font-size: rem(16);
}
}
h4 {
margin-top: 20px;
font-size: rem(16);
text-align: left;
font-weight: 700;
color: $color-blue-main;
@media screen and (min-width: 992px) {
font-size: rem(12);
}
@media screen and (min-width: 1440px) {
font-size: rem(16);
}
}
p {
text-align: left;
color: $color-black;
font-size: rem(16);
line-height: 1.5;
margin-bottom: 0;
font-weight: 400;
@media screen and (min-width: 992px) {
font-size: rem(12);
}
@media screen and (min-width: 1440px) {
font-size: rem(16);
}
strong {
font-weight: 700;
}
&:last-of-type {
margin-bottom: 0;
}
}
}
}
}
}