Add responsive to Credits page
This commit is contained in:
@@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
<main class="credits">
|
<main class="credits">
|
||||||
<section class="credits__heading">
|
<section class="credits__heading">
|
||||||
<SiteTitle variant="large" />
|
<SiteTitle variant="inline" />
|
||||||
<p>{data.credits.text}</p>
|
<p class="text-medium">{data.credits.text}</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="credits__list">
|
<section class="credits__list">
|
||||||
|
|||||||
@@ -74,7 +74,7 @@
|
|||||||
span {
|
span {
|
||||||
display: block;
|
display: block;
|
||||||
top: 0;
|
top: 0;
|
||||||
margin: 8px 0 6px;
|
margin: 10px 0;
|
||||||
font-size: rem(20px);
|
font-size: rem(20px);
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
|
|||||||
@@ -1,18 +1,22 @@
|
|||||||
// Credits Page
|
// Credits Page
|
||||||
.credits {
|
.credits {
|
||||||
padding: 160px 0;
|
// padding: 160px 0;
|
||||||
|
|
||||||
// Intro Section
|
// Intro Section
|
||||||
&__heading {
|
&__heading {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-bottom: 72px;
|
margin: 56px 0 72px;
|
||||||
color: $color-tertiary;
|
color: $color-tertiary;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
|
margin: 160px 0 72px;
|
||||||
|
}
|
||||||
|
|
||||||
// Text
|
// Text
|
||||||
p {
|
p {
|
||||||
max-width: 350px;
|
max-width: 320px;
|
||||||
margin: 20px auto 56px;
|
margin: 50px auto 0;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
|
||||||
@include bp (sm) {
|
@include bp (sm) {
|
||||||
@@ -24,46 +28,82 @@
|
|||||||
|
|
||||||
// List
|
// List
|
||||||
&__list {
|
&__list {
|
||||||
margin-top: 160px;
|
padding-bottom: 96px;
|
||||||
|
|
||||||
|
@include bp (sm, max) {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__category {
|
&__category {
|
||||||
|
display: block;
|
||||||
|
border-top: 1px solid $color-tertiary;
|
||||||
|
padding-top: 32px;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
|
display: grid;
|
||||||
--columns: 18;
|
--columns: 18;
|
||||||
grid-column: 4 / span var(--columns);
|
grid-column: 4 / span var(--columns);
|
||||||
border-top: 1px solid $color-tertiary;
|
|
||||||
padding-top: 48px;
|
padding-top: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
|
font-size: rem(24px);
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
grid-column: 1 / span 8;
|
grid-column: 1 / span 8;
|
||||||
|
font-size: rem(28px);
|
||||||
}
|
}
|
||||||
ul {
|
}
|
||||||
|
|
||||||
|
& > ul {
|
||||||
|
margin: 24px 0 56px;
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
grid-column: 11 / span 8;
|
grid-column: 11 / span 8;
|
||||||
margin-bottom: 72px;
|
margin: 0 0 72px 0;
|
||||||
|
padding: 0;
|
||||||
|
font-size: rem(28px);
|
||||||
}
|
}
|
||||||
li {
|
|
||||||
|
& > li {
|
||||||
display: block;
|
display: block;
|
||||||
|
margin-bottom: 32px;
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $color-tertiary;
|
color: $color-tertiary;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
transition: color 0.2s;
|
transition: color 0.2s;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
font-size: rem(28px);
|
font-size: rem(24px);
|
||||||
font-family: $font-serif;
|
font-family: $font-serif;
|
||||||
}
|
|
||||||
|
|
||||||
dl {
|
@include bp (sm) {
|
||||||
margin-bottom: 32px;
|
font-size: rem(28px);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dt {
|
dt {
|
||||||
|
line-height: 1;
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: $color-secondary;
|
color: $color-secondary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dd {
|
dd {
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
|
font-size: rem(14px);
|
||||||
|
|
||||||
|
@include bp (sm) {
|
||||||
font-size: rem(16px);
|
font-size: rem(16px);
|
||||||
|
}
|
||||||
|
|
||||||
&, a {
|
&, a {
|
||||||
color: rgba($color-tertiary, 0.6);
|
color: rgba($color-tertiary, 0.6);
|
||||||
|
|||||||
Reference in New Issue
Block a user