Task 1 | fix fix template bugs and layout

This commit is contained in:
2024-09-09 08:42:01 +03:00
parent 804d1c68ad
commit 8c51488478
53 changed files with 1730 additions and 920 deletions

View File

@@ -80,6 +80,34 @@ a:hover {
.back_link:hover svg path{
stroke: var(--creme-white);
}
.main_link{
font-size: 24px;
font-weight: 500;
line-height: 28.8px;
color: var(--creme-white, #F4F1F0);
width: 221px;
height: 50px;
padding: 10px;
white-space: nowrap;
display: flex;
align-items: center;
justify-content: center;
border-radius: 48px;
border: 2px solid var(--creme-white, #F4F1F0);
transition: .3s ease all;
}
.main_link:hover{
background-color: #F4F1F0;
color: #121212;
}
.main_link_black{
color: var(--grey-black);
border-color: var(--grey-black);
}
.btn--black-hover:hover{
background: #121212 !important;
color: #F4F1F0 !important;
}
.section_title{
font-size: 82px;
font-weight: 700;
@@ -157,6 +185,9 @@ a:hover {
.justify-content-between{
justify-content: space-between;
}
.justify-content-center{
justify-content: center;
}
.w-100{
width: 100%;
}
@@ -181,6 +212,9 @@ a:hover {
.align-items-start{
align-items: flex-start;
}
.text-center{
text-align: center;
}
.section_top{
display: flex;
justify-content: space-between;
@@ -209,9 +243,6 @@ a:hover {
transition: var(--transition);
border-radius: 50%;
}
.back_btn:hover{
background-color: var(--grey-black);
}
/* PETS SECTION */
.pets{
padding: 0 0 300px 0;
@@ -871,9 +902,6 @@ body:has(.modal_open) .modal_back{
padding: 20px;
margin: 15px 0 20px 0;
}
.remined_text svg{
flex: 0 0 auto;
}
.photo_image{
display: flex;
align-items: center;
@@ -1012,9 +1040,6 @@ body:has(.modal_open) .modal_back{
justify-content: space-between;
gap: 20px;
padding: 44px 0 52px 0;
}
.faq_title,
.faq_top .faq_arr_down{
cursor: pointer;
}
.faq_top .faq_arr_down{
@@ -1154,6 +1179,11 @@ body:has(.modal_open) .modal_back{
padding: 15px 35px;
width: 100%;
overflow-x: auto;
scrollbar-width: none;
-ms-overflow-style: none;
}
.bank_cards::-webkit-scrollbar {
display: none;
}
.bank_cards label{
width: max-content !important;
@@ -1167,7 +1197,7 @@ body:has(.modal_open) .modal_back{
align-items: center;
gap: 15px;
}
.bank_cards label img{
.bank_cards label img:not(.plus img){
width: 100%;
height: 100%;
object-fit: cover;
@@ -1377,21 +1407,13 @@ body:has(.modal_open) .modal_back{
.delete_product{
width: 44px;
height: 44px;
border-radius: 50%;
border: 2px solid var(--grey-black);
transition: .3s all ease;
display: flex;
justify-content: center;
align-items: center;
}
.delete_product path{
transition: .3s all ease;
}
.delete_product:hover{
background-color: var(--grey-black);
}
.delete_product:hover path{
stroke: var(--creme-white);
.delete_product img{
width: 100%;
}
.cart .order_item_text{
font-size: 20px;
@@ -1449,6 +1471,14 @@ body:has(.modal_open) .modal_back{
.header{
padding: 24px 0 38px 0;
}
.header.absolute{
position: absolute;
top: 0;
left: 0;
z-index: 10;
width: 100%;
padding: 24px 0;
}
.header .header_block{
display: flex;
align-items: center;
@@ -1469,6 +1499,10 @@ body:has(.modal_open) .modal_back{
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.absolute .header_navs .header_nav{
color: var(--creme-white);
-webkit-text-fill-color: var(--creme-white);
}
.header_navs .header_nav:hover{
opacity: 1;
}
@@ -1510,14 +1544,35 @@ body:has(.modal_open) .modal_back{
flex-direction: column;
gap: 20px;
}
.header_mob .header_navs .header_nav{
color: #121212;
.absolute .header_mob .header_navs .header_nav{
-webkit-text-fill-color: #000;
}
.absolute .header_navs .header_nav{
-webkit-text-fill-color: var(--creme-white);
}
.header_mob .header_links{
display: flex;
align-items: center;
gap: 20px;
}
.header_navs select{
font-size: 16px;
font-weight: 500;
line-height: normal;
text-transform: uppercase;
color: var(--creme-white);
border-radius: 45px;
border: 1px solid var(--creme-white);
opacity: 0.6;
appearance: none;
background-color: transparent;
background-image: url(../img/i-arr_down.svg);
background-position: center right 10px;
background-repeat: no-repeat;
padding: 11px 23px;
cursor: pointer;
outline: none;
}
/* Footer start */
.footer{
background: var(--creme-white, #F4F1F0);
@@ -1526,6 +1581,9 @@ body:has(.modal_open) .modal_back{
z-index: 2;
position: relative;
}
.footer.absolute{
margin-top: -50px;
}
.footer .footer_block{
display: flex;
flex-direction: column;
@@ -1765,6 +1823,247 @@ body:has(.modal_open) .modal_back{
text-align: left;
justify-content: left;
}
/* */
.hero{
position: relative;
background: radial-gradient(213.32% 302.43% at 149.73% -58.39%, #0F5881 0%, #1EA49C 36.11%, #76CE75 66.67%, #ECF39F 91.15%);
overflow: hidden;
z-index: 1;
}
.hero .cont{
padding-top: 151px;
padding-bottom: 132px;
position: relative;
}
.hero_image{
position: absolute;
top: 0;
right: 0;
z-index: -2;
mix-blend-mode: soft-light;
}
.hero_title{
font-size: 96px;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
color: #F4F1F0;
padding: 0 0 32px 0;
}
.hero_image_mobile,
.home_line2{
display: none;
}
.about{
border-radius: 60px;
background: var(--creme-white);
box-shadow: 6px 9px 20px 0px rgba(0, 0, 0, 0.15);
padding: 145px 0 100px 0;
margin: -60px 0 0 0;
position: relative;
z-index: 2;
}
.section_top{
display: flex;
align-items: center;
gap: 35px;
}
.block_title{
font-size: 36px;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
color: var(--grey-black);
}
.about .section_top{
margin: 0 0 200px 0;
}
.about_top_image2{
display: none;
}
.section_title2{
font-size: 99px;
font-weight: 700;
line-height: 110.5%;
text-transform: uppercase;
margin: 0 0 25px 0;
color: var(--grey-black);
}
.description{
font-size: 24px;
font-weight: 500;
line-height: normal;
color: var(--grey-black);
}
.advantage_row{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 120px 0;
margin: 200px 0;
}
.advantage_row2{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 120px 30px;
margin: 0 0 200px 0;
}
.advantage_row2 .advantage_item{
max-width: 100%;
width: calc(50% - 15px);
}
.advantage_item{
position: relative;
}
.advantage_item:not(.for_border .advantage_item), .for_border:has(.advantage_item){
width: 435px;
max-width: calc(50% - 15px);
}
.advantage_title{
font-size: 36px;
font-weight: 700;
line-height: normal;
text-transform: uppercase;
color: var(--grey-black);
margin: 0 0 24px 0;
z-index: 0;
}
.advantage_image{
position: absolute;
left: 0;
z-index: -1;
top: -170px;
}
.advantage_image2{
width: 100%;
}
.advantage_row .advantage_item:nth-child(2) .advantage_image{
top: -130px;
}
.advantage_row .advantage_item:nth-child(3){
margin: 82px 0 0 0;
}
.about .for_border{
border-radius: 60px;
background: var(--GR1);
padding: 2px;
box-shadow: 6px 9px 20px 0px rgba(0, 0, 0, 0.15);
}
.about .for_border .advantage_item{
background-color: var(--creme-white);
padding: 45px 34px 45px 50px;
border-radius: 58px;
}
.protein{
margin: 200px 0 140px 0;
position: relative;
z-index: 0;
}
.protein img{
width: 100%;
}
.protein::before{
position: absolute;
content: '';
width: 103%;
height: 132%;
left: 0;
top: -7%;
background-image: url(../img/protein_ellipse.png);
background-size: contain;
background-repeat: no-repeat;
z-index: -1;
}
.diagram{
margin: 0 0 200px 0;
}
.diagram_texts{
display: flex;
align-items: center;
justify-content: flex-start;
margin: 40px 0 20px 0;
}
.diagram_texts .description{
width: 33.3%;
text-align: left;
}
.diagram img{
width: 100%;
}
.etaps_row{
display: flex;
align-items: center;
gap: 120px;
justify-content: flex-start;
margin: 135px 0 100px 0;
}
.etaps_col{
display: flex;
flex-direction: column;
gap: 135px;
align-items: flex-start;
}
.etap_item{
display: flex;
align-items: flex-start;
gap: 25px;
}
.faq_section{
background: radial-gradient(358.38% 263.16% at 123.55% -27.98%, #0F5881 0%, #1EA49C 36.98%, #76CE75 66.67%, #ECF39F 91.15%);
padding: 140px 0 160px 0;
margin: -70px 0 0 0;
}
.faq_section .section_title2{
color: var(--creme-white);
margin: 0 0 50px 0;
}
.faq_block {
background-color: var(--creme-white);
border-radius: 60px;
border: 2px solid var(--grey-black);
}
.faq_block .faq_item {
padding: 0 72px 0 49px;
font-size: 24px;
font-weight: 500;
color: var(--grey-black);
border-bottom: 2px solid var(--grey-black);
}
.faq_block .faq_item:last-child{
border: none;
}
.faq_block .faq_top{
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 44px 0 52px 0;
}
.faq_block .faq_top .faq_arr_down{
padding: 5px;
transition: var(--transition);
}
.faq_block .faq_top .faq_arr_down.rotate{
transform: rotateX(180deg);
}
.faq_block .faq_body{
overflow: hidden;
margin: 0;
height: 0;
transition: var(--transition);
}
.faq_block .faq_body.open{
margin: 0 0 30px 0;
height: auto;
}
.desctop_none{
display: none;
}
/* MEDIA */
@media only screen and (max-width: 1170px) {
.footer_form .footer_form-title h2,
@@ -1780,6 +2079,30 @@ body:has(.modal_open) .modal_back{
font-size: 22px;
padding: 31px 22px;
}
.section_title2 {
font-size: 70px;
}
.hero_title {
font-size: 78px;
padding: 150px 0;
}
.block_title {
font-size: 30px;
}
.block_title {
font-size: 24px;
}
.about .section_top,
.advantage_row2,
.diagram{
margin: 0 0 150px 0;
}
.advantage_row{
margin: 200px 0 150px 0;
}
.protein{
margin: 150px 0 140px 0;
}
}
@media only screen and (max-width: 950px){
@@ -2049,6 +2372,47 @@ body:has(.modal_open) .modal_back{
.account {
padding: 0 0 80px 0;
}
.section_title2 {
font-size: 55px;
}
.description{
font-size: 20px;
}
.hero_title {
font-size: 60px;
padding: 120px 0;
}
.hero .cont {
padding-top: 100px;
padding-bottom: 170px;
}
.faq_block .faq_top{
padding: 30px 0;
}
.about{
padding: 100px 0;
}
.about .section_top, .advantage_row2, .diagram {
margin: 0 0 100px 0;
}
.advantage_row .advantage_item:nth-child(3) {
margin: 74px 0 0 0;
}
.advantage_row{
margin: 200px 0 100px 0;
}
.protein {
margin: 100px 0 140px 0;
}
.etaps_row{
margin: 100px 0;
}
.etaps_col{
gap: 100px;
}
.advantage_title {
font-size: 28px;
}
}
@media only screen and (max-width: 776px){
@@ -2129,7 +2493,7 @@ body:has(.modal_open) .modal_back{
.plus, .minus{
display: flex;
}
.plus svg, .minus svg{
.plus img, .minus img{
width: 30px;
height: 30px;
}
@@ -2247,15 +2611,6 @@ body:has(.modal_open) .modal_back{
.delete_product{
width: 30px;
height: 30px;
padding: 3px;
border-width: 1px;
}
.delete_product svg{
width: 100%;
height: 100%;
}
.delete_product svg path{
stroke-width: 1px;
}
.cart .product_image .for_image_border{
width: 45px;
@@ -2321,6 +2676,140 @@ body:has(.modal_open) .modal_back{
.pet_inputs .w-100 .collapse_input {
gap: 20px;
}
.section_title2 {
font-size: 36px;
margin: 0 0 20px 0;
}
.description{
font-size: 16px;
}
.header_navs select{
color: var(--grey-black);
border-color: var(--grey-black);
background-image: url(../img/i-arr_down_black.svg);
}
.hero_title {
font-size: 45px;
}
.hero_image{
display: none;
}
.hero_image_mobile{
display: block;
position: absolute;
top: 45px;
right: 50%;
transform: translate(50%,0);
z-index: -2;
mix-blend-mode: soft-light;
}
.home .home_line2, .hero .home_line2 {
position: absolute;
display: block;
top: 37px;
left: -24px;
width: 108%;
z-index: -1;
}
.about .section_top{
flex-direction: column;
gap: 0;
align-items: center;
}
.block_title {
font-size: 22px;
}
.about_top_image2{
display: block;
}
.about_top_image{
display: none;
}
.about{
padding: 80px 0;
}
/* FAQ */
.faq_block .faq_item{
padding: 0 40px 0 30px;
font-size: 18px;
}
.faq_section{
padding: 120px 0;
}
.faq_block .faq_top {
padding: 25px 0;
}
/* */
.etap_right_anim{
display: none;
}
.advantage_row .advantage_item:not(.for_border .advantage_item){
width: 70%;
max-width: 100%;
}
.advantage_row .for_border:has(.advantage_item){
max-width: 100%;
width: 100%;
}
.advantage_image{
max-width: 150px;
max-height: 150px;
width: 100%;
height: auto;
object-fit: cover;
top: -100px;
}
.advantage_row .advantage_item:nth-child(2) .advantage_image {
top: -65px;
}
.for_border .advantage_item{
padding: 25px 24px 25px 30px;
}
.advantage_row .advantage_item:nth-child(3){
margin: 0;
}
.advantage_row .advantage_item:nth-child(2){
text-align: right;
display: flex;
flex-direction: column;
align-items: flex-end;
width: 100% !important;
}
.advantage_row .advantage_item:nth-child(2) .advantage_title,
.advantage_row .advantage_item:nth-child(2) .description{
max-width: 60%;
}
.advantage_row .advantage_item:nth-child(2) .advantage_image{
left: unset;
right: 0;
}
.advantage_row2{
flex-direction: column-reverse;
gap: 90px;
}
.advantage_row2 .advantage_item:not(.for_border .advantage_item){
width: 100%;
max-width: 100%;
}
.advantage_row{
margin: 150px 0 100px 0;
gap: 90px;
}
.etaps_row {
margin: 80px 0;
}
.etaps_col {
gap: 70px;
}
.about .section_top, .advantage_row2, .diagram {
margin: 0 0 80px 0;
}
.advantage_title {
font-size: 20px;
}
}
@media only screen and (max-width: 576px){
@@ -2513,11 +3002,11 @@ body:has(.modal_open) .modal_back{
gap: 5px;
font-size: 12px;
}
.plus svg, .minus svg {
.plus img, .minus img {
width: 20px;
height: 20px;
}
.plus svg circle, .minus svg circle{
.plus img circle, .minus img circle{
stroke-width: 1px;
}
label:has(input[type='radio']) .checkmark, label:has(input[type='checkbox']) .checkmark {
@@ -2751,7 +3240,6 @@ body:has(.modal_open) .modal_back{
.delete_product {
width: 20px;
height: 20px;
padding: 4px;
}
.product_try{
padding: 8px 16px;
@@ -2903,13 +3391,163 @@ body:has(.modal_open) .modal_back{
.photo_image p{
font-size: 12px;
}
.section_title2 {
font-size: 26px;
margin: 0 0 12px 0;
}
.description{
font-size: 12px;
line-height: 100%;
}
.main_link {
font-size: 12px;
line-height: 14.4px;
width: 129px;
height: 29px;
padding: 7px;
}
.hero .cont {
padding-top: 0;
padding-bottom: 54px;
}
.hero_block {
display: flex;
flex-direction: column;
justify-content: flex-end;
min-height: 66svh;
gap: 18px;
padding: 0 0 54px 0;
}
.hero_title {
font-size: 32px;
width: 100%;
word-break: break-word;
padding: 0;
}
.block_title {
font-size: 12px;
line-height: 135%;
}
.about .section_top {
margin: 0 0 50px 0;
}
.faq_block .faq_item{
font-size: 12px;
padding: 0 14px;
}
.faq_block .faq_top {
padding: 20px 0;
}
.faq_block .faq_body{
line-height: normal;
}
.faq_block .faq_body.open{
margin: 0 0 14px 0;
line-height: normal;
}
/* */
.about{
padding: 40px 0 60px 0;
border-radius: 25px;
}
.about .section_top{
margin: 0 0 50px 0;
}
.advantage_title {
font-size: 12px;
margin: 0 0 2px 0;
}
.advantage_image{
max-width: 87px;
max-height: 87px;
top: -68px;
}
.advantage_row {
margin: 90px 0 70px 0;
gap: 70px;
}
.advantage_row .advantage_item:nth-child(2) .advantage_title, .advantage_row .advantage_item:nth-child(2) .description {
max-width: 66%;
}
.about .for_border{
border-radius: 25px;
}
.about .for_border .advantage_item{
border-radius: 23px;
padding: 17px 23px;
}
.advantage_row2{
gap: 40px;
}
.advantage_row2, .diagram {
margin: 0 0 50px 0;
}
.protein {
margin: 50px 0;
}
.diagram_texts{
margin: 30px 0 10px 0;
}
.etaps_row {
margin: 10px 0 0 0;
}
.mobile_none{
display: none;
}
.desctop_none{
display: block;
}
.etap_item{
gap: 5px;
}
.etap_item img{
max-width: 30px;
max-height: 30px;
height: auto;
width: 100%;
object-fit: cover;
}
.etaps_col {
gap: 50px;
}
.description svg{
width: 5px;
height: 11px;
}
.faq_section .section_title2{
display: none;
}
.faq_block{
border-width: 1px;
border-radius: 25px;
}
.faq_block .faq_item{
border-width: 1px;
}
.faq_arr_down img{
height: 4px;
width: 7px;
}
.faq_block .faq_title{
line-height: 100%;
}
.mobile_none2{
display: none;
}
.remined_text img{
width: 17px;
height: 17px;
}
}
@media only screen and (min-width: 576px){
.mobile_none{
display: block !important;
}
.data_block_title .mobile_none{
.data_block_title .mobile_none,
.collapse_input .mobile_none{
display: inline !important;
}
.desctop_none{
@@ -2917,7 +3555,7 @@ body:has(.modal_open) .modal_back{
}
}
@media only screen and (max-width: 450px){
.plus svg, .minus svg {
.plus img, .minus img {
width: 13px;
height: 13px;
}
@@ -2964,7 +3602,6 @@ body:has(.modal_open) .modal_back{
.delete_product {
width: 13px;
height: 13px;
padding: 2px;
}
.return .counter{
transform: rotate(-90deg);