I need to adjust the loading order of styles in my current project.
In my custom stylesheet style.css
, I've made some overrides,
body {
font-family: "Lato", sans-serif;
font-size: 14px;
font-weight: 400;
font-style: normal;
line-height: 25px;
position: relative;
visibility: visible;
color: #3d3d3d;
background-color: #FFFFFF;
}
Additionally, I'm using bootstrapVue in the project via a plugin,
import Vue from "vue";
import BootstrapVue from "bootstrap-vue";
Vue.use(BootstrapVue);
import "bootstrap/dist/css/bootstrap.css";
import "bootstrap-vue/dist/bootstrap-vue.css";
Since I only utilize a portion of the overridden styles, I'd like to let bootstrap handle the rest.
Unfortunately, upon project execution, I notice that the bootstrap style takes precedence over mine,
_reboot.scss :
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
style.css - disabled (I dont know how to show that the text is crossed out, without loading a picture)
body {
font-family: "Lato", sans-serif;
font-size: 14px;
font-weight: 400;
font-style: normal;
line-height: 25px;
position: relative;
visibility: visible;
color: #3d3d3d;
background-color: #FFFFFF;
}
How can this be resolved without explicitly specifying styles in the <style>
section within /pages/layout.vue?