diff --git a/css/knacss-unminified.css b/css/knacss-unminified.css index d1c1450..294113b 100644 --- a/css/knacss-unminified.css +++ b/css/knacss-unminified.css @@ -367,8 +367,7 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html /* ---------------------------------- */ /* ==Grids */ /* ---------------------------------- */ -/* Examples : will be compiled in CSS */ -.grid-2 { +[class*="grid-"] { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -383,19 +382,20 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html flex-wrap: wrap; margin-left: -1em; } -.grid-2 > * { - /* grid child can be any element */ +[class*="grid-"] > * { -webkit-box-flex: 0; -webkit-flex: 0 0 auto; -ms-flex: 0 0 auto; flex: 0 0 auto; - width: 50%; display: block; /* IE fix */ border-left: 1em solid transparent; background-clip: padding-box !important; /* no background on border */ } +.grid-2 > * { + width: 50%; +} .grid-2 > .flexitem-double { width: 100%; } @@ -423,33 +423,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-3 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 33.33333333%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-3 > .flexitem-double { width: 66.66666667%; @@ -478,33 +453,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-4 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 25%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-4 > .flexitem-double { width: 50%; @@ -533,33 +483,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-5 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-5 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 20%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-5 > .flexitem-double { width: 40%; @@ -588,33 +513,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-6 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-6 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 16.66666667%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-6 > .flexitem-double { width: 33.33333333%; @@ -643,33 +543,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-7 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-7 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 14.28571429%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-7 > .flexitem-double { width: 28.57142857%; @@ -698,33 +573,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-8 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-8 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 12.5%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-8 > .flexitem-double { width: 25%; @@ -753,33 +603,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-10 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-10 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 10%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-10 > .flexitem-double { width: 20%; @@ -808,33 +633,8 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-12 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} .grid-12 > * { - /* grid child can be any element */ - -webkit-box-flex: 0; - -webkit-flex: 0 0 auto; - -ms-flex: 0 0 auto; - flex: 0 0 auto; width: 8.33333333%; - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ } .grid-12 > .flexitem-double { width: 16.66666667%; @@ -863,29 +663,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -/* Examples : will be compiled in CSS */ -.grid-2-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-2-1 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-2-1 > *:nth-child(odd) { width: 66.66666667%; } @@ -897,28 +674,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-1-2 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-1-2 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-1-2 > *:nth-child(odd) { width: 33.33333333%; } @@ -930,28 +685,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-3-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-3-1 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-3-1 > *:nth-child(odd) { width: 75%; } @@ -963,28 +696,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-1-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-1-3 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-1-3 > *:nth-child(odd) { width: 25%; } @@ -996,28 +707,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-3-2 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-3-2 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-3-2 > *:nth-child(odd) { width: 60%; } @@ -1029,28 +718,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-2-3 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-2-3 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-2-3 > *:nth-child(odd) { width: 40%; } @@ -1062,28 +729,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-4-1 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-4-1 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-4-1 > *:nth-child(odd) { width: 80%; } @@ -1095,28 +740,6 @@ http://www.alsacreations.com/tuto/lire/1493-css3-flexbox-layout-module.html width: 100%; } } -.grid-1-4 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: horizontal; - -webkit-box-direction: normal; - -webkit-flex-direction: row; - -ms-flex-direction: row; - flex-direction: row; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - margin-left: -1em; -} -.grid-1-4 > * { - display: block; - /* IE fix */ - border-left: 1em solid transparent; - background-clip: padding-box !important; - /* no background on border */ -} .grid-1-4 > *:nth-child(odd) { width: 20%; } diff --git a/css/knacss.css b/css/knacss.css index eadbd68..8f55e88 100644 --- a/css/knacss.css +++ b/css/knacss.css @@ -1,4 +1,4 @@ /*! * www.KNACSS.com V4.0.2 BETA (2015-03-05) @author: Raphael Goetter, Alsacreations * Licence WTFPL http://www.wtfpl.net/ -*/html{box-sizing:border-box}*{box-sizing:inherit}html,body{margin:0;padding:0}ul,ol{padding-left:2em}ul.unstyled{list-style:none}img{vertical-align:middle;border:0}img:not([src$=".svg"]){height:auto}blockquote,figure{margin-left:0;margin-right:0}audio,canvas,video{display:inline-block}svg:not(:root){overflow:hidden}html{font-size:62.5%;font-size:calc(.625em);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{font-size:1.4em;background-color:#fff;color:#000;font-family:Helvetica,Arial,sans-serif;line-height:1.5}a{color:#333}a:hover,a:focus,a:active{color:#000}p,.p-like,ul,ol,dl,blockquote,pre,td,th,label,textarea,caption,details,figure{margin-top:0.75em;margin-bottom:0;line-height:1.5}h1,.h1-like{font-size:3.2rem;font-family:Helvetica,Arial,sans-serif}h2,.h2-like{font-size:2.8rem;font-family:Helvetica,Arial,sans-serif}h3,.h3-like{font-size:2.4rem}h4,.h4-like{font-size:2rem}h5,.h5-like{font-size:1.8rem}h6,.h6-like{font-size:1.6rem}.smaller{font-size:0.6em}.small{font-size:0.8em}.big{font-size:1.2em}.bigger{font-size:1.5em}.biggest{font-size:2em}code,pre,samp,kbd{white-space:pre-line;white-space:pre-wrap;font-family:Consolas,"DejaVu Sans Mono",Courier,monospace;line-height:normal}em,.italic,address,cite,dfn,i,var{font-style:italic}strong,.bold{font-weight:bold}small,sub,sup{font-size:smaller}.visually-hidden{position:absolute !important;border:0 !important;height:1px !important;width:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important}@media (max-width:768px){.no-small-screen{display:none}}@media (min-width:1280px){.no-large-screen{display:none}}p:first-child,.p-like:first-child,ul:first-child,ol:first-child,dl:first-child,blockquote:first-child,pre:first-child,h1:first-child,.h1-like:first-child,h2:first-child,.h2-like:first-child,h3:first-child,.h3-like:first-child,h4:first-child,.h4-like:first-child,h5:first-child,.h5-like:first-child,h6:first-child,.h6-like:first-child{margin-top:0}li p,li .p-like,li ul,li ol{margin-top:0;margin-bottom:0}img,table,td,blockquote,code,pre,textarea,input,video{max-width:100%}table{margin-bottom:20px}.mod{overflow:hidden}.clear,.line,.row{clear:both}.clearfix:after,.line:after{content:"";display:table;clear:both;border-collapse:collapse}.left{margin-right:auto}.right{margin-left:auto}.center{margin-left:auto;margin-right:auto}.txtleft{text-align:left}.txtright{text-align:right}.txtcenter{text-align:center}.fl{float:left}img.fl{margin-right:10px}.fr{float:right}img.fr{margin-left:10px}img.fl,img.fr{margin-bottom:5px}.row{display:table;table-layout:fixed;width:100%}.row>*,.col{display:table-cell;vertical-align:top}body>script{display:none !important}.inbl{display:inline-block;vertical-align:top}.flexbox,.flexbox-v{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flexbox-h{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.flexitem-fluid{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flexitem-first{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}.flexitem-medium{-webkit-box-ordinal-group:1;-webkit-order:0;-ms-flex-order:0;order:0}.flexitem-last{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}.grid-2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-2>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:50%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-2>.flexitem-double{width:100%}@media (min-width:769px) and (max-width:1024px){.grid-2>*{width:33.3333%}.grid-2>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-2>*{width:50%}.grid-2>.flexitem-double{width:100%}}@media (max-width:480px){.grid-2>*{width:100%}.grid-2>.flexitem-double{width:100%}}.grid-3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-3>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:33.33333333%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-3>.flexitem-double{width:66.66666667%}@media (min-width:769px) and (max-width:1024px){.grid-3>*{width:33.3333%}.grid-3>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-3>*{width:50%}.grid-3>.flexitem-double{width:100%}}@media (max-width:480px){.grid-3>*{width:100%}.grid-3>.flexitem-double{width:100%}}.grid-4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-4>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:25%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-4>.flexitem-double{width:50%}@media (min-width:769px) and (max-width:1024px){.grid-4>*{width:33.3333%}.grid-4>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-4>*{width:50%}.grid-4>.flexitem-double{width:100%}}@media (max-width:480px){.grid-4>*{width:100%}.grid-4>.flexitem-double{width:100%}}.grid-5{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-5>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:20%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-5>.flexitem-double{width:40%}@media (min-width:769px) and (max-width:1024px){.grid-5>*{width:33.3333%}.grid-5>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-5>*{width:50%}.grid-5>.flexitem-double{width:100%}}@media (max-width:480px){.grid-5>*{width:100%}.grid-5>.flexitem-double{width:100%}}.grid-6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-6>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:16.66666667%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-6>.flexitem-double{width:33.33333333%}@media (min-width:769px) and (max-width:1024px){.grid-6>*{width:33.3333%}.grid-6>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-6>*{width:50%}.grid-6>.flexitem-double{width:100%}}@media (max-width:480px){.grid-6>*{width:100%}.grid-6>.flexitem-double{width:100%}}.grid-7{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-7>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:14.28571429%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-7>.flexitem-double{width:28.57142857%}@media (min-width:769px) and (max-width:1024px){.grid-7>*{width:33.3333%}.grid-7>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-7>*{width:50%}.grid-7>.flexitem-double{width:100%}}@media (max-width:480px){.grid-7>*{width:100%}.grid-7>.flexitem-double{width:100%}}.grid-8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-8>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:12.5%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-8>.flexitem-double{width:25%}@media (min-width:769px) and (max-width:1024px){.grid-8>*{width:33.3333%}.grid-8>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-8>*{width:50%}.grid-8>.flexitem-double{width:100%}}@media (max-width:480px){.grid-8>*{width:100%}.grid-8>.flexitem-double{width:100%}}.grid-10{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-10>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:10%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-10>.flexitem-double{width:20%}@media (min-width:769px) and (max-width:1024px){.grid-10>*{width:33.3333%}.grid-10>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-10>*{width:50%}.grid-10>.flexitem-double{width:100%}}@media (max-width:480px){.grid-10>*{width:100%}.grid-10>.flexitem-double{width:100%}}.grid-12{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-12>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:8.33333333%;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-12>.flexitem-double{width:16.66666667%}@media (min-width:769px) and (max-width:1024px){.grid-12>*{width:33.3333%}.grid-12>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-12>*{width:50%}.grid-12>.flexitem-double{width:100%}}@media (max-width:480px){.grid-12>*{width:100%}.grid-12>.flexitem-double{width:100%}}.grid-2-1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-2-1>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-2-1>*:nth-child(odd){width:66.66666667%}.grid-2-1>*:nth-child(even){width:33.33333333%}@media (max-width:480px){.grid-2-1>*:nth-child(n){width:100%}}.grid-1-2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-1-2>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-1-2>*:nth-child(odd){width:33.33333333%}.grid-1-2>*:nth-child(even){width:66.66666667%}@media (max-width:480px){.grid-1-2>*:nth-child(n){width:100%}}.grid-3-1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-3-1>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-3-1>*:nth-child(odd){width:75%}.grid-3-1>*:nth-child(even){width:25%}@media (max-width:480px){.grid-3-1>*:nth-child(n){width:100%}}.grid-1-3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-1-3>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-1-3>*:nth-child(odd){width:25%}.grid-1-3>*:nth-child(even){width:75%}@media (max-width:480px){.grid-1-3>*:nth-child(n){width:100%}}.grid-3-2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-3-2>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-3-2>*:nth-child(odd){width:60%}.grid-3-2>*:nth-child(even){width:40%}@media (max-width:480px){.grid-3-2>*:nth-child(n){width:100%}}.grid-2-3{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-2-3>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-2-3>*:nth-child(odd){width:40%}.grid-2-3>*:nth-child(even){width:60%}@media (max-width:480px){.grid-2-3>*:nth-child(n){width:100%}}.grid-4-1{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-4-1>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-4-1>*:nth-child(odd){width:80%}.grid-4-1>*:nth-child(even){width:20%}@media (max-width:480px){.grid-4-1>*:nth-child(n){width:100%}}.grid-1-4{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}.grid-1-4>*{display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-1-4>*:nth-child(odd){width:20%}.grid-1-4>*:nth-child(even){width:80%}@media (max-width:480px){.grid-1-4>*:nth-child(n){width:100%}}table,.table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;vertical-align:top;border:1px solid #ccc}.table{display:table}table#recaptcha_table,table.table-auto{table-layout:auto}caption{padding:10px;color:#555;font-style:italic}td,th{padding:0.3em 0.8em;border:1px #aaa dotted;vertical-align:top;min-width:20px;cursor:default;text-align:left}.btn{display:inline-block}form,fieldset{border:none}input,button,select,label,.btn{vertical-align:middle;font-family:inherit;font-size:inherit}label{display:inline-block;vertical-align:middle;cursor:pointer}legend{border:0;white-space:normal}textarea{min-height:5em;vertical-align:top;font-family:inherit;font-size:inherit;resize:vertical}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="search"]{-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{display:none}::-webkit-input-placeholder{color:#777}input:-moz-placeholder,textarea:-moz-placeholder{color:#777}button::-moz-focus-inner,input[type='button']::-moz-focus-inner,input[type='reset']::-moz-focus-inner,input[type='submit']::-moz-focus-inner{border:0;padding:0}.w10{width:10%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w33{width:33.3333%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w66{width:66.6666%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w90{width:90%}.w100{width:100%}.w50p{width:50px}.w100p{width:100px}.w150p{width:150px}.w200p{width:200px}.w300p{width:300px}.w400p{width:400px}.w500p{width:500px}.w600p{width:600px}.w700p{width:700px}.w800p{width:800px}.w960p{width:960px}.mw960p{max-width:960px}.w1140p{width:1140px}.mw1140p{max-width:1140px}.wauto{width:auto}.man,.ma0{margin:0}.pan,.pa0{padding:0}.mas{margin:10px}.mam{margin:20px}.mal{margin:40px}.pas{padding:10px}.pam{padding:20px}.pal{padding:40px}.mtn,.mt0{margin-top:0}.mts{margin-top:10px}.mtm{margin-top:20px}.mtl{margin-top:40px}.mrn,.mr0{margin-right:0}.mrs{margin-right:10px}.mrm{margin-right:20px}.mrl{margin-right:40px}.mbn,.mb0{margin-bottom:0}.mbs{margin-bottom:10px}.mbm{margin-bottom:20px}.mbl{margin-bottom:40px}.mln,.ml0{margin-left:0}.mls{margin-left:10px}.mlm{margin-left:20px}.mll{margin-left:40px}.ptn,.pt0{padding-top:0}.pts{padding-top:10px}.ptm{padding-top:20px}.ptl{padding-top:40px}.prn,.pr0{padding-right:0}.prs{padding-right:10px}.prm{padding-right:20px}.prl{padding-right:40px}.pbn,.pb0{padding-bottom:0}.pbs{padding-bottom:10px}.pbm{padding-bottom:20px}.pbl{padding-bottom:40px}.pln,.pl0{padding-left:0}.pls{padding-left:10px}.plm{padding-left:20px}.pll{padding-left:40px}@media (min-width:1025px){.large-hidden{display:none !important}.large-visible{display:block !important}.large-no-float{float:none}.large-inbl{display:inline-block;float:none;vertical-align:top}.large-row{display:table;table-layout:fixed;width:100% !important}.large-col{display:table-cell;vertical-align:top}.large-w25{width:25% !important}.large-w33{width:33.3333% !important}.large-w50{width:50% !important}.large-w66{width:66.6666% !important}.large-w75{width:75% !important}.large-w100,.large-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.large-man{margin:0 !important}}@media (min-width:769px) and (max-width:1024px){.medium-hidden{display:none !important}.medium-visible{display:block !important}.medium-no-float{float:none}.medium-inbl{display:inline-block;float:none;vertical-align:top}.medium-row{display:table;table-layout:fixed;width:100% !important}.medium-col{display:table-cell;vertical-align:top}.medium-w25{width:25% !important}.medium-w33{width:33.3333% !important}.medium-w50{width:50% !important}.medium-w66{width:66.6666% !important}.medium-w75{width:75% !important}.medium-w100,.medium-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.medium-man,.medium-ma0{margin:0 !important}}@media (min-width:481px) and (max-width:768px){.mod,.col,fieldset{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.w600p,.w700p,.w800p,.w960p,.mw960p{width:auto;float:none}.small-hidden{display:none !important}.small-visible{display:block !important}.small-no-float{float:none}.small-inbl{display:inline-block;float:none;vertical-align:top}.small-row{display:table !important;table-layout:fixed !important;width:100% !important}.small-col{display:table-cell !important;vertical-align:top !important}.small-w25{width:25% !important}.small-w33{width:33.3333% !important}.small-w50{width:50% !important}.small-w66{width:66.6666% !important}.small-w75{width:75% !important}.small-w100,.small-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.small-man,.small-ma0{margin:0 !important}.small-pan,.small-pa0{padding:0 !important}.grid3>*,.grid4>*,.grid5>*,.grid6>*,.grid8>*,.grid10>*,.grid12>*{width:50%}.autogrid5>*,.autogrid6>*,.autogrid8>*,.autogrid10>*,.autogrid12>*{width:49% !important}}@media (max-width:480px){.w300p,.w400p,.w500p{width:auto;float:none}.row{display:block !important;width:100% !important}.tiny-hidden{display:none !important}.tiny-visible{display:block !important}.tiny-no-float{float:none}.tiny-inbl{display:inline-block;float:none;vertical-align:top}.tiny-row{display:table !important;table-layout:fixed !important;width:100% !important}.tiny-col{display:table-cell !important;vertical-align:top !important}th,td{display:block !important;width:auto !important;text-align:left !important}thead{display:none}.tiny-w25{width:25% !important}.tiny-w33{width:33.3333% !important}.tiny-w50{width:50% !important}.tiny-w66{width:66.6666% !important}.tiny-w75{width:75% !important}.tiny-w100,.tiny-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.tiny-man,.tiny-ma0{margin:0 !important}.tiny-pan,.tiny-pa0{padding:0 !important}.grid>*>*{width:100% !important}[class*="autogrid"]>*{width:100% !important}}@media print{*{background:transparent !important;box-shadow:none !important;text-shadow:none !important}body{width:auto !important;margin:auto !important;font-family:serif;font-size:12pt;background-color:#fff !important;color:#333 !important}p,.p-like,h1,.h1-like,h2,.h2-like,h3,.h3-like,h4,.h4-like,h5,.h5-like,h6,.h6-like,blockquote,ul,ol{color:#000 !important;margin:auto !important}.print{display:block}.no-print{display:none}img{-webkit-filter:grayscale(100%);filter:grayscale(100%)}p,.p-like,blockquote{orphans:3;widows:3}blockquote,ul,ol{page-break-inside:avoid}h1,.h1-like{page-break-before:always}h1,.h1-like,h2,.h2-like,h3,.h3-like,caption{page-break-after:avoid}a{color:#000 !important;text-decoration:underline !important}a[href]:after{content:" (" attr(href) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}}.skip-links{position:absolute}.skip-links a{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);padding:0.5em;background:black;color:white;text-decoration:none}.skip-links a:focus{position:static;overflow:visible;clip:auto}@media (max-width:768px){div,textarea,table,td,th,code,pre,samp{word-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}}.gm-style img{height:100%}:not(.gm-style) img{height:auto}.gm-style img,.gmnoscreen img,.gmnoprint img{max-width:none !important}code,kbd,mark{border-radius:2px}kbd{padding:0 2px;border:1px solid #999}code{padding:2px 4px;background:rgba(0,0,0,0.04);color:#b11}pre code{padding:none;background:none;color:inherit;border-radius:0}mark{padding:2px 4px;background:#ff0}sup,sub{vertical-align:0;position:relative}sup{bottom:1ex}sub{top:0.5ex}blockquote{position:relative;padding-left:3em}blockquote:before{content:"\201C";position:absolute;left:0;top:0;font-family:georgia, serif;font-size:5em;line-height:0.9;color:rgba(0,0,0,0.3)}blockquote>footer{margin-top:.75em;font-size:0.9em;color:rgba(0,0,0,0.7)}blockquote>footer:before{content:"\2014 \0020"}q{font-style:normal}q,.q{quotes:"“\00a0" "\00a0”"}q:lang(fr),.q:lang(fr){quotes:"«\00a0" "\00a0»"}hr{display:block;clear:both;height:1px;margin:1em 0 2em;padding:0;border:0;color:#ccc;background-color:#ccc}.table-alternate{border:0}.table-alternate tbody{border:1px solid #ccc}.table-alternate thead tr>*+*{border-left:0}.table-alternate tbody tr>*+*{border-left:1px solid #ccc}.table-alternate-v{border:0;border-right:1px solid #ccc}.table-alternate-v tr>:first-child{border-bottom:0}.table-alternate-v tr>*+*{border-top:1px solid #ccc}.table-striped tbody tr:nth-child(odd){background:#eee;background:rgba(0,0,0,0.05)}.table-striped-v tr>:first-child{background:#eee;background:rgba(0,0,0,0.05)}.comment-navigation,.paging-navigation,.post-navigation{margin:0 0 1.5em;overflow:hidden}.comment-navigation .nav-previous,.paging-navigation .nav-previous,.post-navigation .nav-previous{float:left;width:50%}.comment-navigation .nav-next,.paging-navigation .nav-next,.post-navigation .nav-next{float:right;text-align:right;width:50%}.alignnone{margin:.25em 1.5em 1.5em 0}.aligncenter{clear:both;display:block;margin:1.5em auto}.alignleft{float:left;margin:0 1.5em .25em 0}.alignright{float:right;margin:0 0 .25em 1.5em}.entry-content,.comment-content{clear:both}.entry-content:after,.comment-content:after,.entry-content:before,.comment-content:before{content:"";display:table}.widget+.widget{margin:1.5em 0 0}.widget select{max-width:100%}.hentry{margin:0 0 1.5em}.page-content,.entry-content,.entry-summary{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.comment-content a{word-wrap:break-word}img.wp-smiley{margin-bottom:0;margin-top:0;padding:0;border:none}.wp-caption{max-width:100%;margin-bottom:1.5em}.wp-caption img{display:block;margin:0 auto}.wp-caption-text{margin:1em 0;text-align:center}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;width:100%;text-align:center;vertical-align:top}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block} \ No newline at end of file +*/html{box-sizing:border-box}*{box-sizing:inherit}html,body{margin:0;padding:0}ul,ol{padding-left:2em}ul.unstyled{list-style:none}img{vertical-align:middle;border:0}img:not([src$=".svg"]){height:auto}blockquote,figure{margin-left:0;margin-right:0}audio,canvas,video{display:inline-block}svg:not(:root){overflow:hidden}html{font-size:62.5%;font-size:calc(.625em);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{font-size:1.4em;background-color:#fff;color:#000;font-family:Helvetica,Arial,sans-serif;line-height:1.5}a{color:#333}a:hover,a:focus,a:active{color:#000}p,.p-like,ul,ol,dl,blockquote,pre,td,th,label,textarea,caption,details,figure{margin-top:0.75em;margin-bottom:0;line-height:1.5}h1,.h1-like{font-size:3.2rem;font-family:Helvetica,Arial,sans-serif}h2,.h2-like{font-size:2.8rem;font-family:Helvetica,Arial,sans-serif}h3,.h3-like{font-size:2.4rem}h4,.h4-like{font-size:2rem}h5,.h5-like{font-size:1.8rem}h6,.h6-like{font-size:1.6rem}.smaller{font-size:0.6em}.small{font-size:0.8em}.big{font-size:1.2em}.bigger{font-size:1.5em}.biggest{font-size:2em}code,pre,samp,kbd{white-space:pre-line;white-space:pre-wrap;font-family:Consolas,"DejaVu Sans Mono",Courier,monospace;line-height:normal}em,.italic,address,cite,dfn,i,var{font-style:italic}strong,.bold{font-weight:bold}small,sub,sup{font-size:smaller}.visually-hidden{position:absolute !important;border:0 !important;height:1px !important;width:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important}@media (max-width:768px){.no-small-screen{display:none}}@media (min-width:1280px){.no-large-screen{display:none}}p:first-child,.p-like:first-child,ul:first-child,ol:first-child,dl:first-child,blockquote:first-child,pre:first-child,h1:first-child,.h1-like:first-child,h2:first-child,.h2-like:first-child,h3:first-child,.h3-like:first-child,h4:first-child,.h4-like:first-child,h5:first-child,.h5-like:first-child,h6:first-child,.h6-like:first-child{margin-top:0}li p,li .p-like,li ul,li ol{margin-top:0;margin-bottom:0}img,table,td,blockquote,code,pre,textarea,input,video{max-width:100%}table{margin-bottom:20px}.mod{overflow:hidden}.clear,.line,.row{clear:both}.clearfix:after,.line:after{content:"";display:table;clear:both;border-collapse:collapse}.left{margin-right:auto}.right{margin-left:auto}.center{margin-left:auto;margin-right:auto}.txtleft{text-align:left}.txtright{text-align:right}.txtcenter{text-align:center}.fl{float:left}img.fl{margin-right:10px}.fr{float:right}img.fr{margin-left:10px}img.fl,img.fr{margin-bottom:5px}.row{display:table;table-layout:fixed;width:100%}.row>*,.col{display:table-cell;vertical-align:top}body>script{display:none !important}.inbl{display:inline-block;vertical-align:top}.flexbox,.flexbox-v{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.flexbox-h{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row}.flexitem-fluid{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.flexitem-first{-webkit-box-ordinal-group:0;-webkit-order:-1;-ms-flex-order:-1;order:-1}.flexitem-medium{-webkit-box-ordinal-group:1;-webkit-order:0;-ms-flex-order:0;order:0}.flexitem-last{-webkit-box-ordinal-group:2;-webkit-order:1;-ms-flex-order:1;order:1}[class*="grid-"]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-left:-1em}[class*="grid-"]>*{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;display:block;border-left:1em solid transparent;background-clip:padding-box !important}.grid-2>*{width:50%}.grid-2>.flexitem-double{width:100%}@media (min-width:769px) and (max-width:1024px){.grid-2>*{width:33.3333%}.grid-2>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-2>*{width:50%}.grid-2>.flexitem-double{width:100%}}@media (max-width:480px){.grid-2>*{width:100%}.grid-2>.flexitem-double{width:100%}}.grid-3>*{width:33.33333333%}.grid-3>.flexitem-double{width:66.66666667%}@media (min-width:769px) and (max-width:1024px){.grid-3>*{width:33.3333%}.grid-3>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-3>*{width:50%}.grid-3>.flexitem-double{width:100%}}@media (max-width:480px){.grid-3>*{width:100%}.grid-3>.flexitem-double{width:100%}}.grid-4>*{width:25%}.grid-4>.flexitem-double{width:50%}@media (min-width:769px) and (max-width:1024px){.grid-4>*{width:33.3333%}.grid-4>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-4>*{width:50%}.grid-4>.flexitem-double{width:100%}}@media (max-width:480px){.grid-4>*{width:100%}.grid-4>.flexitem-double{width:100%}}.grid-5>*{width:20%}.grid-5>.flexitem-double{width:40%}@media (min-width:769px) and (max-width:1024px){.grid-5>*{width:33.3333%}.grid-5>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-5>*{width:50%}.grid-5>.flexitem-double{width:100%}}@media (max-width:480px){.grid-5>*{width:100%}.grid-5>.flexitem-double{width:100%}}.grid-6>*{width:16.66666667%}.grid-6>.flexitem-double{width:33.33333333%}@media (min-width:769px) and (max-width:1024px){.grid-6>*{width:33.3333%}.grid-6>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-6>*{width:50%}.grid-6>.flexitem-double{width:100%}}@media (max-width:480px){.grid-6>*{width:100%}.grid-6>.flexitem-double{width:100%}}.grid-7>*{width:14.28571429%}.grid-7>.flexitem-double{width:28.57142857%}@media (min-width:769px) and (max-width:1024px){.grid-7>*{width:33.3333%}.grid-7>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-7>*{width:50%}.grid-7>.flexitem-double{width:100%}}@media (max-width:480px){.grid-7>*{width:100%}.grid-7>.flexitem-double{width:100%}}.grid-8>*{width:12.5%}.grid-8>.flexitem-double{width:25%}@media (min-width:769px) and (max-width:1024px){.grid-8>*{width:33.3333%}.grid-8>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-8>*{width:50%}.grid-8>.flexitem-double{width:100%}}@media (max-width:480px){.grid-8>*{width:100%}.grid-8>.flexitem-double{width:100%}}.grid-10>*{width:10%}.grid-10>.flexitem-double{width:20%}@media (min-width:769px) and (max-width:1024px){.grid-10>*{width:33.3333%}.grid-10>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-10>*{width:50%}.grid-10>.flexitem-double{width:100%}}@media (max-width:480px){.grid-10>*{width:100%}.grid-10>.flexitem-double{width:100%}}.grid-12>*{width:8.33333333%}.grid-12>.flexitem-double{width:16.66666667%}@media (min-width:769px) and (max-width:1024px){.grid-12>*{width:33.3333%}.grid-12>.flexitem-double{width:66.6666%}}@media (min-width:481px) and (max-width:768px){.grid-12>*{width:50%}.grid-12>.flexitem-double{width:100%}}@media (max-width:480px){.grid-12>*{width:100%}.grid-12>.flexitem-double{width:100%}}.grid-2-1>*:nth-child(odd){width:66.66666667%}.grid-2-1>*:nth-child(even){width:33.33333333%}@media (max-width:480px){.grid-2-1>*:nth-child(n){width:100%}}.grid-1-2>*:nth-child(odd){width:33.33333333%}.grid-1-2>*:nth-child(even){width:66.66666667%}@media (max-width:480px){.grid-1-2>*:nth-child(n){width:100%}}.grid-3-1>*:nth-child(odd){width:75%}.grid-3-1>*:nth-child(even){width:25%}@media (max-width:480px){.grid-3-1>*:nth-child(n){width:100%}}.grid-1-3>*:nth-child(odd){width:25%}.grid-1-3>*:nth-child(even){width:75%}@media (max-width:480px){.grid-1-3>*:nth-child(n){width:100%}}.grid-3-2>*:nth-child(odd){width:60%}.grid-3-2>*:nth-child(even){width:40%}@media (max-width:480px){.grid-3-2>*:nth-child(n){width:100%}}.grid-2-3>*:nth-child(odd){width:40%}.grid-2-3>*:nth-child(even){width:60%}@media (max-width:480px){.grid-2-3>*:nth-child(n){width:100%}}.grid-4-1>*:nth-child(odd){width:80%}.grid-4-1>*:nth-child(even){width:20%}@media (max-width:480px){.grid-4-1>*:nth-child(n){width:100%}}.grid-1-4>*:nth-child(odd){width:20%}.grid-1-4>*:nth-child(even){width:80%}@media (max-width:480px){.grid-1-4>*:nth-child(n){width:100%}}table,.table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;vertical-align:top;border:1px solid #ccc}.table{display:table}table#recaptcha_table,table.table-auto{table-layout:auto}caption{padding:10px;color:#555;font-style:italic}td,th{padding:0.3em 0.8em;border:1px #aaa dotted;vertical-align:top;min-width:20px;cursor:default;text-align:left}.btn{display:inline-block}form,fieldset{border:none}input,button,select,label,.btn{vertical-align:middle;font-family:inherit;font-size:inherit}label{display:inline-block;vertical-align:middle;cursor:pointer}legend{border:0;white-space:normal}textarea{min-height:5em;vertical-align:top;font-family:inherit;font-size:inherit;resize:vertical}button,input[type="button"],input[type="reset"],input[type="submit"]{cursor:pointer;-webkit-appearance:button}input[type="search"]{-webkit-appearance:textfield}input[type="search"]::-webkit-search-decoration,input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-results-button,input[type="search"]::-webkit-search-results-decoration{display:none}::-webkit-input-placeholder{color:#777}input:-moz-placeholder,textarea:-moz-placeholder{color:#777}button::-moz-focus-inner,input[type='button']::-moz-focus-inner,input[type='reset']::-moz-focus-inner,input[type='submit']::-moz-focus-inner{border:0;padding:0}.w10{width:10%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w33{width:33.3333%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w66{width:66.6666%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w90{width:90%}.w100{width:100%}.w50p{width:50px}.w100p{width:100px}.w150p{width:150px}.w200p{width:200px}.w300p{width:300px}.w400p{width:400px}.w500p{width:500px}.w600p{width:600px}.w700p{width:700px}.w800p{width:800px}.w960p{width:960px}.mw960p{max-width:960px}.w1140p{width:1140px}.mw1140p{max-width:1140px}.wauto{width:auto}.man,.ma0{margin:0}.pan,.pa0{padding:0}.mas{margin:10px}.mam{margin:20px}.mal{margin:40px}.pas{padding:10px}.pam{padding:20px}.pal{padding:40px}.mtn,.mt0{margin-top:0}.mts{margin-top:10px}.mtm{margin-top:20px}.mtl{margin-top:40px}.mrn,.mr0{margin-right:0}.mrs{margin-right:10px}.mrm{margin-right:20px}.mrl{margin-right:40px}.mbn,.mb0{margin-bottom:0}.mbs{margin-bottom:10px}.mbm{margin-bottom:20px}.mbl{margin-bottom:40px}.mln,.ml0{margin-left:0}.mls{margin-left:10px}.mlm{margin-left:20px}.mll{margin-left:40px}.ptn,.pt0{padding-top:0}.pts{padding-top:10px}.ptm{padding-top:20px}.ptl{padding-top:40px}.prn,.pr0{padding-right:0}.prs{padding-right:10px}.prm{padding-right:20px}.prl{padding-right:40px}.pbn,.pb0{padding-bottom:0}.pbs{padding-bottom:10px}.pbm{padding-bottom:20px}.pbl{padding-bottom:40px}.pln,.pl0{padding-left:0}.pls{padding-left:10px}.plm{padding-left:20px}.pll{padding-left:40px}@media (min-width:1025px){.large-hidden{display:none !important}.large-visible{display:block !important}.large-no-float{float:none}.large-inbl{display:inline-block;float:none;vertical-align:top}.large-row{display:table;table-layout:fixed;width:100% !important}.large-col{display:table-cell;vertical-align:top}.large-w25{width:25% !important}.large-w33{width:33.3333% !important}.large-w50{width:50% !important}.large-w66{width:66.6666% !important}.large-w75{width:75% !important}.large-w100,.large-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.large-man{margin:0 !important}}@media (min-width:769px) and (max-width:1024px){.medium-hidden{display:none !important}.medium-visible{display:block !important}.medium-no-float{float:none}.medium-inbl{display:inline-block;float:none;vertical-align:top}.medium-row{display:table;table-layout:fixed;width:100% !important}.medium-col{display:table-cell;vertical-align:top}.medium-w25{width:25% !important}.medium-w33{width:33.3333% !important}.medium-w50{width:50% !important}.medium-w66{width:66.6666% !important}.medium-w75{width:75% !important}.medium-w100,.medium-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.medium-man,.medium-ma0{margin:0 !important}}@media (min-width:481px) and (max-width:768px){.mod,.col,fieldset{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.w600p,.w700p,.w800p,.w960p,.mw960p{width:auto;float:none}.small-hidden{display:none !important}.small-visible{display:block !important}.small-no-float{float:none}.small-inbl{display:inline-block;float:none;vertical-align:top}.small-row{display:table !important;table-layout:fixed !important;width:100% !important}.small-col{display:table-cell !important;vertical-align:top !important}.small-w25{width:25% !important}.small-w33{width:33.3333% !important}.small-w50{width:50% !important}.small-w66{width:66.6666% !important}.small-w75{width:75% !important}.small-w100,.small-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.small-man,.small-ma0{margin:0 !important}.small-pan,.small-pa0{padding:0 !important}.grid3>*,.grid4>*,.grid5>*,.grid6>*,.grid8>*,.grid10>*,.grid12>*{width:50%}.autogrid5>*,.autogrid6>*,.autogrid8>*,.autogrid10>*,.autogrid12>*{width:49% !important}}@media (max-width:480px){.w300p,.w400p,.w500p{width:auto;float:none}.row{display:block !important;width:100% !important}.tiny-hidden{display:none !important}.tiny-visible{display:block !important}.tiny-no-float{float:none}.tiny-inbl{display:inline-block;float:none;vertical-align:top}.tiny-row{display:table !important;table-layout:fixed !important;width:100% !important}.tiny-col{display:table-cell !important;vertical-align:top !important}th,td{display:block !important;width:auto !important;text-align:left !important}thead{display:none}.tiny-w25{width:25% !important}.tiny-w33{width:33.3333% !important}.tiny-w50{width:50% !important}.tiny-w66{width:66.6666% !important}.tiny-w75{width:75% !important}.tiny-w100,.tiny-wauto{display:block !important;float:none !important;clear:none !important;width:auto !important;margin-left:0 !important;margin-right:0 !important;border:0}.tiny-man,.tiny-ma0{margin:0 !important}.tiny-pan,.tiny-pa0{padding:0 !important}.grid>*>*{width:100% !important}[class*="autogrid"]>*{width:100% !important}}@media print{*{background:transparent !important;box-shadow:none !important;text-shadow:none !important}body{width:auto !important;margin:auto !important;font-family:serif;font-size:12pt;background-color:#fff !important;color:#333 !important}p,.p-like,h1,.h1-like,h2,.h2-like,h3,.h3-like,h4,.h4-like,h5,.h5-like,h6,.h6-like,blockquote,ul,ol{color:#000 !important;margin:auto !important}.print{display:block}.no-print{display:none}img{-webkit-filter:grayscale(100%);filter:grayscale(100%)}p,.p-like,blockquote{orphans:3;widows:3}blockquote,ul,ol{page-break-inside:avoid}h1,.h1-like{page-break-before:always}h1,.h1-like,h2,.h2-like,h3,.h3-like,caption{page-break-after:avoid}a{color:#000 !important;text-decoration:underline !important}a[href]:after{content:" (" attr(href) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}}.skip-links{position:absolute}.skip-links a{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);padding:0.5em;background:black;color:white;text-decoration:none}.skip-links a:focus{position:static;overflow:visible;clip:auto}@media (max-width:768px){div,textarea,table,td,th,code,pre,samp{word-wrap:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;-ms-hyphens:auto;hyphens:auto}}.gm-style img{height:100%}:not(.gm-style) img{height:auto}.gm-style img,.gmnoscreen img,.gmnoprint img{max-width:none !important}code,kbd,mark{border-radius:2px}kbd{padding:0 2px;border:1px solid #999}code{padding:2px 4px;background:rgba(0,0,0,0.04);color:#b11}pre code{padding:none;background:none;color:inherit;border-radius:0}mark{padding:2px 4px;background:#ff0}sup,sub{vertical-align:0;position:relative}sup{bottom:1ex}sub{top:0.5ex}blockquote{position:relative;padding-left:3em}blockquote:before{content:"\201C";position:absolute;left:0;top:0;font-family:georgia, serif;font-size:5em;line-height:0.9;color:rgba(0,0,0,0.3)}blockquote>footer{margin-top:.75em;font-size:0.9em;color:rgba(0,0,0,0.7)}blockquote>footer:before{content:"\2014 \0020"}q{font-style:normal}q,.q{quotes:"“\00a0" "\00a0”"}q:lang(fr),.q:lang(fr){quotes:"«\00a0" "\00a0»"}hr{display:block;clear:both;height:1px;margin:1em 0 2em;padding:0;border:0;color:#ccc;background-color:#ccc}.table-alternate{border:0}.table-alternate tbody{border:1px solid #ccc}.table-alternate thead tr>*+*{border-left:0}.table-alternate tbody tr>*+*{border-left:1px solid #ccc}.table-alternate-v{border:0;border-right:1px solid #ccc}.table-alternate-v tr>:first-child{border-bottom:0}.table-alternate-v tr>*+*{border-top:1px solid #ccc}.table-striped tbody tr:nth-child(odd){background:#eee;background:rgba(0,0,0,0.05)}.table-striped-v tr>:first-child{background:#eee;background:rgba(0,0,0,0.05)}.comment-navigation,.paging-navigation,.post-navigation{margin:0 0 1.5em;overflow:hidden}.comment-navigation .nav-previous,.paging-navigation .nav-previous,.post-navigation .nav-previous{float:left;width:50%}.comment-navigation .nav-next,.paging-navigation .nav-next,.post-navigation .nav-next{float:right;text-align:right;width:50%}.alignnone{margin:.25em 1.5em 1.5em 0}.aligncenter{clear:both;display:block;margin:1.5em auto}.alignleft{float:left;margin:0 1.5em .25em 0}.alignright{float:right;margin:0 0 .25em 1.5em}.entry-content,.comment-content{clear:both}.entry-content:after,.comment-content:after,.entry-content:before,.comment-content:before{content:"";display:table}.widget+.widget{margin:1.5em 0 0}.widget select{max-width:100%}.hentry{margin:0 0 1.5em}.page-content,.entry-content,.entry-summary{margin:1.5em 0 0}.page-links{clear:both;margin:0 0 1.5em}.comment-content a{word-wrap:break-word}img.wp-smiley{margin-bottom:0;margin-top:0;padding:0;border:none}.wp-caption{max-width:100%;margin-bottom:1.5em}.wp-caption img{display:block;margin:0 auto}.wp-caption-text{margin:1em 0;text-align:center}.gallery{margin-bottom:1.5em}.gallery-item{display:inline-block;width:100%;text-align:center;vertical-align:top}.gallery-columns-2 .gallery-item{max-width:50%}.gallery-columns-3 .gallery-item{max-width:33.33%}.gallery-columns-4 .gallery-item{max-width:25%}.gallery-columns-5 .gallery-item{max-width:20%}.gallery-columns-6 .gallery-item{max-width:16.66%}.gallery-columns-7 .gallery-item{max-width:14.28%}.gallery-columns-8 .gallery-item{max-width:12.5%}.gallery-columns-9 .gallery-item{max-width:11.11%}.gallery-caption{display:block} \ No newline at end of file diff --git a/doc/03-grilles.md b/doc/03-grilles.md index c1376b0..755fb49 100644 --- a/doc/03-grilles.md +++ b/doc/03-grilles.md @@ -22,10 +22,10 @@ Au sein de la version CSS de KNACSS, l'ensemble des préfixes est présent, **vo Pour vous faire une idée, et jouer avec les valeurs possibles, vous trouverez [un exemple "bac à sable"](http://codepen.io/raphaelgoetter/full/zxBMLW/) sur CodePen. **Exemple de grille de colonnes égales :** -![enter image description here](https://raw.githubusercontent.com/raphaelgoetter/KNACSS/master/doc/illust/03-grid-even.png) +![grille de largeur égale](https://raw.githubusercontent.com/raphaelgoetter/KNACSS/master/doc/illust/03-grid-even.png) **Exemple de grille de colonnes inégales (3/4 - 1/4) :** -![enter image description here](https://raw.githubusercontent.com/raphaelgoetter/KNACSS/master/doc/illust/03-grid-uneven.png) +![grille de largeur inégale](https://raw.githubusercontent.com/raphaelgoetter/KNACSS/master/doc/illust/03-grid-uneven.png) ## Mise en oeuvre @@ -114,19 +114,19 @@ CSS compilé (sans Autoprefixer) : width: 16.66666667%; display: block; /* IE fix */ border-left: 10px solid transparent; - background-clip: padding-box !important; /* no background on border */ + background-clip: padding-box !important; /* no background on border */ } ... ``` #### Grille de colonnes inégales en LESS -**Objectif : je souhaite que mon élément `
` crée une grille de 2 colonnes réparties en 2/3 et 1/3, séparées par une gouttière de 15px.** +**Objectif : je souhaite que mon élément `.grid-truc` crée une grille de 2 colonnes réparties en 2/3 et 1/3, séparées par une gouttière de 15px.** LESS (fichier de développement) : ```css -section { +.grid-truc { .uneven-grid(2, 1, 15px); } ``` @@ -134,21 +134,21 @@ section { CSS compilé (sans Autoprefixer) : ```css -section { +.grid-truc { display: flex; flex-direction: row; flex-wrap: wrap; margin-left: -15px; } -section > * { +.grid-truc > * { display: block; /* IE fix */ border-left: 15px solid transparent; background-clip: padding-box !important; /* no background on border */ } -section > *:nth-child(odd) { +.grid-truc > *:nth-child(odd) { width: 66.66666667%; } -section > *:nth-child(even) { +.grid-truc > *:nth-child(even) { width: 33.33333333%; } ... diff --git a/doc/illust/03-double.PNG b/doc/illust/03-double.PNG new file mode 100644 index 0000000..2e3da4c Binary files /dev/null and b/doc/illust/03-double.PNG differ diff --git a/doc/illust/03-first.PNG b/doc/illust/03-first.PNG new file mode 100644 index 0000000..f87b292 Binary files /dev/null and b/doc/illust/03-first.PNG differ diff --git a/doc/illust/03-offset.png b/doc/illust/03-offset.png new file mode 100644 index 0000000..a35f4f2 Binary files /dev/null and b/doc/illust/03-offset.png differ diff --git a/less/_03-grids.less b/less/_03-grids.less index 5c94117..0dd827d 100644 --- a/less/_03-grids.less +++ b/less/_03-grids.less @@ -11,31 +11,36 @@ // -
for an uneven columns grid container // Usage with preprocessors : if you're using LESS, you can config grids variables : -// n = number of columns (default = 4) / g = gutter value (default = 1em) -// example : .grid-container { .grid(12, 10px); } +// n = number of columns (default = 4) +// example : .grid-perso { .grid(12); } // ... or uneven grids : -// left = left ratio column (default = 2) / right = right ratio column (default = 1) / gutter (default = 1em) -// example : .grid-container { .uneven-grid(2, 1, 10px); } +// left = left ratio column (default = 2) / right = right ratio column (default = 1) +// example : .grid-perso { .uneven-grid(2, 1); } -// LESS mixins for *equal* columns grid container -// example : .grid-container { .grid(12, 10px); } -.grid(@number:@number, @gutter:@gutter) { +[class*="grid-"] { display: flex; flex-direction: row; flex-wrap: wrap; margin-left: -@gutter; +} -& > * { - /* grid child can be any element */ - flex: 0 0 auto; +[class*="grid-"] > * { + flex: 0 0 auto; + display: block; /* IE fix */ + border-left: @gutter solid transparent; + background-clip: padding-box !important; /* no background on border */ +} + +// LESS mixins for *equal* columns grid container +// example : .grid-perso { .grid(12); } +.grid(@number:@number) { + & > * { width: (1/@number * 100) + 0%; - display: block; /* IE fix */ - border-left: @gutter solid transparent; - background-clip: padding-box !important; /* no background on border */ } & > .flexitem-double { width: (2/@number * 100) + 0%; } + @media (min-width: (@small-screen + 1)) and (max-width: @medium-screen) { & > * { width: 33.3333%; @@ -62,7 +67,7 @@ } } -/* Examples : will be compiled in CSS */ +// Examples : will be compiled in CSS .grid-2 { .grid(2); @@ -101,23 +106,14 @@ } // LESS mixins for *unequal* columns grid container -// example : .grid-container { .uneven-grid(2, 1, 10px); } +// example : .grid-perso { .uneven-grid(2, 1); } -.uneven-grid(@left:@left, @right:@right, @gutter:@gutter) { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-left: -@gutter; +.uneven-grid(@left:@left, @right:@right) { -& > * { - display: block; /* IE fix */ - border-left: @gutter solid transparent; - background-clip: padding-box !important; /* no background on border */ - } - & > *:nth-child(odd) { width: (@left / (@left + @right)) * 100%; } + & > *:nth-child(even) { width: (@right / (@left + @right)) * 100%; } @@ -130,7 +126,7 @@ } -/* Examples : will be compiled in CSS */ +// Examples : will be compiled in CSS .grid-2-1 { .uneven-grid(2,1); diff --git a/sass/_03-grids.scss b/sass/_03-grids.scss index ea674e4..f3fef33 100644 --- a/sass/_03-grids.scss +++ b/sass/_03-grids.scss @@ -12,58 +12,65 @@ // Usage with preprocessors : if you're using Sass, you can config grids variables : // n = number of columns (default = 4) / g = gutter value (default = 1em) -// example : .grid-container { @include grid(12, 10px); } +// example : .grid-perso { @include grid(12, 10px); } // ... or uneven grids : // left = left ratio column (default = 2) / right = right ratio column (default = 1) / gutter (default = 1em) -// example : .grid-container { @include uneven-grid(2, 1, 10px); } +// example : .grid-perso { @include uneven-grid(2, 1, 10px); } -// Sass mixins for *equal* columns grid container -// example : .grid-container { @include grid(12, 10px); } -@mixin grid($number:$number,$gutter:$gutter) { +[class*="grid-"] { display: flex; flex-direction: row; flex-wrap: wrap; margin-left: -$gutter; +} + +[class*="grid-"] > * { + flex: 0 0 auto; + display: block; /* IE fix */ + border-left: $gutter solid transparent; + background-clip: padding-box !important; /* no background on border */ +} + +// Sass mixins for *equal* columns grid container +// example : .grid-perso { @include grid(12); } +@mixin grid($number:$number) { & > * { - /* grid child can be any element */ - flex: 0 0 auto; width: (1/$number * 100) + 0%; - display: block; /* IE fix */ - padding: 1em; - border-left: $gutter solid transparent; - background-clip: padding-box !important; /* no background on border */ } & > .flexitem-double { width: (2/$number * 100) + 0%; } + @media (min-width: ($small-screen + 1)) and (max-width: $medium-screen) { & > * { - width: 33.3333%; + width: 33.3333%; } & > .flexitem-double { - width: 66.6666%; + width: 66.6666%; } } + @media (min-width: ($tiny-screen + 1)) and (max-width: $small-screen) { & > * { - width: 50%; + width: 50%; } & > .flexitem-double { - width: 100%; + width: 100%; } } + @media (max-width: $tiny-screen) { & > * { - width: 100%; + width: 100%; } & > .flexitem-double { - width: 100%; + width: 100%; } } } -/* Examples : will be compiled in CSS */ +// Examples : will be compiled in CSS .grid-2 { @include grid(2); @@ -102,23 +109,14 @@ } // LESS mixins for *unequal* columns grid container -// example : .grid-container { @include uneven-grid(2, 1, 10px); } +// example : .grid-perso { @include uneven-grid(2, 1); } -@mixin uneven-grid($left:$left, $right:$right, $gutter:$gutter) { - display: flex; - flex-direction: row; - flex-wrap: wrap; - margin-left: -$gutter; +@mixin uneven-grid($left:$left, $right:$right) { -& > * { - display: block; /* IE fix */ - border-left: $gutter solid transparent; - background-clip: padding-box !important; /* no background on border */ - } - & > *:nth-child(odd) { width: ($left / ($left + $right)) * 100%; } + & > *:nth-child(even) { width: ($right / ($left + $right)) * 100%; } @@ -131,7 +129,7 @@ } -/* Examples : will be compiled in CSS */ +// Examples : will be compiled in CSS .grid-2-1 { @include uneven-grid(2,1);