Make typography refinements
This commit is contained in:
parent
8a58559144
commit
7a41a04dcc
12 changed files with 69 additions and 38 deletions
|
@ -34,9 +34,10 @@ Single line blockquote:
|
||||||
|
|
||||||
Multi line blockquote with a cite reference:
|
Multi line blockquote with a cite reference:
|
||||||
|
|
||||||
> People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things.
|
> People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things.
|
||||||
|
|
||||||
<cite>Steve Jobs</cite> --- Apple Worldwide Developers' Conference, 1997
|
<cite>Steve Jobs</cite> --- Apple Worldwide Developers' Conference, 1997
|
||||||
|
{: .small}
|
||||||
|
|
||||||
## Tables
|
## Tables
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive__item-excerpt {
|
.archive__item-excerpt {
|
||||||
|
margin-top: 0;
|
||||||
font-size: $type-size-6;
|
font-size: $type-size-6;
|
||||||
|
|
||||||
& + p {
|
& + p {
|
||||||
|
|
|
@ -7,7 +7,7 @@ body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
color: $text-color;
|
color: $text-color;
|
||||||
font-family: $serif;
|
font-family: $serif;
|
||||||
line-height: 1.45;
|
line-height: 1.5;
|
||||||
background-color: $background-color;
|
background-color: $background-color;
|
||||||
|
|
||||||
&.overflow--hidden {
|
&.overflow--hidden {
|
||||||
|
@ -20,6 +20,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||||
margin: 1.414em 0 0.5em;
|
margin: 1.414em 0 0.5em;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
@ -99,8 +100,7 @@ blockquote {
|
||||||
|
|
||||||
cite {
|
cite {
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
font-size: $type-size-6;
|
font-style: italic;
|
||||||
font-style: normal;
|
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
content: "\2014";
|
content: "\2014";
|
||||||
|
|
|
@ -148,6 +148,6 @@
|
||||||
/* small button */
|
/* small button */
|
||||||
|
|
||||||
&--small {
|
&--small {
|
||||||
font-size: $type-size-7;
|
font-size: $type-size-6;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
@include clearfix;
|
@include clearfix;
|
||||||
margin-top: 3em;
|
margin-top: 3em;
|
||||||
padding: 0 2em 3em;
|
padding: 0 2em 3em;
|
||||||
|
color: mix(#fff, $gray, 25%);
|
||||||
|
|
||||||
@include breakpoint($large) {
|
@include breakpoint($large) {
|
||||||
padding-left: 1em;
|
padding-left: 1em;
|
||||||
|
@ -27,6 +28,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.page__footer-copyright {
|
.page__footer-copyright {
|
||||||
|
font-family: $sans-serif;
|
||||||
|
font-size: $type-size-7;
|
||||||
|
|
||||||
@include breakpoint($large) {
|
@include breakpoint($large) {
|
||||||
@include prefix(2 of 12);
|
@include prefix(2 of 12);
|
||||||
}
|
}
|
||||||
|
@ -34,8 +38,6 @@
|
||||||
@include breakpoint($x-large) {
|
@include breakpoint($x-large) {
|
||||||
@include prefix(2.5 of 12);
|
@include prefix(2.5 of 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
font-size: $type-size-6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.page__footer-follow {
|
.page__footer-follow {
|
||||||
|
|
|
@ -188,10 +188,10 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
right: 0;
|
right: 0;
|
||||||
padding: 0 10px;
|
padding: 0 8px;
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: none;
|
outline: none;
|
||||||
background-color: #000;
|
background-color: $primary-color;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
@ -306,11 +306,11 @@
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
.nav__list {
|
.nav__list {
|
||||||
font-size: 1.5rem;
|
font-size: 1.25rem;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 4px 0;
|
padding: 0.125em 0;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
@ -325,7 +325,7 @@
|
||||||
|
|
||||||
.nav__title {
|
.nav__title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 10px 20px;
|
padding: 0.5em 1em;
|
||||||
font-family: $sans-serif-narrow;
|
font-family: $sans-serif-narrow;
|
||||||
font-size: $type-size-5;
|
font-size: $type-size-5;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -334,8 +334,8 @@
|
||||||
|
|
||||||
.nav__sub-title {
|
.nav__sub-title {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px 0;
|
margin: 0.5em 0;
|
||||||
padding: 10px 0;
|
padding: 0.5em 0;
|
||||||
font-family: $sans-serif-narrow;
|
font-family: $sans-serif-narrow;
|
||||||
font-size: $type-size-5;
|
font-size: $type-size-5;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -42,8 +42,6 @@
|
||||||
|
|
||||||
.page__title {
|
.page__title {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
font-family: $serif;
|
|
||||||
font-weight: normal;
|
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
& + .page__meta {
|
& + .page__meta {
|
||||||
margin-top: -0.5em;
|
margin-top: -0.5em;
|
||||||
|
@ -75,11 +73,24 @@
|
||||||
|
|
||||||
dt {
|
dt {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
font-family: $sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd {
|
dd {
|
||||||
margin-left: 1em;
|
margin-left: 1em;
|
||||||
|
font-family: $sans-serif;
|
||||||
|
font-size: $type-size-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.small {
|
||||||
|
font-size: $type-size-6;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* blockquote citations */
|
||||||
|
blockquote + .small {
|
||||||
|
margin-top: -1.5em;
|
||||||
|
padding-left: 1.25rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
.sidebar {
|
.sidebar {
|
||||||
@include clearfix();
|
@include clearfix();
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
|
color: mix(#fff, $gray, 25%);
|
||||||
|
|
||||||
@include breakpoint($large) {
|
@include breakpoint($large) {
|
||||||
@include span(2 of 12);
|
@include span(2 of 12);
|
||||||
|
@ -23,23 +24,27 @@
|
||||||
font-family: $sans-serif-narrow;
|
font-family: $sans-serif-narrow;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3, h4 {
|
||||||
font-size: $type-size-4;
|
font-size: $type-size-5;
|
||||||
}
|
|
||||||
|
|
||||||
h4 {
|
|
||||||
font-size: $type-size-4;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p, li {
|
p, li {
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
font-size: $type-size-6;
|
font-size: $type-size-6;
|
||||||
line-height: 1.45;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: mix(#fff, $gray, 25%);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $link-color-hover;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar__right {
|
.sidebar__right {
|
||||||
|
@ -109,10 +114,6 @@
|
||||||
.sidebar .author__name {
|
.sidebar .author__name {
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
font-size: $type-size-5;
|
font-size: $type-size-5;
|
||||||
|
|
||||||
@include breakpoint($large) {
|
|
||||||
font-size: $type-size-4;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.author__bio {
|
.author__bio {
|
||||||
|
|
|
@ -7,7 +7,7 @@ table {
|
||||||
font-family: $sans-serif;
|
font-family: $sans-serif;
|
||||||
font-size: $type-size-6;
|
font-size: $type-size-6;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-bottom: 2px solid $border-color;
|
border: 2px solid $border-color;
|
||||||
|
|
||||||
& + table {
|
& + table {
|
||||||
margin-top: 1em;
|
margin-top: 1em;
|
||||||
|
@ -15,6 +15,7 @@ table {
|
||||||
}
|
}
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
|
background-color: $lighter-gray;
|
||||||
border-bottom: 2px solid $border-color;
|
border-bottom: 2px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,11 +23,13 @@ th {
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
border-right: 2px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
td {
|
td {
|
||||||
border-bottom: 1px solid $border-color;
|
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
|
border-bottom: 2px solid $border-color;
|
||||||
|
border-right: 2px solid $border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr, td, th {
|
tr, td, th {
|
||||||
|
|
|
@ -160,6 +160,10 @@ body:hover .visually-hidden button {
|
||||||
// social icons
|
// social icons
|
||||||
|
|
||||||
.social-icons {
|
.social-icons {
|
||||||
|
.fa {
|
||||||
|
color: #000;
|
||||||
|
}
|
||||||
|
|
||||||
.fa-behance,
|
.fa-behance,
|
||||||
.fa-behance-square {
|
.fa-behance-square {
|
||||||
color: $behance-color;
|
color: $behance-color;
|
||||||
|
@ -268,7 +272,7 @@ body:hover .visually-hidden button {
|
||||||
Navicons
|
Navicons
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
$navicon-width : 32px;
|
$navicon-width : 28px;
|
||||||
$navicon-height : 4px;
|
$navicon-height : 4px;
|
||||||
|
|
||||||
.navicon {
|
.navicon {
|
||||||
|
@ -357,7 +361,14 @@ $navicon-height : 4px;
|
||||||
Footnotes
|
Footnotes
|
||||||
========================================================================== */
|
========================================================================== */
|
||||||
|
|
||||||
|
.footnote {
|
||||||
|
color: mix(#fff, $gray, 25%);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
.footnotes {
|
.footnotes {
|
||||||
|
color: mix(#fff, $gray, 25%);
|
||||||
|
|
||||||
ol, li, p {
|
ol, li, p {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
font-size: $type-size-6;
|
font-size: $type-size-6;
|
||||||
|
@ -365,6 +376,7 @@ $navicon-height : 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.reversefootnote {
|
a.reversefootnote {
|
||||||
|
color: $gray;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
|
@ -29,14 +29,13 @@ $calisto : "Calisto MT", serif;
|
||||||
$garamond : Garamond, serif;
|
$garamond : Garamond, serif;
|
||||||
|
|
||||||
/* type scale */
|
/* type scale */
|
||||||
$type-size-1 : 3.998em;
|
$type-size-1 : 2.441em;
|
||||||
$type-size-2 : 2.827em;
|
$type-size-2 : 1.953em;
|
||||||
$type-size-3 : 1.999em;
|
$type-size-3 : 1.563em;
|
||||||
$type-size-4 : 1.414em;
|
$type-size-4 : 1.25em;
|
||||||
$type-size-5 : 1em;
|
$type-size-5 : 1em;
|
||||||
$type-size-6 : 0.707em;
|
$type-size-6 : 0.8em;
|
||||||
$type-size-7 : 0.5em;
|
$type-size-7 : 0.7em;
|
||||||
$type-size-8 : 0.354em;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -51,6 +50,7 @@ $lighter-gray : mix(#fff, $gray, 90%);
|
||||||
$body-color : #fff;
|
$body-color : #fff;
|
||||||
$background-color : #f5f5f5;
|
$background-color : #f5f5f5;
|
||||||
$code-background-color : #fff;
|
$code-background-color : #fff;
|
||||||
|
$code-background-color-dark : #1b1a24;
|
||||||
$text-color : #333332;
|
$text-color : #333332;
|
||||||
$border-color : $lighter-gray;
|
$border-color : $lighter-gray;
|
||||||
$base-color : #343434;
|
$base-color : #343434;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue