mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
separate base css to allow bootstrap overrides
This commit is contained in:
parent
d50470712e
commit
a54061249d
4 changed files with 25 additions and 3 deletions
|
@ -8,3 +8,7 @@
|
||||||
<router-view/>
|
<router-view/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
@import '@/scss/main.scss';
|
||||||
|
</style>
|
||||||
|
|
5
app/src/plugins/bootstrap-vue.js
vendored
5
app/src/plugins/bootstrap-vue.js
vendored
|
@ -1,7 +1,6 @@
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
|
|
||||||
import BootstrapVue from 'bootstrap-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)
|
Vue.use(BootstrapVue)
|
||||||
|
|
3
app/src/scss/_variables.scss
Normal file
3
app/src/scss/_variables.scss
Normal 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
16
app/src/scss/main.scss
Normal 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%;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue