Create a component for scrolling huge titles
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
.homepage {
|
||||
// Site title
|
||||
&__title {
|
||||
// Houses
|
||||
&--houses {
|
||||
margin: -20px 0 0;
|
||||
color: $color-secondary;
|
||||
@@ -9,8 +10,15 @@
|
||||
|
||||
@include bp (sm) {
|
||||
margin-top: -100px;
|
||||
margin-left: calc(-1 * clamp(24px, 6vw, 64px));
|
||||
}
|
||||
|
||||
span {
|
||||
transition: none;
|
||||
letter-spacing: -0.06em;
|
||||
}
|
||||
}
|
||||
// World
|
||||
&--world {
|
||||
color: $color-primary-tertiary20;
|
||||
text-align: center;
|
||||
@@ -62,14 +70,22 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// Text
|
||||
&__description {
|
||||
// Headline
|
||||
&__headline {
|
||||
max-width: 350px;
|
||||
margin: 100px auto 32px;
|
||||
margin: 100px auto 0;
|
||||
|
||||
@include bp (sm) {
|
||||
margin: 20px auto 32px;
|
||||
max-width: 524px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 24px;
|
||||
|
||||
@include bp (sm) {
|
||||
margin-bottom: 32px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user