mobile-rem.css
v0.0.1
Published
A mobile css layout
Downloads
6
Readme
rem.css
rem layout
Install
npm install rem.css --save
Usage
Module
import 'rem.scss'
Browser
<link rel="stylesheet" href="rem.css">
Example
.main {
// width: 100px;
width: 1rem;
}
// variable.scss
$baseFontSize:100;
@function px2rem($px){
@return $px / $baseFontSize * 1rem;
}
.main {
width: px2rem(100);
}