⚒️ Restructured Sass organisation (#83)

*  🌈  Organise colors with vars only

*   New file structure

* File restructuring

*  ⚒️ Fix build issue

* Rearranged files
This commit is contained in:
Tatiana Mac
2020-02-20 08:38:32 +11:00
committed by GitHub
parent b78dd4a334
commit 10843f2909
20 changed files with 502 additions and 470 deletions

View File

@ -0,0 +1,11 @@
@function pxToRem($pixels, $context: $browser-context) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
@if (unitless($context)) {
$context: $context * 1px;
}
@return $pixels / $context * 1rem;
}