@import "../../variables/wood"; @import "../../variables/color-set"; @import "../../variables/variables"; @import "../components/mixins"; .quick-facts { position: relative; margin: calc(2.5vw + 30px) 0; .slider { position: relative; display: block; text-align: center; background-color: $color-grey-light; overflow: hidden; @media(max-width: 767px) { margin: 0 -20px; } &:before { content: ""; position: absolute; width: 374px; height: 374px; background-color: #9AD7A3; top: 50%; left: 50%; border-radius: 50%; transform: translate(-50%, -50%); @media(max-width: 567px) { width: 110vw; height: 110vw; } } } .slide { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; @media(max-width: 567px) { min-height: 100vw; } } .container > h4 { position: absolute; left: 0; right: 0; top: 0; text-align: center; text-transform: uppercase; font-size: 12px; line-height: 1; z-index: 1; font-weight: 400; font-family: "Source Code Pro", sans-serif; margin-top: 30px; @media(max-width: 567px) { margin-top: 20px; } } .counter { display: inline-block; font-size: 180px; line-height: 1; font-family: "Korb", sans-serif; font-weight: 700; text-align: left; padding-left: 0.05em; @media(max-width: 999px) { font-size: calc(10vw + 50px); } } .fact-label { display: block; padding: 10px 20px 0; line-height: 1.4; @media(min-width: 768px) { padding-left: 60px; padding-right: 60px; } } .like-h4 { max-width: 60%; text-align: center; margin: 40px auto; @media(max-width: 999px) { max-width: 80%; padding: 0 20px; } @media(max-width: 767px) { max-width: 100%; padding: 0 20px; } } button { border: 0; background-color: transparent; padding: 0; cursor: pointer; } .tabs { position: absolute; bottom: 0; left: 50%; right: 0; padding: 0; list-style: none; transform: translate(-50%, 0); text-align: center; font-size: 0; line-height: 0; margin: 20px 0; @media(max-width: 567px) { margin-bottom: 12px; } li { display: inline-block; vertical-align: top; &.active button:before { background-color: $color-primary; width: 12px; height: 12px; border-radius: 7px; } } button { font-size: 0; line-height: 0; display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; &:before { content: ""; position: relative; display: block; width: 8px; height: 8px; border: 2px solid $color-primary; border-radius: 5px; transition: 0.2s ease; } } } .prev, .next { position: absolute; top: 50%; width: 50px; height: 50px; text-align: center; line-height: 50px; right: 0; margin: -25px 10px; @media(max-width: 767px) { display: none; } &:before { @include icon-small-arrow-right-simple; font-family: "Icons", sans-serif; font-size: 30px; } } .prev { left: 0; transform: rotate(180deg); } .count { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 18px; padding-bottom: 20px; font-family: "Korb", sans-serif; visibility: hidden; span { margin: 0 5px; } } }