File: /var/www/zaklada/html/lib/scss/core/_hero.scss
.hero {
background: url("../img/hero-homepage.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
min-height: 617px;
padding-top: 144px;
@media screen and (min-width: 992px) {
min-height: auto;
padding: 0;
}
&__content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
@media screen and (min-width: 992px) {
min-height: 822px;
max-width: 538px;
align-items: flex-start;
}
@media screen and (min-width: 1360px) {
align-items: center;
}
}
&__title-image{
margin-left: auto;
margin-right: auto;
max-width:100%;
}
&__title {
color: $color-white;
margin-bottom: 54px;
font-size: rem(28);
@media screen and (min-width: 992px) {
margin-bottom: 65px;
}
@media screen and (min-width: 1200px) {
font-size: rem(42);
}
}
}
.hero-secondary {
min-height: auto;
padding-top: 0;
background-color: $color-blue-dark;
display: flex;
flex-direction: column;
@media screen and (min-width: 992px) {
min-height: 640px;
}
@media screen and (min-width: 1200px) {
min-height: auto;
padding: 0;
flex-direction: row;
}
&__left {
width: 100%;
@media screen and (min-width: 1200px) {
width: 50%;
}
}
&__right {
width: 100%;
display: flex;
align-items: center;
// padding: 16px 20px 16px;
padding: 0px 20px 16px 20px;
flex-direction: column;
justify-content: flex-end;
@media screen and (min-width: 1200px) {
width: 50%;
}
&--align-left-mid {
justify-content: center;
align-items: flex-start;
.hero-secondary__content {
align-items: flex-start;
}
.hero-secondary__title {
text-align: left;
font-size: rem(18);
margin-bottom: 5px;
@media screen and (min-width: 992px) {
margin-bottom: 20px;
}
@media screen and (min-width: 1360px) {
font-size: rem(50);
}
}
}
}
&__img-wrap {
position: relative;
height: 100%;
width: 100%;
&:after {
content: "";
position: absolute;
left: 0;
bottom: 0;
height: 40%;
width: 100%;
background: linear-gradient(0deg, #00172b 0%, rgba(0, 23, 43, 0) 96.51%);
}
}
&__img {
object-fit: cover;
width: 100%;
height: 100%;
}
&__content {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0;
@media screen and (min-width: 992px) {
padding: 0 20px;
}
}
&__title {
color: $color-white;
margin-bottom: 30px;
@media screen and (min-width: 992px) {
margin-bottom: 45px;
}
}
&__date {
font-size: rem(14);
font-weight: 400;
// font-weight: 500;
display: block;
text-align: left;
@media screen and (min-width: 992px) {
font-size: rem(30);
}
}
p {
color: $color-white;
margin-bottom: 19px;
text-align: center;
&:last-of-type {
margin-bottom: 40px;
}
@media screen and (min-width: 992px) {
margin-bottom: 20px;
// &:last-of-type {
// margin-bottom: 40px;
// }
}
}
ul {
li {
margin-bottom: 20px;
}
}
&--alt {
flex-direction: column;
@media screen and (min-width: 1360px) {
min-height: auto;
padding: 0;
flex-direction: row;
}
.hero-secondary {
&__left {
width: 100%;
@media screen and (min-width: 992px) {
width: 100%;
}
@media screen and (min-width: 1360px) {
width: 50%;
}
}
&__right {
width: 100%;
display: flex;
align-items: center;
padding: 20px 15px 24px 15px;
flex-direction: column;
// justify-content: flex-end;
justify-content: center;
@media screen and (min-width: 992px) {
padding: 80px 20px 80px 20px;
// padding: 20px 45px;
width: 100%;
}
@media screen and (min-width: 1360px) {
width: 50%;
}
}
}
}
}
.hero-tabs {
display: flex;
flex-direction: column;
width: 100%;
justify-content: center;
align-items: center;
@media screen and (min-width: 768px) {
flex-direction: row;
align-items: flex-start;
}
@media screen and (min-width: 992px) {
align-items: center;
}
.expandable {
margin: 8px 7px;
width: 290px;
// &:last-of-type {
// margin: 0;
// }
@media screen and (min-width: 768px) {
margin: 0 7px;
}
@media screen and (min-width: 1360px) {
margin: 0 7px;
width: 270px;
}
&__btn {
white-space: nowrap;
font-size: rem(18);
}
}
}