Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Treehouse flexbox course

If you haven't seen it yet, Treehouse has released a CSS Flexbox Course that walkes you throihg all the essentual building blocks of the curretn Flexbox layout spec.

This gist is a sandbox playgound I used to get through the course and learned a thing or two, or ten.

Thanks Treehouse!

// ----
// libsass (v3.2.5)
// ----
/* =================================
Page Styles
==================================== */
* {
box-sizing: border-box;
}
body {
font-size: 1.35em;
font-family: 'Varela Round', sans-serif;
color: #fff;
background: #e8e9e9;
padding-left: 5%;
padding-right: 5%;
}
.container {
padding: 10px;
background: #fff;
border-radius: 5px;
margin: 45px auto;
box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1);
}
.item, .thing {
color: #fff;
padding: 15px;
margin: 5px;
background: #3db5da;
border-radius: 3px;
}
/* =================================
Flexbox
==================================== */
.container {
display: flex;
//flex-wrap: wrap;
justify-content: space-between;
//flex-direction: column;
//height: 200px;
//width: 50%;
}
.container
-(1..6).each do |i|
%div.item{:class => "item-#{i}"} item-#{i}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment