This commit is contained in:
2017-08-21 21:32:07 -05:00
committed by Mark Moser
parent 4ab6579576
commit b3d509144e
3 changed files with 39 additions and 7 deletions

View File

@ -11,7 +11,7 @@
flex-wrap: nowrap;
> * {
margin: 0 $gutter;
margin: 0 $gutter 0 0;
}
&.fifty-reversed {

View File

@ -2,12 +2,16 @@ body {
min-width: 300px;
}
header,
footer {
header {
margin: 0;
padding: 0;
}
footer {
margin: 0;
padding: 0 $gutter;
}
main {
margin: 0 $gutter;
padding: 0;
@ -15,13 +19,28 @@ main {
section {
margin: ($gutter * 2) 0;
&:nth-of-type(even) {
margin-right: -$gutter;
margin-left: -$gutter;
background-color: $light-grey;
padding: $gutter;
}
}
@media screen and (min-width: 426px) {
footer,
main {
margin: 0 auto;
width: 425px;
width: 100%;
}
footer,
section {
padding: $gutter calc((100% - 425px) / 2);
&:nth-of-type(even) {
padding: $gutter calc(((100% - 425px) / 2) + #{$gutter});
}
}
}
@ -32,8 +51,21 @@ section {
max-width: 860px;
}
footer {
margin: 0 auto;
padding: 0;
}
section {
margin: ($gutter * 4) 0;
padding: $gutter 0;
width: auto;
&:nth-of-type(even) {
margin-right: calc(-100% * 0.809 / 2);
margin-left: calc(-100% * 0.809 / 2);
padding: ($gutter * 2) calc(100% * 0.809 / 2);
}
}
}

View File

@ -57,8 +57,8 @@
<section class="fifty fifty-reversed">
<div>
<h2>Back-End Proficiency's</h2>
<p>Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean lacinia bibendum nulla sed consectetur. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur purus sit amet fermentum. Curabitur blandit tempus porttitor. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
<h2>Server Side</h2>
<p>Clearly, I really like working in ruby. It is my go to language whenever I need to spin up a project. I usually go for rails after considering Sinatra noting the many great conveniences. That isn't all I work with though. Before I fell in love with ruby, I was quite skilled with PHP. I have created my share of WordPress themes, and even a handful of plugins for site special need.</p>
</div>
<div class="pie">
<ul>