From d3930519ddbd1c234e2066054fda8b1b0c687fd7 Mon Sep 17 00:00:00 2001 From: Peter van Grieken Date: Fri, 7 Oct 2016 13:25:16 +0200 Subject: [PATCH 1/3] Made some improvements for more modularity This makes it more scalable and more fit for larger, more complex websites. --- README.md | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index e8c47b2..1183e90 100644 --- a/README.md +++ b/README.md @@ -11,31 +11,43 @@ Just edit the lines marked 'edit me!' to your requirements and write an HTML str ## The CSS ```css -.fukol-grid { +.c-fukol__grid { display: flex; /* 1 */ flex-wrap: wrap; /* 2 */ margin: -0.5em; /* 5 (edit me!) */ } -.fukol-grid > * { +.o-fukol__cell--rtl { + direction: rtl; +} + +.o-fukol__cell { flex: 1 0 5em; /* 3 (edit me!) */ margin: 0.5em; /* 4 (edit me!) */ } + +.o-fukol__cell--full { + flex-basis: calc(100% - 1em); +} + +.o-fukol__cell--double { + flex-basis: 5em; +} ``` ## The HTML ```html -
-