From ed41a547eeb6cfc628532466a99708b611352909 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 6 Sep 2015 19:35:43 +0200 Subject: [PATCH 1/7] CSS: Optimize font weights and colors --- layouts/css/_variables.styl | 2 ++ layouts/css/base.styl | 8 ++++---- layouts/css/page-modules/_download.styl | 10 +++++----- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/layouts/css/_variables.styl b/layouts/css/_variables.styl index 08d39bf517ddf..8a85fff7c7b22 100644 --- a/layouts/css/_variables.styl +++ b/layouts/css/_variables.styl @@ -7,6 +7,8 @@ $node-gray = #333 $darkgray = #666 $lightgray = #999 +$border-color = #c0c0c0 + padded-link($padding) padding-left $padding padding-right $padding diff --git a/layouts/css/base.styl b/layouts/css/base.styl index f35067b455adf..ef30d67c735f4 100644 --- a/layouts/css/base.styl +++ b/layouts/css/base.styl @@ -3,8 +3,8 @@ // Base styles body box-sizing border-box - font 300 20px/1.5 'Source Sans Pro', Arial, sans-serif - color #333 + font 300 20px/1.5 'Source Sans Pro', Open Sans, Roboto, Helvetica, Arial, sans-serif + color $node-gray margin 0 background-color #fff @@ -18,7 +18,7 @@ h2, h3, h4, h5 - font-weight normal + font-weight 400 a, a:link, @@ -55,7 +55,7 @@ code pre - background-color #333 + background-color $node-gray border-radius 3px padding 0.75em 1.2em font-size 0.8em diff --git a/layouts/css/page-modules/_download.styl b/layouts/css/page-modules/_download.styl index f6846db4a7e5a..9449617b5d376 100644 --- a/layouts/css/page-modules/_download.styl +++ b/layouts/css/page-modules/_download.styl @@ -44,7 +44,7 @@ width 33% td - border 1px solid #ccc + border 1px solid $border-color a, span @@ -63,17 +63,17 @@ h5.download-table-previous-releases-header .download-table font-size small - border 1px solid #C0C0C0 + border 1px solid $border-color td padding 5px > thead - font-weight bold + font-weight 600 > tbody td - border-top 1px solid #C0C0C0 + border-top 1px solid $border-color tr:nth-child(odd) background-color #eee @@ -136,7 +136,7 @@ td.download-table-last td:before content attr(data-label) float left - font-weight bold + font-weight 600 > thead > tr > th, > tbody > tr > th, From 0ed05efd3ef08359b1a4351fd7d32312d7fecac0 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 6 Sep 2015 19:36:41 +0200 Subject: [PATCH 2/7] Templates: Indentation --- layouts/partials/html-head.hbs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/html-head.hbs b/layouts/partials/html-head.hbs index f92fbd487b3fd..07e040d8b2ca5 100644 --- a/layouts/partials/html-head.hbs +++ b/layouts/partials/html-head.hbs @@ -21,12 +21,12 @@ From 8d729f3531747ac94f9c4a06fffbd6bccf8a6e43 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 6 Sep 2015 19:39:07 +0200 Subject: [PATCH 3/7] Templates: Move non-critical CSS to avoid blocked rendering --- layouts/partials/footer.hbs | 22 ++++++++++++---------- layouts/partials/html-head.hbs | 2 +- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/layouts/partials/footer.hbs b/layouts/partials/footer.hbs index a61c0c6c115e9..ecf0e8d394484 100644 --- a/layouts/partials/footer.hbs +++ b/layouts/partials/footer.hbs @@ -1,15 +1,5 @@ ↑ {{i18n.scrollToTop}} -
+ + + diff --git a/layouts/partials/html-head.hbs b/layouts/partials/html-head.hbs index 07e040d8b2ca5..b03c0c297c953 100644 --- a/layouts/partials/html-head.hbs +++ b/layouts/partials/html-head.hbs @@ -19,7 +19,7 @@ {{/each}} - +