separate base css to allow bootstrap overrides

This commit is contained in:
Axolotle 2020-07-07 13:54:01 +02:00
parent d50470712e
commit a54061249d
4 changed files with 25 additions and 3 deletions

View file

@ -8,3 +8,7 @@
<router-view/>
</div>
</template>
<style lang="scss">
@import '@/scss/main.scss';
</style>

View file

@ -1,7 +1,6 @@
import Vue from 'vue'
import BootstrapVue from 'bootstrap-vue'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap-vue/dist/bootstrap-vue.css'
// Styles are imported in `src/App.vue` <style>
Vue.use(BootstrapVue)

View file

@ -0,0 +1,3 @@
// Bootstrap and BootstrapVue variable may be overrides here. Full list available here:
// Bootstrap: `app/node_modules/bootstrap/scss/_variables.scss`
// BootstrapVue: `app/node_modules/bootstrap-vue/src/_variables.scss`

16
app/src/scss/main.scss Normal file
View file

@ -0,0 +1,16 @@
// This is the default scss file, more specific styling is defined directly into components.
// It it imported in `scr/App.vue` style tag.
// Bootstrap variable overrides and custom variables
@import 'variables';
// Includes Bootstrap and BootstrapVue SCSS files
// `~` allow to import a node_modules folder (resolved by Webpack)
@import '~bootstrap/scss/bootstrap.scss';
@import '~bootstrap-vue/src/index.scss';
// Style overrides happens after bootstrap imports
body {
margin: auto;
max-width: 90%;
}