From 1d363286b2300433cb67b79597e1f3d75dff1d10 Mon Sep 17 00:00:00 2001 From: raphaelgoetter Date: Wed, 24 Jul 2013 12:13:23 +0200 Subject: [PATCH] =?UTF-8?q?flexbox=20devient=20=C3=A0=20pr=C3=A9sent=20une?= =?UTF-8?q?=20feuille=20CSS=20=C3=A0=20part?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/flexbox.css | 65 +++++++++++++++++++++++++++++++++++++++++++++++++ css/knacss.css | 56 +----------------------------------------- 2 files changed, 66 insertions(+), 55 deletions(-) create mode 100644 css/flexbox.css diff --git a/css/flexbox.css b/css/flexbox.css new file mode 100644 index 0000000..4ee1cbc --- /dev/null +++ b/css/flexbox.css @@ -0,0 +1,65 @@ + + +/* ----------------------------- */ +/* ==flexbox classes */ +/* ----------------------------- */ + +/* flexbox layout context on container */ +.flex { + display: -webkit-box; + display: -moz-box; + display: -ms-flexbox; + display: -webkit-flex; + display: flex; +} +/* horizontal alignment */ +.flex-h { + -webkit-box-orient: horizontal; + -moz-box-orient: horizontal; + -webkit-flex-direction: row; + -ms-flex-direction: row; + flex-direction: row; +} +/* vertical alignment */ +.flex-v { + -webkit-box-orient: vertical; + -moz-box-orient: vertical; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; +} +/* for fluid items */ +.flex-fluid { + -moz-box-flex: 1; + -webkit-flex: 1; + -moz-flex: 1; + -ms-flex: 1; + flex: 1; +} +/* for items that must appear first */ +.flex-start { + -webkit-box-ordinal-group: -1; + -moz-box-ordinal-group: 0; + -ms-flex-order: -1; + -webkit-order: -1; + -moz-order: -1; + order: -1; +} +/* for items that must appear middle */ +.flex-mid { + -webkit-box-ordinal-group: 1; + -moz-box-ordinal-group: 1; + -ms-flex-order: 1; + -webkit-order: 1; + -moz-order: 1; + order: 1; +} +/* for items that must appear at the end */ +.flex-end { + -webkit-box-ordinal-group: 42; + -moz-box-ordinal-group: 42; + -ms-flex-order: 42; + -webkit-order: 42; + -moz-order: 42; + order: 42; +} diff --git a/css/knacss.css b/css/knacss.css index 7a593f7..28d65f2 100644 --- a/css/knacss.css +++ b/css/knacss.css @@ -1,5 +1,5 @@ /* -* www.KNACSS.com V2.6j @author: Raphael Goetter, Alsacreations +* www.KNACSS.com V2.6k @author: Raphael Goetter, Alsacreations * Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/ */ @@ -261,60 +261,6 @@ body > script {display: none !important;} vertical-align: top; } -/* flexbox layout */ -.flex { - display: -webkit-box; - display: -moz-box; - display: -ms-flexbox; - display: -webkit-flex; - display: flex; -} -.flex-h { - -webkit-box-orient: horizontal; - -moz-box-orient: horizontal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; -} -.flex-v { - -webkit-box-orient: vertical; - -moz-box-orient: vertical; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; -} -.flex-fluid { - -moz-box-flex: 1; - -webkit-flex: 1; - -moz-flex: 1; - -ms-flex: 1; - flex: 1; -} -.flex-start { - -webkit-box-ordinal-group: -1; - -moz-box-ordinal-group: 0; - -ms-flex-order: -1; - -webkit-order: -1; - -moz-order: -1; - order: -1; -} -.flex-mid { - -webkit-box-ordinal-group: 1; - -moz-box-ordinal-group: 1; - -ms-flex-order: 1; - -webkit-order: 1; - -moz-order: 1; - order: 1; -} -.flex-end { - -webkit-box-ordinal-group: 42; - -moz-box-ordinal-group: 42; - -ms-flex-order: 42; - -webkit-order: 42; - -moz-order: 42; - order: 42; -} - /* alignments (blocks and inline) */ /* ------------------------------ */