From d4a78dd8f8a18c6971542c393ef1bcfe11bee26e Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Fri, 28 Aug 2015 19:18:55 +1000 Subject: [PATCH] Goodbye web fonts, hello SVG icons --- content/screen.sass | 57 +++++++--------- layouts/_head.html | 3 +- layouts/_header.html | 2 +- layouts/article.html | 7 +- layouts/home.html | 6 +- lib/webink.rb | 104 ------------------------------ output/images/black-feed-icon.png | Bin 482 -> 0 bytes output/images/comment.svg | 10 +++ output/images/comment32.png | Bin 302 -> 0 bytes output/images/feed-icon.svg | 17 +++++ output/images/white-feed-icon.png | Bin 456 -> 0 bytes 11 files changed, 62 insertions(+), 144 deletions(-) delete mode 100644 lib/webink.rb delete mode 100644 output/images/black-feed-icon.png create mode 100644 output/images/comment.svg delete mode 100755 output/images/comment32.png create mode 100755 output/images/feed-icon.svg delete mode 100644 output/images/white-feed-icon.png diff --git a/content/screen.sass b/content/screen.sass index 3f61e13..ac254c8 100644 --- a/content/screen.sass +++ b/content/screen.sass @@ -1,12 +1,11 @@ -$ans-serif: 'CamingoWeb', "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif +$ans-serif: Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif body - font-family: 'CamingoWeb', Constantia, Georgia, "Bitstream Vera Serif", "Liberation Serif", serif - font-size: 16px - font-weight: 300 - background: #fff - color: #223 + font-family: $ans-serif + font-size: 16px + background: #fff + color: #464646 // HTML5 expectations - should go in reset perhaps header, footer, nav, article, figure, figcaption @@ -14,7 +13,7 @@ header, footer, nav, article, figure, figcaption p, li, blockquote - line-height: 1.2 + line-height: 1.3 p, pre @@ -88,6 +87,7 @@ h1 a body.home h1 > a -webkit-transition: border-bottom-color 500ms ease-out + transition: border-bottom-color 500ms ease-out border-bottom: 2px solid rgba(17, 17, 17, 0.0) &:hover @@ -100,7 +100,7 @@ sup pre, code, tt - font-family: 'SourceCodePro', Consolas, "Andale Mono", "Liberation Mono", Menlo, Monaco, "Bitstream Vera Sans Mono", monospace + font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace code, tt font-size: smaller @@ -128,9 +128,6 @@ figcaption text-align: center font-style: italic - .label - font-weight: 500 - img max-width: 100% @@ -141,13 +138,13 @@ img.cover-photo body > header font-family: $ans-serif font-size: 18px - font-weight: 400 color: white padding: 0.5em background: #1C1C1C a -webkit-transition: border-bottom-color 500ms ease-out + transition: border-bottom-color 500ms ease-out border-bottom: 2px solid rgba(255, 255, 255, 0.0) &:link, &:visited text-decoration: none @@ -173,9 +170,6 @@ body > header clear: both max-width: 728px font-size: 18px - font-weight: 300 - - footer color: #999 @@ -188,8 +182,6 @@ footer font-size: 14px padding-top: 1em display: block - font-weight: 200 - .column float: left @@ -197,6 +189,8 @@ footer margin: 0 min-width: 480px +.align-top + vertical-align: top #personal div padding-right: 2em @@ -235,9 +229,9 @@ ul.articles strong font-family: $ans-serif margin: 0 - font-weight: 400 + font-weight: normal display: block - font-size: 18px + font-size: 21px a &.more @@ -295,6 +289,7 @@ a img -webkit-transition: opacity 500ms ease-out + transition: opacity 500ms ease-out position: absolute max-width: none @@ -337,9 +332,6 @@ body.articles #content nav clear: both h2 - padding-left: 42px - line-height: 32px - background: url(/images/comment32.png) no-repeat top left margin-top: 0 li.short @@ -359,7 +351,6 @@ body.articles #content nav .keyboard-shortcut font-family: "Helvetica Neue", Helvetica, "Liberation Sans", "Bitstream Vera Sans", Tahoma, Geneva, Arial, sans-serif font-size: 1.5ex - font-weight: 400 img.alignleft float: left @@ -368,10 +359,14 @@ img.alignleft img.feed-icon -webkit-transition: opacity 500ms ease-out - opacity: 0.5 + transition: opacity 500ms ease-out + opacity: 1.0 &:hover - opacity: 1.0 + opacity: 0.75 + +img.comment + padding-top: 1px #content .alignright, img.alignright float: right @@ -462,8 +457,6 @@ table margin: 0 1em 1em 0 - - // Weather body.weather @@ -475,7 +468,6 @@ body.weather .temperature font-family: $ans-serif - font-weight: 200 .current font-size: 36px @@ -525,15 +517,12 @@ body.weather @media screen and (max-width: 768px) - body - font-size: 18px - #technical div, #personal div padding: 0 1em #content margin: 0 20px - + font-size: 20px @media screen and (max-width: 680px) @@ -549,6 +538,9 @@ body.weather @media screen and (max-width: 515px) + body + font-size: 20px + body > header span float: right display: inline @@ -598,7 +590,6 @@ body.weather footer margin: 20px 10px -@media screen and (max-width: 320px) figure.screenshot img max-width: 100% diff --git a/layouts/_head.html b/layouts/_head.html index f3f5eae..7137156 100644 --- a/layouts/_head.html +++ b/layouts/_head.html @@ -1,12 +1,11 @@ - + <%=h [@item[:title], 'WezM.net by Wesley Moore'].compact.join(' - ') %> <% if @item[:extra] %><% end %> <% if @item[:keywords] %><% end %> -<%= Webink.link %> diff --git a/layouts/_header.html b/layouts/_header.html index 6680668..e08f61a 100644 --- a/layouts/_header.html +++ b/layouts/_header.html @@ -6,7 +6,7 @@
  • About
  • Projects
  • - White Feed Icon Feed + White Feed Icon Feed
  • diff --git a/layouts/article.html b/layouts/article.html index 951fa8d..5bea54d 100644 --- a/layouts/article.html +++ b/layouts/article.html @@ -11,7 +11,12 @@ <%= yield %>
    -

    Something to Add?

    +

    + + Comment icon + Something to Add? + +

    Contact me by email or Twitter if you have a comment, correction or just want to get in touch.