feat: provide global variables in all components (#669)
Co-authored-by: Dominik Pschenitschni <mail@celement.de> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/669 Reviewed-by: konrad <k@knt.li> Co-authored-by: dpschen <dpschen@noreply.kolaente.de> Co-committed-by: dpschen <dpschen@noreply.kolaente.de>
This commit is contained in:
parent
ecb3924b09
commit
0660129b41
10 changed files with 9 additions and 8 deletions
|
@ -457,7 +457,6 @@ export default {
|
|||
<style lang="scss">
|
||||
@import '../../../node_modules/highlight.js/scss/base16/equilibrium-gray-light';
|
||||
@import '../../../node_modules/easymde/dist/easymde.min.css';
|
||||
@import '../../styles/theme/variables/all';
|
||||
|
||||
.editor {
|
||||
.clear {
|
||||
|
|
|
@ -44,8 +44,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '../../../styles/theme/variables/all';
|
||||
|
||||
.priority-label {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
|
|
@ -269,8 +269,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '@/styles/theme/variables/all';
|
||||
|
||||
.add-task-relation-button {
|
||||
margin-top: -3rem;
|
||||
|
||||
|
|
|
@ -146,8 +146,6 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
@import '../../styles/theme/variables/all';
|
||||
|
||||
.cropper {
|
||||
height: 80vh;
|
||||
background: transparent;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
@import 'variables/all';
|
||||
@import 'theme';
|
||||
|
||||
@import 'content';
|
||||
|
|
|
@ -3,7 +3,16 @@ const {VitePWA} = require('vite-plugin-pwa')
|
|||
const path = require('path')
|
||||
const {visualizer} = require('rollup-plugin-visualizer')
|
||||
|
||||
const pathSrc = path.resolve(__dirname, './src')
|
||||
|
||||
module.exports = {
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@import "${pathSrc}/styles/variables/_all.scss";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
createVuePlugin(),
|
||||
VitePWA({
|
||||
|
|
Loading…
Reference in a new issue