checkpoint

This commit is contained in:
Shan Carter
2017-01-13 10:38:18 -08:00
parent d8bc87061d
commit f6c8a2a870
13 changed files with 224 additions and 76 deletions
+1 -2
View File
@@ -2,7 +2,6 @@ const html = `
<style>
dt-appendix {
display: block;
font-family: "Open Sans";
font-size: 14px;
line-height: 24px;
margin-bottom: 0;
@@ -62,7 +61,7 @@ export default function(dom, data) {
let oldHtml = el.innerHTML;
el.innerHTML = html;
let div = el.querySelector("div.l-body")
if (dom.querySelector("dt-fn")) {
div.innerHTML = `<h3>Footnotes</h3><dt-fn-list></dt-fn-list>` + div.innerHTML;
}
+10 -1
View File
@@ -12,20 +12,29 @@ const html = `
padding-top: 12px;
padding-bottom: 12px;
}
dt-article.centered dt-byline {
text-align: center;
}
dt-byline a {
text-decoration: none;
}
dt-byline .authors {
text-align: left;
}
dt-byline .name {
text-transform: uppercase;
}
dt-byline .date {
display: block;
text-align: left;
}
dt-byline .year, dt-byline .month {
display: inline;
}
dt-byline .citation {
display: block;
text-align: left;
}
dt-byline .citation div {
display: inline;
@@ -39,7 +48,7 @@ const html = `
@media(min-width: 1024px) {
dt-byline {
border-bottom: none;
margin-bottom: 48px;
margin-bottom: 70px;
}
dt-byline a:hover {
+1 -1
View File
@@ -1,3 +1,3 @@
<svg viewBox="-607 419 64 64">
<path style="fill: none; stroke: black;stroke-width: 2px;" d="M-573.4,478.9c-8,0-14.6-6.4-14.6-14.5s14.6-25.9,14.6-40.8c0,14.9,14.6,32.8,14.6,40.8S-565.4,478.9-573.4,478.9z"/>
<path d="M-573.4,478.9c-8,0-14.6-6.4-14.6-14.5s14.6-25.9,14.6-40.8c0,14.9,14.6,32.8,14.6,40.8S-565.4,478.9-573.4,478.9z"/>
</svg>

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 163 B

+9 -6
View File
@@ -8,28 +8,31 @@ dt-footer {
font-weight: 300;
padding: 40px 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
background-color: rgba(0, 0, 0, 0.6);
background-color: hsl(223, 9%, 25%);
text-align: center;
}
dt-footer .logo svg {
width: 24px;
position: relative;
top: 4px;
margin-right: -2px;
margin-right: 2px;
}
dt-footer .logo svg path {
stroke: rgba(255, 255, 255, 0.8)!important;
stroke-width: 3px!important;
fill: none;
stroke: rgba(255, 255, 255, 0.8);
stroke-width: 3px;
}
dt-footer .logo {
font-size: 16px;
font-size: 13px;
font-weight: 300;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.8);
text-decoration: none;
margin-right: 6px;
}
</style>
<div class="l-body">
<div class="l-screen-inset">
<a href="/" class="logo">
${logo}
Distill
+19 -8
View File
@@ -6,7 +6,7 @@ dt-header {
display: block;
position: relative;
height: 60px;
background: white;
background-color: hsl(223, 9%, 25%);
width: 100%;
box-sizing: border-box;
z-index: 2;
@@ -15,30 +15,41 @@ dt-header {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
dt-header .content {
height: 60px;
height: 70px;
}
dt-header a {
font-size: 16px;
height: 60px;
line-height: 60px;
text-decoration: none;
color: rgba(0, 0, 0, 0.8);
color: rgba(255, 255, 255, 0.8);
}
dt-header svg {
width: 24px;
position: relative;
top: 4px;
margin-right: -2px;
margin-right: 2px;
}
@media(min-width: 1080px) {
dt-header {
height: 70px;
}
dt-header a {
height: 70px;
line-height: 70px;
}
}
dt-header svg path {
fill: none;
stroke: black;
stroke-width: 1;
stroke-linejoin: round;
stroke: rgba(255, 255, 255, 0.8);
stroke-width: 3px;
}
dt-header .logo {
font-size: 16px;
font-size: 13px;
font-weight: 300;
text-transform: uppercase;
}
dt-header .nav {
float: right;
+2 -2
View File
@@ -33,7 +33,7 @@ export default function(dom, data) {
<meta property="og:title" content="${data.title}"/>
<meta property="og:description" content="${data.description}">
<meta property="og:url" content="${data.url}"/>
<meta property="og:image" content="${data.url}/thumbnail.png"/>
<meta property="og:image" content="${data.url}/thumbnail.jpg"/>
<meta property="og:locale" content="en_US" />
<meta property="og:site_name" content="Distill" />
`);
@@ -44,7 +44,7 @@ export default function(dom, data) {
<meta name="twitter:title" content="${data.title}">
<meta name="twitter:description" content="${data.description}">
<meta name="twitter:url" content="${data.url}">
<meta name="twitter:image" content="${data.url}/thumbnail.png">
<meta name="twitter:image" content="${data.url}/thumbnail.jpg">
<meta name="twitter:image:width" content="560">
<meta name="twitter:image:height" content="295">
`);
+66 -22
View File
@@ -12,30 +12,49 @@ dt-article {
}
}
/* H1 */
dt-article h1 {
font-weight: 700;
margin-top: 48px;
font-weight: 400;
font-size: 32px;
line-height: 1.1em;
/*-webkit-font-smoothing: antialiased;*/
-webkit-font-smoothing: antialiased;
font-family: Georgia, serif;
}
@media(min-width: 1024px) {
@media(min-width: 1080px) {
dt-article.centered h1 {
text-align: center;
}
dt-article h1 {
font-size: 50px;
font-size: 48px;
margin-bottom: 12px;
letter-spacing: -0.025em;
letter-spacing: -0.02em;
}
dt-article > h1:first-of-type {
margin-top: 80px;
}
}
@media(min-width: 1024px) {
@media(min-width: 1200px) {
dt-article h1 {
font-size: 52px;
}
dt-article > h1:first-of-type {
margin-top: 100px;
}
}
/* H2 */
dt-article h2 {
font-weight: 400;
font-weight: 700;
font-size: 22px;
line-height: 1.25em;
margin-top: 12px;
@@ -44,21 +63,49 @@ dt-article h2 {
@media(min-width: 1024px) {
dt-article h2 {
font-size: 28px;
font-size: 24px;
}
}
dt-article h1 + h2 {
font-family: Georgia, serif;
font-weight: normal;
font-size: 18px;
line-height: 1.5em;
margin-top: 8px;
}
@media(min-width: 1024px) {
dt-article.centered h1 + h2 {
text-align: center;
}
dt-article h1 + h2 {
margin-top: 12px;
font-size: 22px;
}
}
/* H3 */
dt-article h3 {
font-weight: 700;
font-size: 20px;
font-size: 13px;
line-height: 1.4em;
margin-top: 24px;
margin-bottom: 24px;
margin-top: 36px;
margin-bottom: 18px;
text-transform: uppercase;
letter-spacing: -0.03em;
}
@media(min-width: 1024px) {
dt-article h3 {
font-size: 16px;
}
}
/* H4 */
dt-article h4 {
font-weight: 600;
text-transform: uppercase;
@@ -73,15 +120,16 @@ dt-article a {
dt-article p {
margin-bottom: 24px;
-webkit-font-smoothing: antialiased;
/*font-family: Georgia, serif;*/
font-family: Georgia, serif;
}
dt-article p a {
/*text-decoration: none;*/
/*background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0) 50%);*/
/*background-repeat: repeat-x;*/
/*background-size: 2px 1em;*/
/*background-position: 0 1.25em;*/
border-bottom: 1px solid rgba(0, 0, 0, 0.4);
text-decoration: none;
}
dt-article p a:hover {
border-bottom: 1px solid rgba(0, 0, 0, 0.8);
}
dt-article p .link {
@@ -89,8 +137,6 @@ dt-article p .link {
cursor: pointer;
}
dt-article ul {
padding-left: 20px;
}
@@ -194,8 +240,6 @@ dt-article .citation {
}
dt-include {
width: 100%;
width: auto;
display: block;
margin: 0;
padding: 0;
}
+1 -1
View File
@@ -1,6 +1,6 @@
html {
font: 400 15px/1.55em -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
background: #666;
background-color: hsl(223, 9%, 25%);
}
html {
+98 -16
View File
@@ -1,6 +1,19 @@
.l-body,
.l-body-outset,
.l-page,
dt-article > * {
.l-page-outset,
.l-middle,
.l-middle-outset,
dt-article > div,
dt-article > p,
dt-article > h1,
dt-article > h2,
dt-article > h3,
dt-article > h4,
dt-article > figure,
dt-article > ul,
dt-article > dt-byline {
width: auto;
margin-left: 24px;
margin-right: 24px;
box-sizing: border-box;
@@ -8,8 +21,20 @@ dt-article > * {
@media(min-width: 768px) {
.l-body,
.l-body-outset,
.l-page,
dt-article > * {
.l-page-outset,
.l-middle,
.l-middle-outset,
dt-article > div,
dt-article > p,
dt-article > h1,
dt-article > h2,
dt-article > h3,
dt-article > h4,
dt-article > figure,
dt-article > ul,
dt-article > dt-byline {
margin-left: 72px;
margin-right: 72px;
}
@@ -17,15 +42,20 @@ dt-article > * {
@media(min-width: 1080px) {
.l-body,
dt-article > * {
dt-article > div,
dt-article > p,
dt-article > h1,
dt-article > h2,
dt-article > h3,
dt-article > h4,
dt-article > figure,
dt-article > ul,
dt-article > dt-byline {
margin-left: calc(50% - 984px / 2);
width: 648px;
}
/*w-body-plus is deprecated*/
.l-body-outset,
dt-article .l-body-outset,
.w-body-plus,
dt-article .w-body-plus {
dt-article .l-body-outset {
margin-left: calc(50% - 984px / 2 - 96px/2);
width: calc(648px + 96px);
}
@@ -33,27 +63,32 @@ dt-article > * {
dt-article .l-middle {
width: 816px;
margin-left: calc(50% - 984px / 2);
margin-right: auto;
}
.l-page,
dt-article .l-page {
dt-article .l-page,
dt-article.centered .l-page {
width: 984px;
margin-left: auto;
margin-right: auto;
}
.l-page-outset,
dt-article .l-page-outset {
dt-article .l-page-outset,
dt-article.centered .l-page-outset {
width: 1080px;
margin-left: auto;
margin-right: auto;
}
.l-screen,
dt-article .l-screen {
dt-article .l-screen,
dt-article.centered .l-screen {
margin-left: auto;
margin-right: auto;
width: auto;
}
.l-screen-inset,
dt-article .l-screen-inset {
dt-article .l-screen-inset,
dt-article.centered .l-screen-inset {
margin-left: 24px;
margin-right: 24px;
width: auto;
@@ -64,8 +99,8 @@ dt-article > * {
float: right;
margin-top: 0;
margin-left: 24px;
margin-right: calc((100vw - 960px) / 2);
width: calc((984px - 648px) / 2 - 24px);
margin-right: calc((100vw - 984px) / 2);
width: calc((984px - 648px) - 24px);
}
/* Side */
.side.l-body,
@@ -86,13 +121,60 @@ dt-article > * {
margin-right: calc((100vw - 984px + 648px - 48px) / 2);
width: calc(648px / 2 - 48px + 24px);
}
.side.l-page,
dt-article .side.l-page {
/* Centered */
.centered .l-body,
.centered.l-body,
dt-article.centered > div,
dt-article.centered > p,
dt-article.centered > h1,
dt-article.centered > h2,
dt-article.centered > h3,
dt-article.centered > h4,
dt-article.centered > figure,
dt-article.centered > ul,
dt-article.centered > dt-byline {
margin-left: auto;
margin-right: auto;
width: 648px;
}
.centered .l-body-outset,
.centered.l-body-outset,
dt-article.centered .l-body-outset {
margin-left: auto;
margin-right: auto;
width: calc(648px + 96px);
}
.centered .l-middle,
.centered.l-middle,
dt-article.centered .l-middle {
width: 816px;
margin-left: auto;
margin-right: auto;
}
/* page and screen are already centered */
.centered .l-gutter,
.centered.l-gutter,
dt-article.centered .l-gutter {
clear: both;
float: right;
margin-top: 0;
margin-left: 24px;
margin-right: calc((100vw - 984px) / 2);
width: calc((984px - 648px) / 2 - 24px);
}
/* Side */
.centered .side.l-body,
.centered.side.l-body,
dt-article.centered .side.l-body {
clear: both;
float: right;
margin-top: 0;
margin-left: 48px;
margin-right: calc((100vw - 984px) / 2);
width: calc(960px / 2 - 48px);
width: calc(648px / 2 - 24px);
}
}