DEV: Refactor plugin SCSS compilation (#12359)

This commit is contained in:
Penar Musaraj
2021-03-12 11:17:42 -05:00
committed by GitHub
parent 53158c0542
commit 52d833472c
11 changed files with 66 additions and 60 deletions

View File

@@ -0,0 +1,2 @@
$color1: red;
$color2: green;

View File

@@ -0,0 +1 @@
$lineheight: 1.2em;

View File

@@ -0,0 +1,13 @@
@import "_variables";
@import "../colors";
@import "subfolder/other";
body {
border-color: $color1;
fill: $color2;
line-height: $lineheight;
}
footer {
border-color: $footer1;
}

View File

@@ -0,0 +1,6 @@
$footer1: #cc0000;
code {
// ensures core variables are available
font-size: $font-down-2;
}

View File

@@ -0,0 +1,7 @@
# frozen_string_literal: true
# name: scss_plugin
# about: Fixture plugin for SCSS tests
# version: 1.0
register_asset "stylesheets/common/common.scss"