Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring fukol up-to-date with an easily customisable SASS implementatio… #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions fukold.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* Fukold SASS
------ ----

Based on the awesome Fukol framework by @heydonworks.
Requires a SASS pre-processor (like node-sass) to turn
it back into dull CSS.

See the awesome w3schools for help on how flex works:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Brilliant!


http://www.w3schools.com/cssref/css3_pr_flex.asp
*/

$GRID_MARGIN: -0.5em;
$FLEX_GROW: 1;
$FLEX_SHRINK: 0;
$FLEX_LENGTH: 5em;
$FLEX_WRAP: wrap;
$CELL_MARGIN: 0.5em;

.fukold-grid {
display: flex;
flex-wrap: $FLEX_WRAP;
margin: $GRID_MARGIN;
}

.fukold-grid > * {
flex: $FLEX_GROW $FLEX_SHRINK $FLEX_LENGTH;
margin: $CELL_MARGIN;
}