first commit
This commit is contained in:
14
wp-content/themes/ostal_WP/sass/05-components/_box.scss
Normal file
14
wp-content/themes/ostal_WP/sass/05-components/_box.scss
Normal file
@@ -0,0 +1,14 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
|
||||
.box{
|
||||
clip-path: polygon(0% 5%, 5% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
background-color: #000000;
|
||||
&--dark{
|
||||
background-color: $dark-color;
|
||||
|
||||
}
|
||||
&--light{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,138 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
|
||||
|
||||
.section-boxes-repeater{
|
||||
position: relative;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
.bg-filter{
|
||||
@include bg-filter;
|
||||
}
|
||||
.wrapper{
|
||||
position: relative;
|
||||
padding-top: 46px;
|
||||
padding-bottom: 46px;
|
||||
z-index: 99;
|
||||
@include responsive(desktop){
|
||||
padding: 146px 0;
|
||||
}
|
||||
.section-heading{
|
||||
max-width: 520px;
|
||||
@include responsive(desktop){
|
||||
margin-left: 32px;
|
||||
}
|
||||
}
|
||||
.section-description{
|
||||
@include responsive(desktop){
|
||||
max-width: 60%;
|
||||
margin-left: 32px;
|
||||
}
|
||||
}
|
||||
.boxes{
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
@include responsive(desktop){
|
||||
padding: 14px 50px 0;
|
||||
grid-template-columns: repeat(auto-fit,minmax(244px,1fr));
|
||||
}
|
||||
.box-single{
|
||||
background-color: $gray-color;
|
||||
clip-path: polygon(0% 5%, 5% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
padding: 30px 22px 15px;
|
||||
@include responsive(tablet){
|
||||
clip-path: polygon(0% 12%, 2% 0%, 100% 0%, 100% 2%, 100% 100%, 0% 100%, 0% 12%);
|
||||
}
|
||||
@include responsive(desktop){
|
||||
padding: 40px 22px 30px;
|
||||
clip-path: polygon(0% 5%, 5% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
}
|
||||
.box-image{
|
||||
max-width: 40px;
|
||||
max-height: 40px;
|
||||
aspect-ratio: 1/1;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.box-content{
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
height: 100%;
|
||||
.cta{
|
||||
align-self: end;
|
||||
text-align: end;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.bg-dark{
|
||||
.wrapper{
|
||||
.boxes.numbered-cards{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: relative;
|
||||
gap: 20px;
|
||||
counter-reset: box-counter;
|
||||
@include responsive(desktop){
|
||||
flex-direction: row;
|
||||
padding: 14px 0 0;
|
||||
}
|
||||
.box-single{
|
||||
clip-path: inherit;
|
||||
padding: inherit;
|
||||
background-color: inherit;
|
||||
@include responsive(tablet){
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
min-height: 420px;
|
||||
height: fit-content;
|
||||
padding: inherit;
|
||||
flex: 0 0 33%;
|
||||
}
|
||||
.box-content{
|
||||
display: grid;
|
||||
grid-template-rows: auto;
|
||||
height: auto;
|
||||
min-height: 300px;
|
||||
background-color: $gray-color;
|
||||
clip-path: polygon(0% 5%, 5% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
padding: 43px 40px;
|
||||
@include responsive(tablet){
|
||||
min-height: inherit;
|
||||
flex: 1 0 205px;
|
||||
clip-path: polygon(0% 10%, 3% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
}
|
||||
@include responsive(desktop){
|
||||
flex: 1 0 395px;
|
||||
clip-path: polygon(0% 5%, 5% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
}
|
||||
&__text{
|
||||
color: $dark-color;
|
||||
@include responsive(tablet){
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
margin-bootom: inherit;
|
||||
}
|
||||
}
|
||||
}
|
||||
.box-counter{
|
||||
color: $accent-color;
|
||||
font-size: 7.2rem;
|
||||
font-weight: 700;
|
||||
line-height: 110%;
|
||||
margin-left: 16px;
|
||||
&:before{
|
||||
content: "0" counter(box-counter);
|
||||
counter-increment: box-counter;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
89
wp-content/themes/ostal_WP/sass/05-components/_buttons.scss
Normal file
89
wp-content/themes/ostal_WP/sass/05-components/_buttons.scss
Normal file
@@ -0,0 +1,89 @@
|
||||
@use "../01-base/typography" as *;
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
|
||||
@mixin button-primary($bg) {
|
||||
background: $bg;
|
||||
&:hover {
|
||||
background:darken($bg,8%);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
&:active {
|
||||
background:darken($bg,25%);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin button-secondary($bg) {
|
||||
background: $bg;
|
||||
&:hover {
|
||||
background:darken($bg,8%);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
&:active {
|
||||
background:darken($bg,25%);
|
||||
}
|
||||
}
|
||||
|
||||
@mixin button-tertiary($bg) {
|
||||
background: $bg;
|
||||
&:hover {
|
||||
background:darken($bg,8%);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
&:active {
|
||||
background:darken($bg,25%);
|
||||
}
|
||||
}
|
||||
|
||||
%btn {
|
||||
@include font-primary;
|
||||
font-weight: 400;
|
||||
display: block;
|
||||
padding: 15px 68px;
|
||||
border-radius: 7px;
|
||||
font-size: 1.6rem;
|
||||
text-transform: uppercase;
|
||||
max-width: fit-content;
|
||||
@include responsive(desktop){
|
||||
padding: 15px 68px;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-primary, a.btn-primary {
|
||||
@extend %btn;
|
||||
background-color: $accent-color;
|
||||
color: $white-color!important;
|
||||
border: 2px solid $accent-color;
|
||||
transition: all 0.3s ease;
|
||||
&:hover{
|
||||
background-color: darken($accent-color, 8%);
|
||||
border: 2px solid darken($accent-color, 8%);
|
||||
}
|
||||
}
|
||||
.btn-secondary, a.btn-secondary {
|
||||
@extend %btn;
|
||||
background-color: $dark-color;
|
||||
color: $accent-color;
|
||||
border: 2px solid $white-color;
|
||||
transition: all 0.3s ease;
|
||||
&:hover{
|
||||
background-color: darken($dark-color, 8%);
|
||||
border: 2px solid $accent-color;
|
||||
}
|
||||
}
|
||||
|
||||
.wp-block-button{
|
||||
&__link, a{
|
||||
@extend %btn;
|
||||
background-color: $accent-color!important;
|
||||
color: $white-color!important;
|
||||
border: 2px solid $accent-color!important;
|
||||
}
|
||||
}
|
||||
|
||||
.btn-link, a.btn-link {
|
||||
font-size: 1.6rem;
|
||||
color: $dark-color;
|
||||
text-decoration: underline;
|
||||
}
|
||||
92
wp-content/themes/ostal_WP/sass/05-components/_forms.scss
Normal file
92
wp-content/themes/ostal_WP/sass/05-components/_forms.scss
Normal file
@@ -0,0 +1,92 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../01-base/typography" as *;
|
||||
|
||||
.wpcf7{
|
||||
.wpcf7-form{
|
||||
h2{
|
||||
@include heading--md;
|
||||
color: $white-color;
|
||||
}
|
||||
label{
|
||||
display: block;
|
||||
font-size: 1.8rem;
|
||||
line-height: 150%;
|
||||
color: $white-color;
|
||||
.wpcf7-form-control-wrap{
|
||||
display: block;
|
||||
height: 40px;
|
||||
margin: 5px 0px 10px;
|
||||
input, textarea{
|
||||
width: 100%;
|
||||
background-color: transparent;
|
||||
color: $white-color;
|
||||
font-size: 1.4rem;
|
||||
padding: 5px 15px;
|
||||
border: 1px solid $white-color;
|
||||
border-radius: 7px;
|
||||
&:focus{
|
||||
border: 1px solid $accent-color;
|
||||
}
|
||||
}
|
||||
textarea{
|
||||
max-height: 82px;
|
||||
}
|
||||
.wpcf7-not-valid-tip{
|
||||
font-size: 1rem;
|
||||
}
|
||||
&[data-name="your-message"]{
|
||||
height: 80px;
|
||||
textarea{
|
||||
height: 82px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.terms-and-conditions{
|
||||
display: flex;
|
||||
font-size: 1.2rem;
|
||||
margin-bottom: 10px;
|
||||
.wpcf7-form-control-wrap{
|
||||
display: block;
|
||||
margin: 0;
|
||||
.wpcf7-list-item{
|
||||
margin-left: 0;
|
||||
}
|
||||
}
|
||||
span{
|
||||
display: block;
|
||||
}
|
||||
input[type="checkbox"]{
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0 10px 0 0;
|
||||
background-color: $dark-color!important;
|
||||
background: transparent;
|
||||
border: none!important;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 0 0 1px $white-color inset;
|
||||
outline-color: transparent;
|
||||
&:checked{
|
||||
background-color: $accent-color!important;
|
||||
border: 1px solid $accent-color!important;
|
||||
accent-color: $accent-color!important;
|
||||
}
|
||||
}
|
||||
a{
|
||||
color: $white-color;
|
||||
transition: color 0.3s ease;
|
||||
&:hover{
|
||||
color: $accent-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.wpcf7-response-output{
|
||||
border: 1px solid $accent-color!important;
|
||||
border-radius: 7px;
|
||||
color: $white-color;
|
||||
padding: 2px;
|
||||
margin: 4px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
109
wp-content/themes/ostal_WP/sass/05-components/_hero-slider.scss
Normal file
109
wp-content/themes/ostal_WP/sass/05-components/_hero-slider.scss
Normal file
@@ -0,0 +1,109 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
|
||||
.hero-slider{
|
||||
@include responsive(small-phones){
|
||||
height: 100%;
|
||||
}
|
||||
height: 90vh;
|
||||
width: 100%;
|
||||
@include responsive(desktop){
|
||||
height: inherit;
|
||||
width: inherit;
|
||||
}
|
||||
.swiper-wrapper{
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.swiper-slide{
|
||||
height: 100%;
|
||||
width: 100%!important;
|
||||
opacity: 0!important;
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
gap: 20px;
|
||||
padding-bottom: 90px;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover!important;
|
||||
background-position: center;
|
||||
@include responsive(desktop){
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
min-height: 780px;
|
||||
padding: 102px;
|
||||
width: 100%;
|
||||
}
|
||||
.hero-slider-heading{
|
||||
z-index: 99;
|
||||
@include responsive(tablet){
|
||||
max-width: 70%;
|
||||
align-self: flex-end;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
max-width: inherit;
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
}
|
||||
.hero-slider-content{
|
||||
z-index: 99;
|
||||
padding: 20px;
|
||||
@include responsive(tablet){
|
||||
max-width: 70%;
|
||||
align-self: flex-end;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
max-width: inherit;
|
||||
align-self: inherit;
|
||||
flex: 0 0 50%;
|
||||
padding: 50px 28px 64px 42px;
|
||||
}
|
||||
}
|
||||
&-active{
|
||||
opacity: 1!important;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
}
|
||||
.bg-filter{
|
||||
@include bg-filter;
|
||||
@include bg-filter--gradient;
|
||||
}
|
||||
}
|
||||
.swiper-nav{
|
||||
width: 110px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: initial;
|
||||
gap: 10px;
|
||||
bottom: 20px;
|
||||
right: 65px;
|
||||
@include responsive(tablet){
|
||||
right: 100px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
right: 102px;
|
||||
bottom: 42px;
|
||||
}
|
||||
.swiper-button{
|
||||
display: block;
|
||||
background-color: $dark-color;
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
padding: 12px;
|
||||
content: url("./images/arrow-right.png");
|
||||
position: relative;
|
||||
&-prev{
|
||||
transform: rotate(180deg);
|
||||
left: 0;
|
||||
}
|
||||
&-next{
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
|
||||
.hero-with-form{
|
||||
height: 90vh;
|
||||
width: 100%;
|
||||
margin-bottom: 80px;
|
||||
@include responsive(tablet){
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
max-height: 780px;
|
||||
}
|
||||
.hero-wrapper{
|
||||
position: relative;
|
||||
height: 100%;
|
||||
width: 100%!important;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover!important;
|
||||
background-position: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@include responsive(tablet){
|
||||
flex-direction: row;
|
||||
align-items: flex-end;
|
||||
padding-bottom: 90px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
padding: 102px;
|
||||
}
|
||||
}
|
||||
.bg-filter{
|
||||
@include bg-filter;
|
||||
@include bg-filter--gradient;
|
||||
}
|
||||
.hero-content{
|
||||
padding: 20px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-content: flex-end;
|
||||
gap: 20px;
|
||||
flex: 0 1 50%;
|
||||
z-index: 998;
|
||||
@include responsive(tablet){
|
||||
align-items: flex-start;
|
||||
}
|
||||
.hero-heading{
|
||||
z-index: 99;
|
||||
@include responsive(tablet){
|
||||
max-width: 70%;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
max-width: inherit;
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
}
|
||||
.hero-text{
|
||||
text-shadow: 2px 2px 3px $dark-color;
|
||||
}
|
||||
}
|
||||
.hero-form{
|
||||
background-color: $dark-color;
|
||||
padding: 22px;
|
||||
clip-path: polygon(0% 4%, 4% 0%, 100% 0%, 100% 4%, 100% 100%, 0% 100%, 0% 4%);
|
||||
flex: 0 0 50%;
|
||||
@include responsive(tablet){
|
||||
height: fit-content;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
padding: 28px;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
wp-content/themes/ostal_WP/sass/05-components/_index.scss
Normal file
15
wp-content/themes/ostal_WP/sass/05-components/_index.scss
Normal file
@@ -0,0 +1,15 @@
|
||||
@forward '../05-components/buttons';
|
||||
@forward '../05-components/forms';
|
||||
@forward '../05-components/lists';
|
||||
@forward '../05-components/hero-slider';
|
||||
@forward '../05-components/box';
|
||||
@forward '../05-components/two-col-section';
|
||||
@forward '../05-components/two-col-section-with-bg';
|
||||
@forward '../05-components/one_col_cta';
|
||||
@forward '../05-components/one_col_cta_images';
|
||||
@forward '../05-components/boxes-repeater';
|
||||
@forward '../05-components/section-gallery';
|
||||
@forward '../05-components/hero-with-form';
|
||||
@forward '../05-components/social-media';
|
||||
|
||||
|
||||
12
wp-content/themes/ostal_WP/sass/05-components/_lists.scss
Normal file
12
wp-content/themes/ostal_WP/sass/05-components/_lists.scss
Normal file
@@ -0,0 +1,12 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../01-base/typography" as *;
|
||||
|
||||
ul{
|
||||
list-style: inherit;
|
||||
padding-left: 20px;
|
||||
li{
|
||||
line-height: 1.5;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
@use "../01-base/typography" as *;
|
||||
|
||||
|
||||
.one-col-cta{
|
||||
.wrapper{
|
||||
@include responsive(tablet){
|
||||
clip-path: polygon(0% 10%, 3% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
}
|
||||
|
||||
@include responsive(desktop){
|
||||
clip-path: polygon(0% 10%, 2% 0%, 100% 0%, 100% 2%, 100% 100%, 0% 100%, 0% 12%)
|
||||
}
|
||||
}
|
||||
&.align-left{
|
||||
padding: 0px 0px;
|
||||
@include responsive(tablet){
|
||||
padding: 80px 50px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
padding: 180px 0;
|
||||
}
|
||||
.wrapper{
|
||||
padding: 50px 35px;
|
||||
@include responsive(desktop){
|
||||
grid-column: 1 / span 9;
|
||||
}
|
||||
.heading{
|
||||
@include heading--md;
|
||||
}
|
||||
.text{
|
||||
padding-right: 100px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cta{
|
||||
margin-bottom: 30px;
|
||||
@include responsive(desktop){
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.btn{
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.align-center{
|
||||
padding: 40px 0;
|
||||
.wrapper{
|
||||
padding: 26px 20px 20px;
|
||||
@include responsive(desktop){
|
||||
padding: 50px 90px 9px;
|
||||
grid-column: 2 / 12;
|
||||
}
|
||||
.heading{
|
||||
@include heading--md;
|
||||
text-align: center;
|
||||
@include responsive(tablet){
|
||||
@include heading--xl;
|
||||
}
|
||||
}
|
||||
.text{
|
||||
text-align: center;
|
||||
}
|
||||
.cta{
|
||||
margin-bottom: 30px;
|
||||
@include responsive(desktop){
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.btn{
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.bg-dark{
|
||||
background-color: $dark-color;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,116 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
@use "../01-base/typography" as *;
|
||||
|
||||
|
||||
.one-col-cta-images{
|
||||
display: grid;
|
||||
gap: 20px;
|
||||
@include responsive(desktop){
|
||||
grid-template-columns: repeat(12, 82px);
|
||||
}
|
||||
.wrapper{
|
||||
@include responsive(tablet){
|
||||
clip-path: polygon(0% 2%, 2% 0%, 100% 0%, 100% 5%, 100% 100%, 0% 100%, 0% 5%);
|
||||
}
|
||||
|
||||
@include responsive(desktop){
|
||||
clip-path: polygon(0% 2%, 2% 0%, 100% 0%, 100% 10%, 100% 100%, 0% 100%, 0% 3%);
|
||||
}
|
||||
}
|
||||
&.align-left{
|
||||
padding: 0px 0px;
|
||||
@include responsive(tablet){
|
||||
padding: 80px 50px;
|
||||
}
|
||||
@include responsive(desktop){
|
||||
padding: 145px 0;
|
||||
}
|
||||
.wrapper{
|
||||
padding: 50px 35px;
|
||||
@include responsive(desktop){
|
||||
grid-column: 1 / span 12;
|
||||
}
|
||||
.heading{
|
||||
@include heading--md;
|
||||
}
|
||||
.text{
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cta{
|
||||
margin-bottom: 30px;
|
||||
@include responsive(desktop){
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.btn{
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
.gallery{
|
||||
display: grid;
|
||||
grid-template-columns: 205px;
|
||||
// grid-template-rows: repeat(auto-fit, 205px);
|
||||
grid-template-rows: repeat(auto, minmax(205px, 205px));
|
||||
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
margin-bottom: 40px;
|
||||
margin-top: 30px;
|
||||
@include responsive(tablet){
|
||||
grid-template-columns: repeat(auto-fit, 205px);
|
||||
}
|
||||
@include responsive(desktop){
|
||||
// grid-template-rows: 205px;
|
||||
grid-template-columns: repeat(4, 245px);
|
||||
|
||||
}
|
||||
&-image{
|
||||
overflow: hidden;
|
||||
// max-height: 205px;
|
||||
&:nth-child(2n){
|
||||
display: none;
|
||||
@include responsive(tablet){
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
img{
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
&.align-center{
|
||||
padding: 40px 0;
|
||||
.wrapper{
|
||||
padding: 26px 20px 0px;
|
||||
@include responsive(desktop){
|
||||
padding: 50px 90px 9px;
|
||||
grid-column: 2 / 12;
|
||||
}
|
||||
.heading{
|
||||
@include heading--md;
|
||||
text-align: center;
|
||||
@include responsive(tablet){
|
||||
@include heading--xl;
|
||||
}
|
||||
}
|
||||
.text{
|
||||
text-align: center;
|
||||
}
|
||||
.cta{
|
||||
margin-bottom: 30px;
|
||||
@include responsive(desktop){
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.btn{
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
|
||||
.section-gallery{
|
||||
padding: 45px 0;
|
||||
@include responsive(desktop){
|
||||
padding: 55px 0 145px;
|
||||
}
|
||||
.wrapper{
|
||||
.section-heading{
|
||||
@include responsive(desktop){
|
||||
margin-bottom: 55px;
|
||||
}
|
||||
}
|
||||
.gallery{
|
||||
display: grid;
|
||||
grid-template-columns: 320px;
|
||||
grid-template-rows: repeat(auto-fill, 260px);
|
||||
justify-content: center;
|
||||
gap: 20px;
|
||||
margin-bottom: 40px;
|
||||
@include responsive(desktop){
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 285px);
|
||||
justify-content: inherit;
|
||||
gap: 20px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
&-image{
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
&:nth-child(1){
|
||||
@include responsive(tablet){
|
||||
grid-column: 1 / span 2;
|
||||
grid-row: 1 / 2;
|
||||
}
|
||||
}
|
||||
&:nth-child(2){
|
||||
@include responsive(tablet){
|
||||
grid-column: 3 / span 2;
|
||||
grid-row: 1 / span 2;
|
||||
}
|
||||
}
|
||||
&:nth-child(3){
|
||||
display: none;
|
||||
@include responsive(tablet){
|
||||
display: block;
|
||||
grid-column: 1 / 2;
|
||||
grid-row: 2 / span 1;
|
||||
}
|
||||
}
|
||||
&:nth-child(4){
|
||||
display: none;
|
||||
@include responsive(tablet){
|
||||
display: block;
|
||||
grid-column: 2 / 3;
|
||||
grid-row: 2 / span 1;
|
||||
}
|
||||
}
|
||||
&:nth-child(5){
|
||||
display: none;
|
||||
@include responsive(tablet){
|
||||
display: block;
|
||||
grid-column: 1 / 3;
|
||||
grid-row: 3 / 5;
|
||||
}
|
||||
}
|
||||
&:nth-child(6){
|
||||
display: none;
|
||||
@include responsive(tablet){
|
||||
display: block;
|
||||
grid-column: 3 / 5;
|
||||
grid-row: 3 / 5;
|
||||
}
|
||||
}
|
||||
img{
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 101%;
|
||||
object-fit: cover;
|
||||
transition: transform 400ms ease-out;
|
||||
&:hover{
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.cta{
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
@include responsive(desktop){
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
@use "../02-abstracts/mixins" as *;
|
||||
|
||||
.social-media{
|
||||
list-style: none!important;
|
||||
position: fixed;
|
||||
top: 120px;
|
||||
right: 0;
|
||||
height: fit-content;
|
||||
padding: 9px;
|
||||
z-index: 998;
|
||||
background-color: $white-color;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
box-shadow: -8px 8px 16px -14px $dark-gray;
|
||||
@include responsive(tablet){
|
||||
padding: 16px;
|
||||
gap: 20px;
|
||||
box-shadow: -10px 10px 26px -14px $dark-gray;
|
||||
|
||||
}
|
||||
&__single{
|
||||
opacity: .6;
|
||||
transition: all .3s ease-in-out;
|
||||
margin-left: 0!important;
|
||||
a{
|
||||
display: grid;
|
||||
place-items: center;
|
||||
}
|
||||
.icon{
|
||||
width: 26px;
|
||||
height: auto;
|
||||
object-fit: cover;
|
||||
@include responsive(tablet){
|
||||
width: 32px;
|
||||
}
|
||||
}
|
||||
&:hover{
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
|
||||
.two-cols-with-bg{
|
||||
position: relative;
|
||||
background-repeat: no-repeat;
|
||||
background-size: cover;
|
||||
padding: 83px 0;
|
||||
@include responsive(tablet){
|
||||
padding: 153px 0;
|
||||
}
|
||||
.bg-filter{
|
||||
position: absolute;
|
||||
background-color: $dark-color;
|
||||
opacity: 97%;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.wrapper{
|
||||
position: relative;
|
||||
z-index: 99;
|
||||
@include responsive(tablet){
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
}
|
||||
.col{
|
||||
@include responsive(tablet){
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
}
|
||||
.col-text{
|
||||
@include responsive(desktop){
|
||||
padding: 0 35px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.imageLeft{
|
||||
flex-flow: row;
|
||||
}
|
||||
.imageRight{
|
||||
flex-flow: row-reverse;
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
@use "../01-base/breakpoints" as *;
|
||||
@use "../01-base/colors" as *;
|
||||
|
||||
.two-cols{
|
||||
padding: 45px 0;
|
||||
@include responsive(tablet){
|
||||
padding: 153px 0;
|
||||
}
|
||||
.wrapper{
|
||||
@include responsive(tablet){
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
}
|
||||
.col{
|
||||
@include responsive(tablet){
|
||||
flex: 0 0 50%;
|
||||
}
|
||||
}
|
||||
.col-text{
|
||||
margin-bottom: 50px;
|
||||
@include responsive(desktop){
|
||||
padding: 0 35px 0;
|
||||
}
|
||||
}
|
||||
.col-image{
|
||||
.image-wrapper{
|
||||
position: relative;
|
||||
}
|
||||
.image-wrapper::before{
|
||||
content: "";
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 100%;
|
||||
display: block;
|
||||
top: -12px;
|
||||
left: -12px;
|
||||
z-index: 9;
|
||||
}
|
||||
img{
|
||||
position: relative;
|
||||
z-index: 990;
|
||||
}
|
||||
}
|
||||
&.imageLeft{
|
||||
flex-flow: row-reverse;
|
||||
.image-wrapper{
|
||||
&::before{
|
||||
clip-path: polygon(0% 0%, 97% 0, 100% 4%, 100% 100%, 0% 100%);
|
||||
top: -12px;
|
||||
left: inherit;
|
||||
right: -12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
&.imageRight{
|
||||
flex-flow: row;
|
||||
.image-wrapper{
|
||||
&::before{
|
||||
clip-path: polygon(0% 4%, 4% 0%, 100% 0%, 100% 4%, 100% 100%, 0% 100%, 0% 4%);
|
||||
top: -12px;
|
||||
left: -12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.bg-light{
|
||||
.wrapper{
|
||||
.image-wrapper{
|
||||
&::before{
|
||||
background-color: $dark-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.bg-dark{
|
||||
.wrapper{
|
||||
.image-wrapper{
|
||||
&::before{
|
||||
background-color: $accent-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user