mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
fine-tune the hero
This commit is contained in:
parent
cb34262b6e
commit
52cffcb048
4 changed files with 45 additions and 30 deletions
|
|
@ -40,7 +40,11 @@
|
|||
/* Text positioning is done with paddings */
|
||||
padding: 0 24px 0 24px;
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media (--viewportMedium) {
|
||||
padding: 0 0 0 7.5vw;
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
padding: 0 0 0 15vw;
|
||||
}
|
||||
}
|
||||
|
|
@ -55,20 +59,13 @@
|
|||
@media (--viewportMedium) {
|
||||
max-width: var(--desktopTitleMaxWidth);
|
||||
}
|
||||
|
||||
@media (--viewportXLarge) {
|
||||
font-size: 144px;
|
||||
line-height: 144px;
|
||||
max-width: 1000px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
}
|
||||
|
||||
.heroSubTitle {
|
||||
@apply --marketplaceBodyFontStyles;
|
||||
|
||||
color: var(--matterColorLight);
|
||||
margin: 0 0 63px 0;
|
||||
margin: 0 0 32px 0;
|
||||
|
||||
@apply --animationProperties;
|
||||
animation-delay: 0.65s;
|
||||
|
|
@ -77,12 +74,6 @@
|
|||
max-width: var(--desktopTitleMaxWidth);
|
||||
margin: 0 0 63px 0;
|
||||
}
|
||||
|
||||
@media (--viewportXLarge) {
|
||||
font-size: 24px;
|
||||
line-height: 36px;
|
||||
max-width: 1000px;
|
||||
}
|
||||
}
|
||||
|
||||
.mobileSearchButton {
|
||||
|
|
|
|||
|
|
@ -13,10 +13,16 @@
|
|||
.heroContainer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - var(--topbarHeight));
|
||||
min-height: 300px;
|
||||
height: 67.5vh;
|
||||
max-height: 600px;
|
||||
padding: 0;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
min-height: 80vh;
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
min-height: calc(100vh - var(--topbarHeightDesktop));
|
||||
}
|
||||
}
|
||||
|
|
@ -24,9 +30,13 @@
|
|||
.hero {
|
||||
flex-grow: 1;
|
||||
justify-content: flex-end;
|
||||
padding-bottom: 98px;
|
||||
padding-bottom: 32px;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
padding-bottom: 83px;
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
justify-content: center;
|
||||
padding-top: 60px;
|
||||
}
|
||||
|
|
@ -36,7 +46,11 @@
|
|||
margin: 0;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
padding: 1px 30px 0 30px;
|
||||
padding: 1px 7.5vw 0 7.5vw;
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
padding: 1px 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -63,6 +77,11 @@
|
|||
margin: var(--sectionMarginTopMobile) 24px 51px 24px;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
max-width: 1052px;
|
||||
margin: 60px auto 60px auto;
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
max-width: 1052px;
|
||||
margin: var(--sectionMarginTop) auto 93px auto;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,11 +25,6 @@
|
|||
/* Align the image within the container */
|
||||
background-position: center center;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
border-radius: 28px;
|
||||
border: solid 24px var(--matterColorBright);
|
||||
}
|
||||
|
||||
@media (--viewportLarge) {
|
||||
border-radius: 40px;
|
||||
border: solid 36px var(--matterColorBright);
|
||||
|
|
@ -158,7 +153,7 @@
|
|||
/* Dimensions */
|
||||
display: block;
|
||||
width: 100%;
|
||||
min-height: 65px;
|
||||
min-height: 59px;
|
||||
margin: 0;
|
||||
|
||||
/* Padding is only for <a> elements where button styles are applied,
|
||||
|
|
@ -194,6 +189,10 @@
|
|||
cursor: not-allowed;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@media (--viewportMedium) {
|
||||
min-height: 65px;
|
||||
}
|
||||
}
|
||||
--marketplaceButtonStylesPrimary {
|
||||
@apply --marketplaceButtonStyles;
|
||||
|
|
|
|||
|
|
@ -48,21 +48,27 @@
|
|||
|
||||
--marketplaceHeroTitleFontStyles: {
|
||||
font-weight: var(--fontWeightBold);
|
||||
font-size: 48px;
|
||||
line-height: 54px;
|
||||
font-size: 42px;
|
||||
line-height: 42px;
|
||||
letter-spacing: -1px;
|
||||
/* margin-top + n * line-height + margin-bottom => x * 6px */
|
||||
margin-top: 25px;
|
||||
margin-bottom: 29px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
@media (--viewportMedium) {
|
||||
font-size: 90px;
|
||||
line-height: 96px;
|
||||
letter-spacing: -2px;
|
||||
font-size: 72px;
|
||||
line-height: 72px;
|
||||
letter-spacing: -1.5px;
|
||||
/* margin-top + n * line-height + margin-bottom => x * 8px */
|
||||
margin-top: 25px;
|
||||
margin-bottom: 31px;
|
||||
}
|
||||
|
||||
@media (min-width: 1441px) {
|
||||
font-size: 90px;
|
||||
line-height: 96px;
|
||||
letter-spacing: -2px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ================ Modal title ================ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue