New layout
This commit is contained in:
parent
440e7a3994
commit
f6a070f084
45 changed files with 661 additions and 758 deletions
43
static/sass/_grid.sass
Normal file
43
static/sass/_grid.sass
Normal file
|
@ -0,0 +1,43 @@
|
|||
*
|
||||
+box-sizing(border-box)
|
||||
|
||||
$pad: 20px
|
||||
|
||||
.grid
|
||||
background: white
|
||||
margin: 0 0 $pad 0
|
||||
|
||||
&:after
|
||||
// Or @extend clearfix
|
||||
content: ""
|
||||
display: table
|
||||
clear: both
|
||||
|
||||
[class*='col-']
|
||||
float: left
|
||||
padding-right: $pad
|
||||
|
||||
.grid &:last-of-type
|
||||
padding-right: 0
|
||||
|
||||
.col-2-3
|
||||
width: 66%
|
||||
|
||||
.col-1-3
|
||||
width: 33%
|
||||
|
||||
.col-1-2
|
||||
width: 49%
|
||||
|
||||
.col-1-4
|
||||
width: 24%
|
||||
|
||||
.col-1-8
|
||||
width: 12.5%
|
||||
|
||||
// Opt-in outside padding
|
||||
.grid-pad
|
||||
padding: $pad 0 $pad $pad
|
||||
|
||||
[class*='col-']:last-of-type
|
||||
padding-right: $pad
|
Loading…
Add table
Add a link
Reference in a new issue