From 04fa7c76a9f2ceb11adf0e134391367377582f97 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Sat, 6 Apr 2013 10:24:51 +0200 Subject: [PATCH] Tweak styling --- content/css/_fonts.scss | 18 ++++++++++++---- content/css/_main.scss | 21 +++++++++++++++++-- content/index.haml | 5 +---- .../2013-03-25-automated-nanoc-deployments.md | 1 + layouts/default.haml | 2 +- lib/helpers/post.rb | 2 +- 6 files changed, 37 insertions(+), 12 deletions(-) diff --git a/content/css/_fonts.scss b/content/css/_fonts.scss index 877263a..b45e724 100644 --- a/content/css/_fonts.scss +++ b/content/css/_fonts.scss @@ -138,7 +138,10 @@ a, .post .entry-title a:hover, .post.format-link .entry-title a, .cmsmsLike:hover span, -.portfolio_inner .entry-title a:hover {color:#ff9108;} +.portfolio_inner .entry-title a:hover { + // color:#ff9108; + color: #658590; +} ul.cmsms_slides_nav li.active a, ul.cmsms_slides_nav li:hover a, @@ -150,9 +153,15 @@ span.dropcap2, .cmsms_comments, .wp-pagenavi > span.current, .wp-pagenavi a:hover, -.portfolio_inner .hover_effect {background-color:#ff9108;} +.portfolio_inner .hover_effect { + // background-color:#ff9108; + background-color: #658590; +} -.tabs li a.current {background:#ff9108;} +.tabs li a.current { + // background:#ff9108; + background: #658590; +} input[type="text"]:focus, textarea:focus, @@ -163,7 +172,8 @@ select:focus, .tabs > li a.current, .wp-pagenavi > span.current, .wp-pagenavi a:hover { - border-color:#ff9108; + // border-color:#ff9108; + background-color: #658590; } /* ---------------------------------------------- Slider colors */ diff --git a/content/css/_main.scss b/content/css/_main.scss index 913017e..5aa4b24 100644 --- a/content/css/_main.scss +++ b/content/css/_main.scss @@ -65,15 +65,32 @@ ul.tla { } ol.posts { - list-style-type: none; + list-style-type: square; + color: #e0e0e0; + list-style-image: none; + padding: 0; margin: 0 0 24px 0; li { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + span.date { - width: 50px; display: inline-block; + float: left; + + width: 60px; + + margin-top: -1px; + margin-right: 14px; + + text-align: right; + font-size: 11px; + + color: #a0a0a0; } } } diff --git a/content/index.haml b/content/index.haml index 5012e41..1b8676c 100644 --- a/content/index.haml +++ b/content/index.haml @@ -10,11 +10,8 @@ title: Home - articles_by_year_for_two_columns.each do |column_articles| .one_half - column_articles.each do |year, articles| - - %h2= year - %ol.posts - articles.each do |article| %li %span.date= get_short_date(article) - = link_to article[:title], article.path \ No newline at end of file + = link_to article[:title], article.path, title: article[:title] \ No newline at end of file diff --git a/content/posts/2013-03-25-automated-nanoc-deployments.md b/content/posts/2013-03-25-automated-nanoc-deployments.md index d56946d..349608b 100644 --- a/content/posts/2013-03-25-automated-nanoc-deployments.md +++ b/content/posts/2013-03-25-automated-nanoc-deployments.md @@ -34,6 +34,7 @@ I've setup Jenkins with the RVM plugin and that's all I need to have Jenkins gen Here's the build script I currently use: + :::bash #!/bin/bash export NANOC_ENV=production bundle install diff --git a/layouts/default.haml b/layouts/default.haml index 99d014a..89965d8 100644 --- a/layouts/default.haml +++ b/layouts/default.haml @@ -40,7 +40,7 @@ %a.logo{:href => "/"} %img{:alt => "", :src => "/images/logo.png"}/ .custom_html - %h3{:style => "color:#ffffff; margin:0; line-height:24px;"} May the Source be with you + %h3{:style => "color:#ffffff; margin:0; line-height:24px;"} May the Source be with you. = render 'social_list' .nav_wrap diff --git a/lib/helpers/post.rb b/lib/helpers/post.rb index efb3f82..92a6d59 100644 --- a/lib/helpers/post.rb +++ b/lib/helpers/post.rb @@ -17,7 +17,7 @@ end def get_short_date(post) - attribute_to_time(post[:created_at]).strftime('%d %b') + attribute_to_time(post[:created_at]).strftime('%Y-%m-%d') end def get_pretty_date(post)