Created
February 20, 2020 14:24
-
-
Save brandoncordell/36540a4f35698e0a653b9da3ada11f83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/javascript/packs/application.js | |
// This file is automatically compiled by Webpack, along with any other files | |
// present in this directory. You're encouraged to place your actual application logic in | |
// a relevant structure within app/javascript and only use these pack files to reference | |
// that code so it'll be compiled. | |
// vendor | |
require('@rails/ujs').start(); | |
require('turbolinks').start(); | |
require('@rails/activestorage').start(); | |
require('trix'); | |
require('@rails/actiontext'); | |
// stylesheets | |
require('../stylesheets/application'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app/javascript/stylesheet/application.scss | |
// Initial | |
@import 'base/variables'; // this files has only variables in it | |
// You have to import the functions and variables from the bootstrap package first | |
@import '~bootstrap/scss/functions'; // ~bootstrap is a shortcut to node_modules/bootstrap | |
@import '~bootstrap/scss/variables'; | |
// Base | |
@import 'base/layout'; | |
@import 'base/typography'; | |
// Vendor | |
@import '~bootstrap/scss/bootstrap'; | |
@import '~bootstrap-vue/src/index'; | |
// Overrides | |
// this is where I override global styles for bootstrap components | |
@import 'overrides/buttons'; | |
@import 'overrides/cards'; | |
@import 'overrides/forms'; | |
@import 'overrides/navbar'; | |
// Modules | |
// this is where I import components that aren't part of bootstrap | |
@import 'modules/avatars'; | |
@import 'modules/comments'; | |
@import 'modules/dropdowns'; | |
@import 'modules/flash_message'; | |
@import 'modules/forms'; | |
@import 'modules/header'; | |
@import 'modules/icons'; | |
@import 'modules/list_groups'; | |
@import 'modules/navs'; | |
@import 'modules/ratings'; | |
@import 'modules/reviews'; | |
@import 'modules/trix'; | |
@import 'modules/warning'; | |
// Pages | |
// this is where I import "page" related scss basically one stylesheet per controller if needed | |
@import 'pages'; | |
@import 'vendors'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment