mise à jour de la version LESS (flag Strict Maths)
This commit is contained in:
parent
87997b3f16
commit
fec7b4dc18
1 changed files with 37 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* www.KNACSS.com V2.6d @author: Raphael Goetter, Alsacreations
|
* www.KNACSS.com V2.6i @author: Raphael Goetter, Alsacreations
|
||||||
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
|
* Licence CC-BY http://creativecommons.org/licenses/by/3.0/fr/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -15,18 +15,19 @@
|
||||||
@gutter : 1.5%; // gutter value (%) for grid layouts
|
@gutter : 1.5%; // gutter value (%) for grid layouts
|
||||||
|
|
||||||
// LESS functions : don't touch ;)
|
// LESS functions : don't touch ;)
|
||||||
.pxtoem (@fontsize) {font-size: (@fontsize / @basefont) + 0em;}
|
.pxtoem (@fontsize) {font-size: ((@fontsize / @basefont) + 0em);}
|
||||||
.line (@fontsize) {line-height: @l-h *2 / (@fontsize / @basefont) + 0em}
|
.line (@fontsize) {line-height: (@l-h *2 / (@fontsize / @basefont) + 0em)}
|
||||||
.mtop (@fontsize) {margin: @l-h / (@fontsize / @basefont) + 0em 0 0}
|
.mtop (@fontsize) {margin: (@l-h / (@fontsize / @basefont) + 0em) 0 0}
|
||||||
.grid (@number) {width: (100%-(@gutter*(@number - 1))) / @number;}
|
.grid (@number) {width: ((100%-(@gutter*(@number - 1))) / @number);}
|
||||||
|
|
||||||
.flow(@font-size, @base-font: @basefont, @base-height: @l-h) {
|
.flow(@font-size, @base-font: @basefont, @base-height: @l-h) {
|
||||||
@coef: ceil(1 / (@base-height * @base-font / @font-size));
|
@coef: ceil((1 / (@base-height * @base-font / @font-size)));
|
||||||
@size: (@font-size / @base-font) + 0em;
|
@size: ((@font-size / @base-font) + 0em);
|
||||||
@height: (@base-font * @base-height / @font-size) + 0em;
|
@height: ((@base-font * @base-height / @font-size) + 0em);
|
||||||
font-size: @size;
|
font-size: @size;
|
||||||
line-height: @height * @coef;
|
line-height: (@height * @coef);
|
||||||
margin-top: @height;
|
margin-top: @height;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +43,7 @@ body {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
font-family: "Century Gothic", helvetica, arial, sans-serif;
|
font-family: "Century Gothic", helvetica, arial, sans-serif;
|
||||||
font-size: (@basefont / 10) + 0em;
|
font-size: ((@basefont / 10) + 0em);
|
||||||
line-height: @l-h; // adapt to your design
|
line-height: @l-h; // adapt to your design
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,16 +177,6 @@ img, table, td, blockquote, code, pre, textarea, input, video {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* you shall not pass */
|
|
||||||
div, textarea, table, td, th, code, pre, samp {
|
|
||||||
word-wrap: break-word;
|
|
||||||
-webkit-hyphens: auto;
|
|
||||||
-moz-hyphens: auto;
|
|
||||||
-ms-hyphens: auto;
|
|
||||||
-o-hyphens: auto;
|
|
||||||
hyphens: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* pictures */
|
/* pictures */
|
||||||
img {
|
img {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
@ -267,7 +258,6 @@ body > script {display: none !important;}
|
||||||
.inbl {
|
.inbl {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
margin-right: -.25em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* flexbox layout */
|
/* flexbox layout */
|
||||||
|
@ -426,27 +416,27 @@ a,t,r,b,l = all,top,right,bottom,left
|
||||||
s,m,l,n = small(10px),medium(20px),large(30px),none(0)
|
s,m,l,n = small(10px),medium(20px),large(30px),none(0)
|
||||||
source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
|
source https://github.com/stubbornella/oocss/blob/master/core/spacing/space.css
|
||||||
*/
|
*/
|
||||||
.m-reset, .ma0 { margin: 0 !important; }
|
.m-reset, .ma0 { margin: 0; }
|
||||||
.p-reset, .pa0 { padding: 0 !important; }
|
.p-reset, .pa0 { padding: 0; }
|
||||||
.ma1, .mas { margin: @smallvalue !important; }
|
.ma1, .mas { margin: @smallvalue; }
|
||||||
.ma2, .mam { margin: @mediumvalue !important; }
|
.ma2, .mam { margin: @mediumvalue; }
|
||||||
.ma3, .mal { margin: @largevalue !important; }
|
.ma3, .mal { margin: @largevalue; }
|
||||||
.pa1, .pas { padding: @smallvalue; }
|
.pa1, .pas { padding: @smallvalue; }
|
||||||
.pa2, .pam { padding: @mediumvalue; }
|
.pa2, .pam { padding: @mediumvalue; }
|
||||||
.pa3, .pal { padding: @largevalue; }
|
.pa3, .pal { padding: @largevalue; }
|
||||||
|
|
||||||
.mt0, .mtn { margin-top: 0 !important; }
|
.mt0, .mtn { margin-top: 0; }
|
||||||
.mt1, .mts { margin-top: @smallvalue !important; }
|
.mt1, .mts { margin-top: @smallvalue; }
|
||||||
.mt2, .mtm { margin-top: @mediumvalue !important; }
|
.mt2, .mtm { margin-top: @mediumvalue; }
|
||||||
.mt3, .mtl { margin-top: @largevalue !important; }
|
.mt3, .mtl { margin-top: @largevalue; }
|
||||||
.mr0, .mrn { margin-right: 0; }
|
.mr0, .mrn { margin-right: 0; }
|
||||||
.mr1, .mrs { margin-right: @smallvalue; }
|
.mr1, .mrs { margin-right: @smallvalue; }
|
||||||
.mr2, .mrm { margin-right: @mediumvalue; }
|
.mr2, .mrm { margin-right: @mediumvalue; }
|
||||||
.mr3, .mrl { margin-right: @largevalue; }
|
.mr3, .mrl { margin-right: @largevalue; }
|
||||||
.mb0, .mbn { margin-bottom: 0 !important; }
|
.mb0, .mbn { margin-bottom: 0; }
|
||||||
.mb1, .mbs { margin-bottom: @smallvalue !important; }
|
.mb1, .mbs { margin-bottom: @smallvalue; }
|
||||||
.mb2, .mbm { margin-bottom: @mediumvalue !important; }
|
.mb2, .mbm { margin-bottom: @mediumvalue; }
|
||||||
.mb3, .mbl { margin-bottom: @largevalue !important; }
|
.mb3, .mbl { margin-bottom: @largevalue; }
|
||||||
.ml0, .mln { margin-left: 0; }
|
.ml0, .mln { margin-left: 0; }
|
||||||
.ml1, .mls { margin-left: @smallvalue; }
|
.ml1, .mls { margin-left: @smallvalue; }
|
||||||
.ml2, .mlm { margin-left: @mediumvalue; }
|
.ml2, .mlm { margin-left: @mediumvalue; }
|
||||||
|
@ -673,6 +663,16 @@ textarea {
|
||||||
vertical-align: top !important;
|
vertical-align: top !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* you shall not pass */
|
||||||
|
div, textarea, table, td, th, code, pre, samp {
|
||||||
|
word-wrap: break-word;
|
||||||
|
-webkit-hyphens: auto;
|
||||||
|
-moz-hyphens: auto;
|
||||||
|
-ms-hyphens: auto;
|
||||||
|
-o-hyphens: auto;
|
||||||
|
hyphens: auto;
|
||||||
|
}
|
||||||
|
|
||||||
/* widths for medium (m) screens */
|
/* widths for medium (m) screens */
|
||||||
.medium-w25 { width: 25% !important; }
|
.medium-w25 { width: 25% !important; }
|
||||||
.medium-w33 { width: 33.3333% !important; }
|
.medium-w33 { width: 33.3333% !important; }
|
||||||
|
|
Loading…
Reference in a new issue