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