diff options
author | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-10-12 12:14:10 +0200 |
---|---|---|
committer | Lars Henrik Mai <lars.mai@kontinui.de> | 2014-10-12 12:54:44 +0200 |
commit | 728a3c7ea09324c17e408f743a123dcfc342d3bf (patch) | |
tree | 7ceddeb5293f2d8df2959e3b61dbc711d0ca776e /source | |
parent | 672e80a35976470679c9f5cb9cbdd94339ec229a (diff) |
add styles for proper display of week overview on index
Diffstat (limited to 'source')
-rw-r--r-- | source/index.html.haml | 6 | ||||
-rw-r--r-- | source/stylesheets/base.css.scss | 1 | ||||
-rw-r--r-- | source/stylesheets/custom.scss | 8 |
3 files changed, 13 insertions, 2 deletions
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); + } +} |