mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 03:43:28 +10:00
110 lines
2.2 KiB
CSS
110 lines
2.2 KiB
CSS
@import '../../marketplace.css';
|
|
|
|
:root {
|
|
/*
|
|
These variables are available in global scope through ":root"
|
|
element (<html> tag). Variables with the same names are going to
|
|
overwrite each other if CSS Properties' (PostCSS plugin)
|
|
configuration "preserve: true" is used - meaning that variables
|
|
are left to CSS bundle. We are planning to enable it in the future
|
|
since browsers support CSS Properties already.
|
|
*/
|
|
|
|
--SectionHero_desktopTitleMaxWidth: 625px;
|
|
|
|
--SectionHero_animation: {
|
|
animation-name: animationTitle;
|
|
animation-duration: 0.5s;
|
|
animation-timing-function: ease-out;
|
|
-webkit-animation-fill-mode: forwards;
|
|
|
|
visibility: hidden;
|
|
opacity: 1;
|
|
position: relative;
|
|
}
|
|
}
|
|
|
|
/* Animation for the hero elements */
|
|
|
|
@keyframes animationTitle {
|
|
0% {
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
top: -20px;
|
|
}
|
|
100% {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.root {
|
|
@apply --backgroundImage;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
/* Text positioning is done with paddings */
|
|
}
|
|
|
|
.heroContent {
|
|
margin: 0 24px 0 24px;
|
|
|
|
@media (--viewportMedium) {
|
|
margin: 0 7.5vw 0 7.5vw;
|
|
}
|
|
|
|
/* Special viewport for adjusting the heroContent's placement */
|
|
|
|
@media only screen and (min-width: 1025px) and (max-width: 1366px) {
|
|
padding: 0 36px 0 36px;
|
|
}
|
|
|
|
@media only screen and (min-width: 1367px) {
|
|
margin: 0 auto;
|
|
max-width: calc(1052px + 36px + 36px);
|
|
width: 100%;
|
|
padding: 0 36px 0 36px;
|
|
}
|
|
}
|
|
|
|
.heroMainTitle {
|
|
@apply --marketplaceHeroTitleFontStyles;
|
|
color: var(--matterColorLight);
|
|
|
|
@apply --SectionHero_animation;
|
|
animation-delay: 0.5s;
|
|
|
|
@media (--viewportMedium) {
|
|
max-width: var(--SectionHero_desktopTitleMaxWidth);
|
|
}
|
|
}
|
|
|
|
.heroSubTitle {
|
|
@apply --marketplaceBodyFontStyles;
|
|
|
|
color: var(--matterColorLight);
|
|
margin: 0 0 32px 0;
|
|
|
|
@apply --SectionHero_animation;
|
|
animation-delay: 0.65s;
|
|
|
|
@media (--viewportMedium) {
|
|
max-width: var(--SectionHero_desktopTitleMaxWidth);
|
|
margin: 0 0 63px 0;
|
|
}
|
|
}
|
|
|
|
.heroButton {
|
|
@apply --marketplaceButtonStyles;
|
|
@apply --SectionHero_animation;
|
|
|
|
animation-delay: 0.8s;
|
|
|
|
@media (--viewportMedium) {
|
|
display: block;
|
|
width: 260px;
|
|
}
|
|
}
|