feat: provide global variables in all components (#669)

Co-authored-by: Dominik Pschenitschni <mail@celement.de>
Reviewed-on: vikunja/frontend#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:
dpschen 2021-08-23 16:39:11 +00:00 committed by konrad
parent ecb3924b09
commit 0660129b41
10 changed files with 9 additions and 8 deletions

View File

@ -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 {

View File

@ -44,8 +44,6 @@ export default {
</script>
<style lang="scss" scoped>
@import '../../../styles/theme/variables/all';
.priority-label {
display: inline-flex;
align-items: center;

View File

@ -269,8 +269,6 @@ export default {
</script>
<style lang="scss">
@import '@/styles/theme/variables/all';
.add-task-relation-button {
margin-top: -3rem;

View File

@ -146,8 +146,6 @@ export default {
</script>
<style lang="scss">
@import '../../styles/theme/variables/all';
.cropper {
height: 80vh;
background: transparent;

View File

@ -1,4 +1,3 @@
@import 'variables/all';
@import 'theme';
@import 'content';

View File

@ -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({