Fix responsive styling on About
This commit is contained in:
@@ -3,10 +3,10 @@
|
|||||||
** Introduction
|
** Introduction
|
||||||
*/
|
*/
|
||||||
&__introduction {
|
&__introduction {
|
||||||
padding: clamp(48px, 10vw, 80px) 0 138px;
|
padding: clamp(48px, 10vw, 80px) 0 136px;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
padding: clamp(80px, 7vw, 128px) 0 clamp(200px, 20vw, 360px);
|
padding: clamp(64px, 7vw, 128px) 0 clamp(200px, 20vw, 360px);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Section title
|
// Section title
|
||||||
@@ -27,6 +27,9 @@
|
|||||||
margin-bottom: 48px;
|
margin-bottom: 48px;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
grid-column: 3 / -3;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
grid-column: 3 / span 12;
|
grid-column: 3 / span 12;
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
align-self: baseline;
|
align-self: baseline;
|
||||||
@@ -46,6 +49,9 @@
|
|||||||
color: $color-tertiary;
|
color: $color-tertiary;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
grid-column: 3 / span 14;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
grid-column: 17 / span 6;
|
grid-column: 17 / span 6;
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
align-self: baseline;
|
align-self: baseline;
|
||||||
@@ -71,10 +77,10 @@
|
|||||||
*/
|
*/
|
||||||
&__creation {
|
&__creation {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
padding-bottom: 160px;
|
padding-bottom: clamp(120px, 10vw, 160px);
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
padding-bottom: 240px;
|
padding-bottom: clamp(160px, 20vw, 240px);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Figures
|
// Figures
|
||||||
@@ -99,11 +105,10 @@
|
|||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
color: $color-gray;
|
color: $color-gray;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: rem(12px);
|
line-height: 1.55;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
margin-top: 24px;
|
margin-top: 24px;
|
||||||
font-size: rem(14px);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +122,6 @@
|
|||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
grid-column: 8 / -2;
|
grid-column: 8 / -2;
|
||||||
margin: -10vw 0 clamp(48px, 7vw, 88px);
|
margin: -10vw 0 clamp(48px, 7vw, 88px);
|
||||||
// margin: -10vw 0 clamp(80px, 10vw, 128px);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
figcaption {
|
figcaption {
|
||||||
@@ -158,8 +162,8 @@
|
|||||||
h2 {
|
h2 {
|
||||||
grid-column: 1 / -2;
|
grid-column: 1 / -2;
|
||||||
max-width: 240px;
|
max-width: 240px;
|
||||||
line-height: 1.2;
|
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
|
line-height: 1.2;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
grid-column: 3 / span 10;
|
grid-column: 3 / span 10;
|
||||||
@@ -170,8 +174,8 @@
|
|||||||
// Large text
|
// Large text
|
||||||
.heading {
|
.heading {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
color: $color-primary-tertiary20;
|
|
||||||
margin-bottom: 72px;
|
margin-bottom: 72px;
|
||||||
|
color: $color-primary-tertiary20;
|
||||||
|
|
||||||
:global(strong) {
|
:global(strong) {
|
||||||
color: $color-lilas-bright;
|
color: $color-lilas-bright;
|
||||||
@@ -191,6 +195,9 @@
|
|||||||
align-self: center;
|
align-self: center;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
grid-column: 4 / span 8;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
grid-column: 9 / span 6;
|
grid-column: 9 / span 6;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -202,24 +209,24 @@
|
|||||||
grid-row: 4;
|
grid-row: 4;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
grid-column: 13 / -3;
|
||||||
|
}
|
||||||
|
@include bp (md) {
|
||||||
grid-column: 16 / span 7;
|
grid-column: 16 / span 7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.portrait-photo__caption {
|
.portrait-photo__caption {
|
||||||
grid-column: 3 / -1;
|
grid-column: 3 / -1;
|
||||||
grid-row: 5;
|
grid-row: 5;
|
||||||
color: $color-gray;
|
margin-top: 16px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-size: rem(12px);
|
color: $color-gray;
|
||||||
margin-top: 16px;
|
line-height: 1.55;
|
||||||
|
|
||||||
@include bp (md) {
|
@include bp (sm) {
|
||||||
grid-column: 16 / span 7;
|
grid-column: 16 / span 7;
|
||||||
margin: 0;
|
margin: 24px 0 0;
|
||||||
font-size: rem(16px);
|
|
||||||
margin-top: 24px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -233,17 +240,20 @@
|
|||||||
|
|
||||||
// Poster image
|
// Poster image
|
||||||
:global(picture) {
|
:global(picture) {
|
||||||
height: auto;
|
|
||||||
overflow: hidden;
|
|
||||||
border-radius: 8px;
|
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
|
height: 100vw;
|
||||||
|
max-height: 486px;
|
||||||
|
overflow: hidden;
|
||||||
margin-top: -64px;
|
margin-top: -64px;
|
||||||
height: 486px;
|
margin-bottom: 72px;
|
||||||
|
border-radius: 8px;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
grid-column: 3 / -6;
|
grid-column: 3 / -6;
|
||||||
margin-top: -100px;
|
|
||||||
height: auto;
|
height: auto;
|
||||||
|
max-height: none;
|
||||||
|
margin-top: -96px;
|
||||||
|
margin-bottom: clamp(56px, 7vw, 88px);
|
||||||
}
|
}
|
||||||
@include bp (md) {
|
@include bp (md) {
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
@@ -260,11 +270,9 @@
|
|||||||
h2 {
|
h2 {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
margin-top: 72px;
|
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
grid-column: 3 / 7;
|
grid-column: 3 / 7;
|
||||||
margin-top: 88px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:global(p) {
|
:global(p) {
|
||||||
@@ -310,13 +318,30 @@
|
|||||||
|
|
||||||
// Showcase image
|
// Showcase image
|
||||||
&__showcase {
|
&__showcase {
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
|
overflow: hidden;
|
||||||
|
height: 0;
|
||||||
|
padding-bottom: 120%;
|
||||||
|
}
|
||||||
|
|
||||||
:global(picture) {
|
:global(picture) {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
:global(img) {
|
:global(img) {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
|
width: 130%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -330,7 +355,7 @@
|
|||||||
margin-top: 48px;
|
margin-top: 48px;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
margin: 96px 0 0;
|
margin-top: clamp(48px, 7vw, 96px);
|
||||||
}
|
}
|
||||||
|
|
||||||
& > .container {
|
& > .container {
|
||||||
@@ -363,9 +388,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
|
max-width: 320px;
|
||||||
color: $color-tertiary;
|
color: $color-tertiary;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
max-width: 320px;
|
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
@@ -444,11 +469,6 @@
|
|||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
margin-bottom: clamp(80px, 10vw, 128px);
|
margin-bottom: clamp(80px, 10vw, 128px);
|
||||||
}
|
}
|
||||||
// margin-top: -64px;
|
|
||||||
|
|
||||||
@include bp (sm) {
|
|
||||||
// margin-top: -120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container-wide {
|
.container-wide {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
Reference in New Issue
Block a user