From 728a3c7ea09324c17e408f743a123dcfc342d3bf Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Sun, 12 Oct 2014 12:14:10 +0200 Subject: add styles for proper display of week overview on index --- source/index.html.haml | 6 ++++-- source/stylesheets/base.css.scss | 1 + source/stylesheets/custom.scss | 8 ++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 source/stylesheets/custom.scss (limited to 'source') diff --git a/source/index.html.haml b/source/index.html.haml index 5d17f84..0bba68b 100644 --- a/source/index.html.haml +++ b/source/index.html.haml @@ -20,8 +20,10 @@ title: sublab - Ein Hackerspace in Leipzig %p CryptoCon14 - 22. bis 25. Mai 2014 .row - - %w(Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag).each do |dow| - .columns.small-12.medium-6.large-3 + - %w(Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag).each_with_index do |dow, i| + - dow_classes = ["columns", "small-12", "medium-4", "large-1", "dow-columns"] + - dow_classes << "end" if i == 6 + %div{class: dow_classes} %h5= dow %ul %li= lorem.words(3) diff --git a/source/stylesheets/base.css.scss b/source/stylesheets/base.css.scss index bcef650..63c9321 100644 --- a/source/stylesheets/base.css.scss +++ b/source/stylesheets/base.css.scss @@ -1,3 +1,4 @@ @import "normalize.scss"; @import "foundation.scss"; +@import "custom.scss"; diff --git a/source/stylesheets/custom.scss b/source/stylesheets/custom.scss new file mode 100644 index 0000000..a9f195f --- /dev/null +++ b/source/stylesheets/custom.scss @@ -0,0 +1,8 @@ +// sublab specific stlyesheet customizations + +// use 7 columns for week overview on index +.dow-columns { + @media #{$large-up} { + @include grid-column($columns: 1.7); + } +} -- cgit v1.2.1