.rem() LESS mixin bug fixed
This commit is contained in:
parent
21de6c6757
commit
f82e954fd5
1 changed files with 2 additions and 2 deletions
|
@ -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){
|
||||||
|
|
Loading…
Reference in a new issue