diff --git a/examples/article.html b/examples/article.html index 5ac6987..aaa2100 100644 --- a/examples/article.html +++ b/examples/article.html @@ -39,7 +39,9 @@ } } + +

We often think of Momentum as a means of dampening oscillations and speeding up the iterations, leading to faster convergence. But it has other interesting behavior. It allows a larger range of step-sizes to be used, and creates its own oscillations. What is going on?

diff --git a/examples/momentum.png b/examples/momentum.png new file mode 100644 index 0000000..7513f82 Binary files /dev/null and b/examples/momentum.png differ diff --git a/src/components/d-abstract.js b/src/components/d-abstract.js index c193c1c..7060e2e 100644 --- a/src/components/d-abstract.js +++ b/src/components/d-abstract.js @@ -5,12 +5,12 @@ const T = Template('d-abstract', ` diff --git a/src/distill-components/distill-header.js b/src/distill-components/distill-header.js index 8efcd5c..86aedee 100644 --- a/src/distill-components/distill-header.js +++ b/src/distill-components/distill-header.js @@ -10,66 +10,53 @@ const T = Template('distill-header', ` top: 0; left: 0; width: 100%; - height: 60px; - background-color: transparent; z-index: ${1e6}; color: rgba(0, 0, 0, 0.8); - /*border-bottom: 1px solid rgba(0, 0, 0, 0.08);*/ - /*box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);*/ + border-bottom: 1px solid rgba(0, 0, 0, 0.08); contain: content; } -.content { - height: 70px; -} -a { - font-size: 16px; - height: 60px; - line-height: 60px; - text-decoration: none; - color: rgba(255, 255, 255, 0.8); - padding: 22px 0; -} -a:hover { - color: rgba(255, 255, 255, 1); -} -svg { - background-color: hsl(0, 0%, 15%);; - padding: 8px; - border-radius: 12px; - width: 24px; - position: relative; - top: 16px; - left: 16px; - margin-right: 2px; -} -@media(min-width: 768px) { - :host { - height: 120px; - } - svg { - top: 40px; - left: 40px; - } + +.content > * { + line-height: 30px; + font-size: 14px; + padding: 3px 7px; + margin: 8px 0; } -@media(min-width: 1080px) { - :host { - height: 120px; - } - a { - height: 70px; - line-height: 70px; - padding: 28px 0; - } - .logo { - } +.name { + grid-column-end: span 8; + font-weight: 500; + border-radius: 3px; + text-transform: uppercase; +} + +a { + font-size: 13px; + text-decoration: none; + color: black; +} +svg { + display: none; + background-color: hsl(0, 0%, 15%); + padding: 8px; + border-radius: 6px; + width: 24px; + position: relative; + margin-right: 2px; } svg path { fill: white; stroke: rgba(255, 255, 255, 1.0); stroke-width: 3px; } +.content { + grid-column: page; + grid-template-columns: repeat(12, 1fr); + display: grid; + grid-column-gap: 40px; +} .logo { + display: none; font-size: 17px; font-weight: 200; } @@ -82,29 +69,23 @@ svg path { margin-left: 24px; text-transform: uppercase; } - -.name { - opacity: 0.0; - transition: opacity 0.5s -} - -a:hover .name { - opacity: 1.0; -} -
+
- +
Distill - +
+ Latest + About + Prize + Submit
`); // diff --git a/src/styles/styles-base.css b/src/styles/styles-base.css index 5230871..9eee0d2 100644 --- a/src/styles/styles-base.css +++ b/src/styles/styles-base.css @@ -1,7 +1,8 @@ html { font-size: 19px; line-height: 1rem; - font-family: "Libre Franklin", "Helvetica Neue", sans-serif; + /* font-family: "Libre Franklin", "Helvetica Neue", sans-serif; */ + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; diff --git a/src/styles/styles-layout.css b/src/styles/styles-layout.css index 1a6bfa9..9c1bc3b 100644 --- a/src/styles/styles-layout.css +++ b/src/styles/styles-layout.css @@ -1,4 +1,5 @@ @supports not (display: grid) { + distill-header, d-title, d-abstract, d-article, @@ -11,6 +12,7 @@ } } +distill-header, d-title, d-abstract, d-article, @@ -25,6 +27,7 @@ distill-footer { } @media(min-width: 768px) { + distill-header, d-title, d-abstract, d-article, @@ -38,6 +41,7 @@ distill-footer { } @media(min-width: 1000px) { + distill-header, d-title, d-abstract, d-article, @@ -51,6 +55,7 @@ distill-footer { } @media(min-width: 1280px) { + distill-header, d-title, d-abstract, d-article,