mirror of
https://github.com/heyman/heynote.git
synced 2024-11-21 23:43:22 +01:00
Add global SASS include for all Vue components
This commit is contained in:
parent
131a9ec877
commit
13afe62e11
@ -90,11 +90,7 @@
|
||||
</form>
|
||||
</template>
|
||||
|
||||
<style scoped lang="sass">
|
||||
=dark-mode()
|
||||
@media (prefers-color-scheme: dark)
|
||||
@content
|
||||
|
||||
<style scoped lang="sass">
|
||||
.language-selector
|
||||
font-size: 13px
|
||||
padding: 10px
|
||||
|
@ -76,9 +76,6 @@
|
||||
</template>
|
||||
|
||||
<style scoped lang="sass">
|
||||
=dark-mode()
|
||||
@media (prefers-color-scheme: dark)
|
||||
@content
|
||||
.status
|
||||
box-sizing: border-box
|
||||
height: 22px
|
||||
|
@ -152,10 +152,6 @@
|
||||
</template>
|
||||
|
||||
<style scoped lang="sass">
|
||||
=dark-mode()
|
||||
@media (prefers-color-scheme: dark)
|
||||
@content
|
||||
|
||||
@keyframes spin
|
||||
from
|
||||
transform: rotate(0deg)
|
||||
|
@ -118,10 +118,6 @@
|
||||
</template>
|
||||
|
||||
<style lang="sass">
|
||||
=dark-mode()
|
||||
@media (prefers-color-scheme: dark)
|
||||
@content
|
||||
|
||||
.settings
|
||||
position: fixed
|
||||
top: 0
|
||||
|
3
src/css/include.sass
Normal file
3
src/css/include.sass
Normal file
@ -0,0 +1,3 @@
|
||||
=dark-mode()
|
||||
@media (prefers-color-scheme: dark)
|
||||
@content
|
@ -87,6 +87,15 @@ export default defineConfig({
|
||||
},
|
||||
})
|
||||
],
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
sass: {
|
||||
additionalData: `
|
||||
@import "./src/css/include.sass"
|
||||
`
|
||||
}
|
||||
}
|
||||
},
|
||||
server: !!process.env.VSCODE_DEBUG ? (() => {
|
||||
const url = new URL(pkg.debug.env.VITE_DEV_SERVER_URL)
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user