Introduce media queries and small screen adjustments
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@import "mediaqueries";
|
||||
|
||||
$content-width: 800px;
|
||||
$content-max-width: 100%;
|
||||
|
||||
@@ -15,6 +17,10 @@ body {
|
||||
background: #0d4f99;
|
||||
background: linear-gradient(35deg, #8955a0 0, #0d4f99 100%);
|
||||
|
||||
@include media-max(small) {
|
||||
padding: 3rem 0;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.8rem;
|
||||
color: #fff;
|
||||
@@ -42,6 +48,10 @@ body {
|
||||
margin-top: 2rem;
|
||||
color: rgba(255,255,255,0.6);
|
||||
|
||||
@include media-max(small) {
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
strong {
|
||||
font-weight: 400;
|
||||
color: #fff;
|
||||
@@ -81,6 +91,14 @@ main {
|
||||
margin: 4rem auto;
|
||||
text-align: left;
|
||||
|
||||
@include media-max(medium) {
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
@include media-max(small) {
|
||||
margin: 3rem auto;
|
||||
}
|
||||
|
||||
h2, h3 {
|
||||
margin-bottom: 1.5em;
|
||||
}
|
||||
@@ -119,6 +137,11 @@ main {
|
||||
border-bottom: 1px dotted #ccc;
|
||||
padding-bottom: 4rem;
|
||||
margin-bottom: 4rem;
|
||||
|
||||
@include media-max(small) {
|
||||
padding-bottom: 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,6 +153,10 @@ main {
|
||||
grid-row-gap: 1rem;
|
||||
grid-column-gap: 2rem;
|
||||
|
||||
@include media-max(small) {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
margin-top: 3rem;
|
||||
|
||||
h3 {
|
||||
|
||||
Reference in New Issue
Block a user