diff options
-rw-r--r-- | tasks/updater/scss.rb | 11 | ||||
-rw-r--r-- | templates/project/_bootstrap-variables.scss | 5 |
2 files changed, 3 insertions, 13 deletions
diff --git a/tasks/updater/scss.rb b/tasks/updater/scss.rb index a99876e..c747b9a 100644 --- a/tasks/updater/scss.rb +++ b/tasks/updater/scss.rb @@ -23,18 +23,11 @@ class Updater end log_status 'Generating variable template file' - template_file_header = <<-SCSS -// Override Bootstrap variables here (defaults from bootstrap v#{upstream_version}): - -@import "bootstrap/functions"; -@import "bootstrap/variables"; - -SCSS save_file 'templates/project/_bootstrap-variables.scss', - template_file_header + + "// Override Bootstrap variables here (defaults from bootstrap v#{upstream_version}):\n" + File.read("#{save_to}/_variables.scss"). # The instructions in the file header are replaced with the line above - lines[5..-1]. + lines[4..-1]. join. # Comment out the assignments gsub(/^(?=[$@)}]|[ ]{2})/, '// '). diff --git a/templates/project/_bootstrap-variables.scss b/templates/project/_bootstrap-variables.scss index 1025640..29a6c8c 100644 --- a/templates/project/_bootstrap-variables.scss +++ b/templates/project/_bootstrap-variables.scss @@ -1,8 +1,5 @@ // Override Bootstrap variables here (defaults from bootstrap v4.0.0-beta): - -@import "bootstrap/functions"; -@import "bootstrap/variables"; - +// // Variables should follow the `$component-state-property-size` formula for // consistent naming. Ex: $nav-link-disabled-color and $modal-content-box-shadow-xs. |