Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
phocks committed Dec 27, 2019
1 parent 1ecde28 commit 61c5ed6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/heading.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Heading = props => {
<div className={css.branding}>
<Link href="/">
<a>
<img src="/img/right-quote.svg" alt="Quoke" />
<img src="/img/left-quote.svg" alt="Quoke" />
</a>
</Link>
</div>
Expand Down
1 change: 0 additions & 1 deletion components/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
height: 100%;
// font-family: "Roboto", sans-serif;
line-height: 1.5;

}

a {
Expand Down
10 changes: 8 additions & 2 deletions components/quotation.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
@import "../sass/breakpoints.scss";

.root {
text-align: center;

blockquote {
text-align: left;
margin: auto;
padding: 16px;
max-width: 580px;
max-width: 1024px;

@include for-size(desktop-up) {
font-size: 1.75rem;
}

p {
font-size: large;
font-size: 1.25em;
}
}
}
1 change: 0 additions & 1 deletion public/img/quotation.svg

This file was deleted.

28 changes: 28 additions & 0 deletions sass/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@mixin for-size($range) {
$phone-upper-boundary: 600px;
$tablet-portrait-upper-boundary: 900px;
$tablet-landscape-upper-boundary: 1200px;
$desktop-upper-boundary: 1800px;

@if $range == phone-only {
@media (max-width: #{$phone-upper-boundary - 1}) {
@content;
}
} @else if $range == tablet-portrait-up {
@media (min-width: $phone-upper-boundary) {
@content;
}
} @else if $range == tablet-landscape-up {
@media (min-width: $tablet-portrait-upper-boundary) {
@content;
}
} @else if $range == desktop-up {
@media (min-width: $tablet-landscape-upper-boundary) {
@content;
}
} @else if $range == big-desktop-up {
@media (min-width: $desktop-upper-boundary) {
@content;
}
}
}

0 comments on commit 61c5ed6

Please sign in to comment.