I have two pages in my Nuxt project:
|-pages/
|---index.vue
|---login/
|-----index.vue
The index.vue inside pages has these styles:
<style lang="scss">
html,
body,
#__nuxt,
#__layout,
main {
height: 100%;
}
</style>
As you can see, I need my container taking all the screen height, so I need to put that style in all Nuxt containers, for that reason, my styles can't be scoped. Here all is fine, but when I go to /login I don't want those styles, but for some reason Nuxt is applying those styles, even if I delete the <styles> label inside pages/login/index.vue, I don't know why...
In theory, the pages/index.vue styles shouldn't be loading if I'm in /login
The only solution I found is to put the scoped attribute to page/index.vue style label, but it doesn't allow me to change the Nuxt's containers height.
Do you know a better way to do it?