Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Commit

Permalink
Fix layout bug in examples page
Browse files Browse the repository at this point in the history
  • Loading branch information
Reda Lemeden committed Aug 24, 2012
1 parent 228ead5 commit 81edcf0
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 7 deletions.
15 changes: 14 additions & 1 deletion _sass/desktop-example.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ section {
text-align: center;
margin-bottom: 3em;

& > code {
display: block;
}

div {
height: $body-line-height*5;
line-height: $body-line-height;
Expand Down Expand Up @@ -112,11 +116,20 @@ section {
}

&.fifth {
& > code {
margin-bottom: -1.5em;
}
div.box {
font-size: 0.78em;
margin-top: 2em;
@include span-columns(3);
@include nth-omega('4n+1');
@include nth-omega(4n);
}
}
}

div.code {
@include outer-container();
text-align: center;
padding-bottom: 0;
}
9 changes: 6 additions & 3 deletions _sass/mobile-example.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ section {
}
}
}
}

&.fourth {

}
div.code {
background-color: #eee;
text-align: center;
padding-top: 1em;
padding-bottom: 1em;
}

20 changes: 19 additions & 1 deletion css/desktop-example.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ section {
display: table; }
section:after {
clear: both; }
section > code {
display: block; }
section div {
height: 8.09em;
line-height: 1.618em;
Expand Down Expand Up @@ -147,6 +149,8 @@ section {
text-align: center; }
section.fourth div#alpha:last-child {
margin-right: 0; }
section.fifth > code {
margin-bottom: -1.5em; }
section.fifth div.box {
font-size: 0.78em;
margin-top: 2em;
Expand All @@ -156,5 +160,19 @@ section {
width: 23.23176%; }
section.fifth div.box:last-child {
margin-right: 0; }
section.fifth div.box:nth-child(4n+1) {
section.fifth div.box:nth-child(4n) {
margin-right: 0; }

div.code {
zoom: 1;
max-width: 64em;
text-align: left;
margin-left: auto;
margin-right: auto;
text-align: center;
padding-bottom: 0; }
div.code:before, div.code:after {
content: "";
display: table; }
div.code:after {
clear: both; }
6 changes: 6 additions & 0 deletions css/mobile-example.css
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,9 @@ section {
background-color: #eee; }
section.third div#alpha article {
background-color: #FFF; }

div.code {
background-color: #eee;
text-align: center;
padding-top: 1em;
padding-bottom: 1em; }
6 changes: 4 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,16 @@ <h3>Shifting columns</h3>
</section>

<h3>Automatic rows</h3>
<div class="code">
<code>@include outer-container;</code>
</div>

<section class="fifth">
<code>@include outer-container;</code>
<div class="box">
<pre>
li.block {
@include span-columns(3);
@include nth-omega('4n+1');
@include nth-omega(4n);
}</pre>
</div>
<div class="box">
Expand Down

0 comments on commit 81edcf0

Please sign in to comment.