mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Refactor CSS pt. 2 (Properly structure stylesheets folder)
This commit is contained in:
@@ -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' %>)
|
||||||
|
|||||||
@@ -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;
|
||||||
12
app/javascript/stylesheets/main.scss
Normal file
12
app/javascript/stylesheets/main.scss
Normal 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
|
||||||
|
*/
|
||||||
Reference in New Issue
Block a user