Skip to content

Commit

Permalink
Fix reduced footer layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Sep 8, 2015
1 parent 6cb7037 commit 69d060b
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 61 deletions.
109 changes: 55 additions & 54 deletions app/assets/stylesheets/layout/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.l-footer, .l-footer-reduced {
clear: both;
}

.l-footer {
color: $light-gray;
background-color: $dark-gray;
clear: both;

a, a:visited {
color: $light-gray;
Expand All @@ -19,7 +23,6 @@
padding-left: $screen-padding;
padding-right: $screen-padding;
}
//position: relative;
}


Expand Down Expand Up @@ -81,9 +84,6 @@
margin-bottom: 0.15em;
}

.l-footer-copyright {
color: $light-gray;
}



Expand All @@ -92,83 +92,84 @@
*/

.l-footer-reduced {
color: $black;
background-color: $even-lighter-gray;
clear: both;
}

.l-footer-reduced > .l-footer-inner > ul#l-footer-nav-legal {
list-style: none;
margin: 0;
padding: 0;
float: right;
font-size: 0.8em;

li {
display: inline-block;
margin-left: 1em;
.l-footer-inner {
padding-top: 1rem;
}
}

.l-footer-reduced > .l-footer-inner > p#l-footer-copyright {
margin: 0;
}



/**
* Responsiveness
*/

@include till-breakpoint($bp-mobile-horizontal) {
#l-footer-nav-main > section {
@include span(1 of 2);

&#l-footer-nav-marketplace,
&#l-footer-nav-cooperative,
&#l-footer-nav-service {
@include omega;
.l-footer {
#l-footer-nav-main > section {
@include span(1 of 2);

&#l-footer-nav-marketplace,
&#l-footer-nav-cooperative,
&#l-footer-nav-service {
@include omega;
}
}
}
}

@include between-breakpoints($bp-mobile-horizontal, $bp-tablet-horizontal) {
.l-footer-copyright {
float: left;
}

.l-footer-legal {
float: right;
@include at-breakpoint($bp-mobile-horizontal) {
.l-footer-reduced {
.l-footer-copyright {
float: left;
}
.l-footer-legal {
float: right;
}
}
}

@include between-breakpoints($bp-mobile-horizontal, $bp-tablet-horizontal) {
#l-footer-nav-main > section {
@include span(1 of 3);
.l-footer {
.l-footer-copyright {
float: left;
}

&#l-footer-nav-subscription,
&#l-footer-nav-service {
@include omega;
.l-footer-legal {
float: right;
}

#l-footer-nav-main > section {
@include span(1 of 3);

&#l-footer-nav-subscription,
&#l-footer-nav-service {
@include omega;
}
}
}
}

@include at-breakpoint($bp-tablet-horizontal) {
#l-footer-nav-main > section {
@include span(1 of 6);
.l-footer {
#l-footer-nav-main > section {
@include span(1 of 6);

&#l-footer-nav-service {
@include omega;
&#l-footer-nav-service {
@include omega;
}
}
}

.l-footer-banner {
float: left;
}
.l-footer-banner {
float: left;
}

.l-footer-copyright,
.l-footer-legal {
float: right;
margin-top: 1.45em;
margin-left: 1.5em;
.l-footer-copyright,
.l-footer-legal {
float: right;
margin-top: 1.45em;
margin-left: 1.5em;
}
}
}
16 changes: 9 additions & 7 deletions app/views/layouts/partials/_footer_reduced.html.slim
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
footer.l-footer-reduced
.l-footer-inner
/ Legal links
ul#l-footer-nav-legal
li= link_to t('.agb'), '/agb'
li= link_to t('.privacy'), '/datenschutz'
li= link_to t('.impressum'), '/impressum'

/ Copyright
p#l-footer-copyright
p.l-footer-copyright
= t('.copyright_html')

/ Legal links
p.l-footer-legal
= link_to t('.agb'), '/agb'
|  
= link_to t('.privacy'), '/datenschutz'
|  
= link_to t('.impressum'), '/impressum'

0 comments on commit 69d060b

Please sign in to comment.