-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added media query for components near third slider (#73)
* fixed cards on dark theme and swipe behavior * added media query for components near third slider
- Loading branch information
Showing
3 changed files
with
145 additions
and
135 deletions.
There are no files selected for viewing
220 changes: 116 additions & 104 deletions
220
src/modules/HomePage/componets/ShopByCategory/ShopByCategory.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1,116 @@ | ||
@import '../../../../styles/blocks/grid'; | ||
@import '../../../../styles/utils/variables/colors'; | ||
@import '../../../../styles/utils/mixins/mixin-media'; | ||
@import '../../../../styles/utils/mixins/mixin-typography'; | ||
|
||
.shopByCategory { | ||
&__title { | ||
margin-bottom: 1.5rem; | ||
@include h2-typography; | ||
} | ||
|
||
&__titleDark { | ||
@include typography-dark; | ||
} | ||
|
||
&__container { | ||
@extend .grid; | ||
} | ||
|
||
&__article { | ||
margin-bottom: 32px; | ||
grid-column: span 4; | ||
color: $color__primary; | ||
@include onTablet { | ||
margin-bottom: 0; | ||
} | ||
|
||
@include onDesktop { | ||
grid-column: span 8; | ||
} | ||
} | ||
|
||
&__subtitle { | ||
@include h4-typography; | ||
} | ||
|
||
&__subtitleDark { | ||
@include typography-dark; | ||
} | ||
|
||
&__content { | ||
color: $color__secondary; | ||
@include bodyText-typography; | ||
} | ||
|
||
&__contentDark { | ||
color: $color__dark-theme__secondary; | ||
} | ||
|
||
&__imgContainer { | ||
position: relative; | ||
height: 0; | ||
padding-bottom: 100%; | ||
border-radius: 8px; | ||
margin-bottom: 1.5rem; | ||
overflow: hidden; | ||
} | ||
|
||
&__imgPhones { | ||
background-color: #6D6474; | ||
} | ||
|
||
&__imgDark { | ||
border-radius: 0px; | ||
} | ||
|
||
&__imgTablets { | ||
background-color: #D3D3D3; | ||
} | ||
|
||
&__imgAccessories { | ||
background-color: #D53C51; | ||
} | ||
|
||
&__picture { | ||
position: absolute; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
left: 10%; | ||
top: 10%; | ||
transition: transform 0.3s ease; | ||
} | ||
|
||
&__pictureTablet { | ||
left: 7%; | ||
top: 5%; | ||
} | ||
|
||
&__pictureAccessories { | ||
left: 3%; | ||
top: 0%; | ||
} | ||
|
||
&__imgContainer:hover &__picture { | ||
transform: scale(1.2); | ||
} | ||
} | ||
|
||
.shopByCategoryDark { | ||
background-color: $color__dark-theme__black; | ||
} | ||
|
||
|
||
@import '../../../../styles/blocks/grid'; | ||
@import '../../../../styles/utils/variables/colors'; | ||
@import '../../../../styles/utils/mixins/mixin-media'; | ||
@import '../../../../styles/utils/mixins/mixin-typography'; | ||
|
||
.shopByCategory { | ||
&__title { | ||
margin-bottom: 1.5rem; | ||
@include h2-typography; | ||
|
||
@include onMobile { | ||
margin-top: 56px; | ||
} | ||
|
||
@include onTablet { | ||
margin-top: 64px; | ||
} | ||
|
||
@include onDesktop { | ||
margin-top: 80px; | ||
} | ||
} | ||
|
||
&__titleDark { | ||
@include typography-dark; | ||
} | ||
|
||
&__container { | ||
@extend .grid; | ||
} | ||
|
||
&__article { | ||
margin-bottom: 32px; | ||
grid-column: span 4; | ||
color: $color__primary; | ||
@include onTablet { | ||
margin-bottom: 0; | ||
} | ||
|
||
@include onDesktop { | ||
grid-column: span 8; | ||
} | ||
} | ||
|
||
&__subtitle { | ||
@include h4-typography; | ||
} | ||
|
||
&__subtitleDark { | ||
@include typography-dark; | ||
} | ||
|
||
&__content { | ||
color: $color__secondary; | ||
@include bodyText-typography; | ||
} | ||
|
||
&__contentDark { | ||
color: $color__dark-theme__secondary; | ||
} | ||
|
||
&__imgContainer { | ||
position: relative; | ||
height: 0; | ||
padding-bottom: 100%; | ||
border-radius: 8px; | ||
margin-bottom: 1.5rem; | ||
overflow: hidden; | ||
} | ||
|
||
&__imgPhones { | ||
background-color: #6D6474; | ||
} | ||
|
||
&__imgDark { | ||
border-radius: 0px; | ||
} | ||
|
||
&__imgTablets { | ||
background-color: #D3D3D3; | ||
} | ||
|
||
&__imgAccessories { | ||
background-color: #D53C51; | ||
} | ||
|
||
&__picture { | ||
position: absolute; | ||
display: block; | ||
width: 100%; | ||
height: 100%; | ||
left: 10%; | ||
top: 10%; | ||
transition: transform 0.3s ease; | ||
} | ||
|
||
&__pictureTablet { | ||
left: 7%; | ||
top: 5%; | ||
} | ||
|
||
&__pictureAccessories { | ||
left: 3%; | ||
top: 0%; | ||
} | ||
|
||
&__imgContainer:hover &__picture { | ||
transform: scale(1.2); | ||
} | ||
} | ||
|
||
.shopByCategoryDark { | ||
background-color: $color__dark-theme__black; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters