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