From 862908f033c034f3ae42305a98fcdfe3ca4d8ba4 Mon Sep 17 00:00:00 2001 From: Marc Altmann Date: Thu, 3 Dec 2015 12:19:45 +0100 Subject: [PATCH] Christmas boxes 2: change position of boxes --- .../stylesheets/controller/welcome.scss | 6 ++--- app/views/welcome/_filter_boxes.html.slim | 24 +++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/assets/stylesheets/controller/welcome.scss b/app/assets/stylesheets/controller/welcome.scss index 2066c40bd7..e0d0e87617 100644 --- a/app/assets/stylesheets/controller/welcome.scss +++ b/app/assets/stylesheets/controller/welcome.scss @@ -460,11 +460,11 @@ .teaser--filters { @include span(2 of 4); - &#filter-eco, &#filter-used { + &#filter-fair, &#filter-used { @include omega; } - &#filter-christmasgifts { + &#filter-eco { clear: right; } } @@ -546,7 +546,7 @@ .teaser--filters { @include span(2 of 6); - &#filter-christmasgifts { + &#filter-eco { @include omega; } diff --git a/app/views/welcome/_filter_boxes.html.slim b/app/views/welcome/_filter_boxes.html.slim index f7723e9821..6e06de49cd 100644 --- a/app/views/welcome/_filter_boxes.html.slim +++ b/app/views/welcome/_filter_boxes.html.slim @@ -1,6 +1,17 @@ / Filter boxes -.teaser.teaser--clear.teaser--filters#filter-fair +.teaser.teaser--filters.teaser--clear#filter-christmasgifts + .teaser-inner + = link_to library_path(12732) do + .filter-text + h2= t('.christmasgifts.teaser_html') + p= t('.christmasgifts.description') + .filter-image + = image_tag 'welcome/filter-christmasgifts.jpg' + p.filter-show= t('.christmasgifts.link') + p.filter-label= t('.christmasgifts.label') + +.teaser.teaser--filters#filter-fair .teaser-inner = link_to '/articles?article_search_form[fair]=true'\ '&pk_campaign=filterbox&pk_kwd=fair' do @@ -24,17 +35,6 @@ p.filter-show= t('.ecologic.link') p.filter-label= t('.ecologic.label') -.teaser.teaser--filters#filter-christmasgifts - .teaser-inner - = link_to library_path(12732) do - .filter-text - h2= t('.christmasgifts.teaser_html') - p= t('.christmasgifts.description') - .filter-image - = image_tag 'welcome/filter-christmasgifts.jpg' - p.filter-show= t('.christmasgifts.link') - p.filter-label= t('.christmasgifts.label') - .teaser.teaser--filters#filter-used .teaser-inner = link_to '/articles?article_search_form[condition]=old'\