This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
projects: [ | |
'{{repeat(2, 6)}}', | |
{ | |
index: '{{index()}}', | |
projectName: '{{lorem(3, "words")}}', | |
projectSecondary: '4 Tasks, 12 Contractors, 36 workers', | |
tasks: [ | |
'{{repeat(3, 5)}}', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"projects": [ | |
{ | |
"index": 0, | |
"projectName": "id commodo eiusmod", | |
"projectSecondary": "4 Tasks, 12 Contractors, 36 workers", | |
"tasks": [ | |
{ | |
"index": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin flexgrid($cols, $gutters, $drop-two, $drop-one) { | |
// flexgrid(columns, gutters, breakpoint for two columns, breakpoint for one column) | |
// flexgrid(4, 2, $lg, $sm) // 4 columns, 2rem gutters, below $lg drop to two cols, below $sm drop to one col | |
// flexgrid(4, 2, false, false) // Columns never reduce | |
// flexgrid(4, 2, $md, false) //drops to two at $md does not drop to one | |
// flexgrid(4, 2, false, $sm) //drops to one below $sm (never drops to 2 columns) | |
// | |
// Apply to parent of grid children | |
// Gutter in rems | |
// Relies on the SASS "Breakpoint" plugin to manage responsive breakpoints. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin width-max($width) { | |
@media (min-width: $width) { | |
padding-left: calc((100% - #{$width})/2); | |
padding-right: calc((100% - #{$width})/2); | |
} | |
} | |
// usage: | |
// #el-container { @include width-max(768px)} | |
// The container element expands horizontally without restriction, it's children | |
// would be centered horizontally, and limited to a total width of 768px |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin test ($color) { | |
outline-style: solid !important; | |
outline-width: 1px !important; | |
outline-color: $color !important; | |
} | |
// #el1 { @include test(red) } | |
// #el2 { @include test(blue) } | |
// outline everything | |
// * { @include test(gray) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ar($width-ratio, $height-ratio) { | |
// usage: #el { @include ar(16,9) }; | |
position: relative; | |
&:before { | |
display: block; | |
content: ""; | |
width: 100%; | |
padding-top: ($height-ratio / $width-ratio) * 100%; | |
} | |
> * { |