mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +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("./bootstrap_custom")
|
||||
require("../stylesheets/application")
|
||||
require("../stylesheets/main")
|
||||
|
||||
// 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' %>)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@import './bootstrap_custom.scss';
|
||||
@import './navbar.scss';
|
||||
@import './forms.scss';
|
||||
@import './icons.scss';
|
||||
/*
|
||||
This stylesheet contains styles that are general and
|
||||
could not be grouped in a file of their own
|
||||
*/
|
||||
|
||||
.container {
|
||||
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