Index: static/scss/content/_typography.scss |
=================================================================== |
--- a/static/scss/content/_typography.scss |
+++ b/static/scss/content/_typography.scss |
@@ -25,71 +25,123 @@ |
h1, |
.h1 |
{ |
margin: $xl 0 $lg 0; |
text-transform: none; |
font-size: $font-size-h1; |
font-weight: 300; |
+ |
+ @media (max-width: $tablet-breakpoint) |
+ { |
+ font-size: $font-size-h1 - 12px; |
+ margin-top: $md; |
+ } |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-h1 - 16px; |
+ margin-bottom: $lg - 20px; |
+ } |
} |
h2, |
.h2 |
{ |
margin: $lg 0 $md 0; |
font-size: $font-size-h2; |
font-weight: 700; |
+ |
+ @media (max-width: $tablet-breakpoint) |
+ { |
+ font-size: $font-size-h2 - 4px; |
+ margin-top: $md; |
+ } |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-h2 - 6px; |
+ margin-bottom: $sm; |
+ } |
} |
h3, |
.h3 |
{ |
margin: $lg 0 $md 0; |
font-size: $font-size-h3; |
font-weight: 700; |
+ |
+ @media (max-width: $tablet-breakpoint) |
+ { |
+ font-size: $font-size-h3 - 2px; |
+ margin-top: $md; |
+ } |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ margin-bottom: $sm; |
+ } |
} |
h4, |
.h4 |
{ |
margin: $md 0 $sm 0; |
font-size: $font-size-h4; |
font-weight: 700; |
+ |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-h4 - 2px; |
+ } |
} |
h5, |
.h5 |
{ |
margin: $sm 0; |
font-size: $font-size-h5; |
+ |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-h5 - 2px; |
+ } |
} |
h6, |
.h6 |
{ |
margin: $sm 0; |
font-size: $font-size-h6; |
font-weight: 400; |
+ |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-h6 - 2px; |
+ } |
} |
// Main text /////////////////////////////////////////////////////////////////// |
html, |
body |
{ |
color: $primary-fg; |
// @see https://www.smashingmagazine.com/2015/11/using-system-ui-fonts-practical-guide/ |
font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, |
"Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", |
"Fira Sans", "Droid Sans", "Helvetica Neue", |
sans-serif; |
font-size: $font-size-lg; |
font-weight: 300; |
line-height: 120%; |
+ |
+ @media (max-width: $mobile-breakpoint) |
+ { |
+ font-size: $font-size-lg - 2px; |
+ } |
} |
small, |
.small |
{ |
margin-bottom: $xs; |
font-size: 70%; |
line-height: 80%; |
@@ -100,16 +152,36 @@ |
ul, |
ol, |
dl, |
.block |
{ |
margin: $sm 0; |
} |
+.p-container |
ire
2017/06/27 08:36:31
Note: I couldn't really figure out where else to p
juliandoucette
2017/07/03 23:12:38
I don't like the name of this class because it's t
ire
2017/07/04 11:03:11
Yeah you'e right it could have a better name.
I
juliandoucette
2017/07/04 15:33:08
This is what I had in mind.
But it's not clear:
-
ire
2017/07/05 10:33:09
Ah I see what you mean! The .section class *should
ire
2017/07/05 10:53:50
Done.
|
+{ |
+ margin-bottom: $md; |
+ |
+ @media (min-width: $mobile-breakpoint) |
+ { |
+ margin-bottom: $lg; |
+ } |
+ |
+ @media (min-width: $tablet-breakpoint) |
+ { |
+ margin-bottom: $xl; |
+ } |
+} |
+ |
+.p-container p:first-child |
ire
2017/06/27 08:36:32
This is a change from the `.row p:first-child` sel
|
+{ |
+ margin-top: 0; |
+} |
+ |
// Links /////////////////////////////////////////////////////////////////////// |
a |
{ |
cursor: pointer; |
text-decoration: underline; |
color: $accent; |
font-weight: 400; |
@@ -254,16 +326,21 @@ |
margin: $sm 0 $md 0; |
} |
dt |
{ |
font-size: $font-size-xl; |
text-transform: uppercase; |
font-weight: 700; |
+ |
+ @media (max-width: $tablet-breakpoint) |
+ { |
+ font-size: $font-size-xl - 2px; |
+ } |
} |
// Blockquotes ///////////////////////////////////////////////////////////////// |
blockquote |
{ |
margin: 0; |
padding: 0 $md; |
@@ -287,18 +364,24 @@ |
{ |
border: none; |
} |
.center blockquote |
{ |
@extend h2; |
margin: 0; |
- padding: $xl 0; |
+ padding: $lg 0; |
font-style: normal; |
+ |
+ @media (max-width: $tablet-breakpoint) |
+ { |
+ font-size: $font-size-h3; |
+ padding: $md 0; |
+ } |
} |
.center blockquote p:last-child |
{ |
margin-top: -$xs; |
} |
cite |