.rem() LESS mixin bug fixed

This commit is contained in:
Raphael Goetter 2014-05-21 17:45:26 +02:00
parent 21de6c6757
commit f82e954fd5

View File

@ -54,8 +54,8 @@
// 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: @base-font-size){ .rem(@size, @bf: @base-font-size){
@rem: @size; @rem: @size / 10;
font-size: unit(round(@base-font-size * @size), px); font-size: unit(round(@base-font-size * @size /10), px);
font-size: unit(@rem, rem); font-size: unit(@rem, rem);
} }
.em(@size, @bf: @base-font-size){ .em(@size, @bf: @base-font-size){