Less : grid bug correcting

This commit is contained in:
Raphael Goetter 2013-11-22 21:37:10 +01:00
parent 330f6adb0c
commit 4c7d294b01
3 changed files with 4 additions and 4 deletions

View File

@ -27,11 +27,11 @@
// LESS mixins : don't touch or you'll be banned ;) // LESS mixins : don't touch or you'll be banned ;)
// px to em/rem // px to em/rem
.rem(@size, @bf: @basefont){ .rem(@size, @bf: @basefont){
@rem: round((@size / 10),4); @rem: @size / 10;
font-size: unit(@rem, rem); font-size: unit(@rem, rem);
} }
.em(@size, @bf: @basefont){ .em(@size, @bf: @basefont){
@em: round((@size / @bf),4); @em: @size / @bf;
font-size: unit(@em, em); font-size: unit(@em, em);
} }
// flow for headings // flow for headings
@ -40,7 +40,7 @@
@mt: unit(@marg,em); @mt: unit(@marg,em);
margin-top: @mt; margin-top: @mt;
margin-bottom: 0; margin-bottom: 0;
@rem: round((@size / 10),4); @rem: @size / 10;
font-size: unit(@rem, rem); font-size: unit(@rem, rem);
@coef: ceil(1/@mt); @coef: ceil(1/@mt);
line-height: unit((@mt * @coef)); line-height: unit((@mt * @coef));

View File

@ -9,7 +9,7 @@
.grid > * { .grid > * {
display: block; display: block;
padding: 0; padding: 0;
margin-left: @gutter; /* gutter value */ margin-left: -@gutter; /* gutter value */
text-align: left; text-align: left;
letter-spacing: -0.31em; letter-spacing: -0.31em;
text-rendering: optimizespeed; text-rendering: optimizespeed;

Binary file not shown.