From f86f1d0a91496c2c31abd66d936b08f5d731f7b5 Mon Sep 17 00:00:00 2001 From: Shan Carter Date: Mon, 28 Aug 2017 16:16:51 -0700 Subject: [PATCH] Tweaking spacing --- examples/article.html | 10 +++++----- src/components/d-title.js | 11 ++++++----- src/styles/styles-article.css | 18 +----------------- 3 files changed, 12 insertions(+), 27 deletions(-) diff --git a/examples/article.html b/examples/article.html index 1219e02..2b7ee62 100644 --- a/examples/article.html +++ b/examples/article.html @@ -22,16 +22,16 @@

Attention and Augmented Recurrent Neural Networks

-

Some people want a deck

+

Although extremely useful for visualizing high-dimensional data, t-SNE plots can sometimes be mysterious or misleading. By exploring how it behaves in simple cases, we can learn to use it more effectively.

- + +

A popular method for exploring high-dimensional data is something called t-SNE, introduced by van der Maaten and Hinton in 2008 [1]. The technique has become widespread in the field of machine learning, since it has an almost magical ability to create compelling two-dimensonal “maps” from data with hundreds or even thousands of dimensions. Although impressive, these images can be tempting to misread. The purpose of this note is to prevent some common misreadings. +

Before diving in: if you haven’t encountered t-SNE before, here’s what you need to know about the math behind it. The goal is to take a set of points in a high-dimensional space and find a faithful representation of those points in a lower-dimensional space, typically the 2D plane. The algorithm is non-linear and adapts to the underlying data, performing different transformations on different regions. Those differences can be a major source of confusion.

This is the first paragraph of the article. Test a long — dash -- here it is.

Test for owner's possessive. Test for "quoting a passage." And another sentence. Or two. Some flopping fins; for diving.

-
-

Here's a test of an inline equation c = a^2 + b^2. And then there's a block equation:

c = \pm \sqrt{ \sum_{i=0}^{n}{a^{222} + b^2}} diff --git a/src/components/d-title.js b/src/components/d-title.js index 95c8897..8839476 100644 --- a/src/components/d-title.js +++ b/src/components/d-title.js @@ -16,33 +16,34 @@ const T = Template('d-title', ` padding-top: 16px; padding-bottom: 16px; margin: 0; - line-height: 1.3; + line-height: 1.15; font-size: 32px; font-weight: 700; } ::slotted(h2) { border-bottom: none !important; + font-size: 22px !important; + font-weight: 300 !important; + padding-top: 0 !important; + line-height: 1.5em !important; + margin-top: 0 !important; } @media screen and (min-width: 768px), print { ::slotted(h1) { font-size: 42px; - padding-bottom: 32px; } } @media(min-width: 1024px) { ::slotted(h1) { padding-top: 64px; - padding-bottom: 32px; font-size: 48px; } } @media(min-width: 1280px) { ::slotted(h1) { padding-top: 96px; - padding-bottom: 32px; - font-size: 56px; } } diff --git a/src/styles/styles-article.css b/src/styles/styles-article.css index c090d55..d354d25 100644 --- a/src/styles/styles-article.css +++ b/src/styles/styles-article.css @@ -36,22 +36,6 @@ d-article h2 { font-size: 32px; } } -d-article h1 + h2 { - font-weight: 300; - font-size: 20px; - line-height: 1.4em; - margin-top: 8px; - font-style: normal; -} -@media(min-width: 1080px) { - .centered h1 + h2 { - text-align: center; - } - d-article h1 + h2 { - margin-top: 12px; - font-size: 32px; - } -} /* H3 */ @@ -85,7 +69,7 @@ d-article a { d-article p, d-article ul, d-article ol { - margin-bottom: 24px; + margin-bottom: 18px; } d-article p b, d-article ul b,