Refactor CSS pt. 2 (Properly structure stylesheets folder)

This commit is contained in:
riggraz
2019-09-15 18:46:54 +02:00
parent a964b3627f
commit 8d297a897e
7 changed files with 17 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ require("@rails/activestorage").start()
require("channels") require("channels")
require("./bootstrap_custom") require("./bootstrap_custom")
require("../stylesheets/application") require("../stylesheets/main")
// Uncomment to copy all static images under ../images to the output folder and reference // Uncomment to copy all static images under ../images to the output folder and reference
// them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>) // them with the image_pack_tag helper in views (e.g <%= image_pack_tag 'rails.png' %>)

View File

@@ -1,7 +1,7 @@
@import './bootstrap_custom.scss'; /*
@import './navbar.scss'; This stylesheet contains styles that are general and
@import './forms.scss'; could not be grouped in a file of their own
@import './icons.scss'; */
.container { .container {
max-width: 920px; max-width: 920px;

View File

@@ -0,0 +1,12 @@
@import 'vendors/bootstrap_custom';
@import 'general/index';
@import 'general/navbar';
@import 'general/form';
@import 'general/icons';
/*
Components stylesheets are not imported here. Instead,
they are imported in the specific React components
that use them
*/