PHP Classes

File: public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_rem.scss

Recommend this page to a friend!
  Classes of fathurrahman   mnTemplate   public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_rem.scss   Download  
File: public/asset/vendor/select2/docs/themes/learn2/scss/vendor/bourbon/addons/_rem.scss
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: mnTemplate
Route HTTP requests to callback functions
Author: By
Last change:
Date: 1 year ago
Size: 696 bytes
 

Contents

Class file image Download
@mixin rem($property, $size, $base: $em-base) { @if not unitless($base) { $base: strip-units($base); } $unitless_values: (); @each $num in $size { @if not unitless($num) { @if unit($num) == "em" { $num: $num * $base; } $num: strip-units($num); } $unitless_values: append($unitless_values, $num); } $size: $unitless_values; $pixel_values: (); $rem_values: (); @each $value in $pxval { $pixel_value: $value * 1px; $pixel_values: append($pixel_values, $pixel_value); $rem_value: ($value / $base) * 1rem; $rem_values: append($rem_values, $rem_value); } #{$property}: $pixel_values; #{$property}: $rem_values; }