feat: import sass:math utilities globally

This commit is contained in:
Dominik Pschenitschni 2021-09-17 12:56:01 +02:00
parent 7955abc28a
commit f8044a5caa
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
6 changed files with 11 additions and 15 deletions

View File

@ -1,5 +1,3 @@
@use 'sass:math';
$bucket-background: $grey-100;
$task-background: $white;
$ease-out: all .3s cubic-bezier(0.23, 1, 0.32, 1);

View File

@ -1,5 +1,3 @@
@use "sass:math";
.navbar {
z-index: 4 !important;

View File

@ -1,4 +1,2 @@
@use "sass:math";
// Variables that are derived from bulma variables need to be included after them
$mobile: math.div($tablet, 2);

View File

@ -1,6 +0,0 @@
@import 'colors';
@import 'shadows';
@import 'variables';
// the default values get overwritten by the definitions above
@import "bulma/sass/utilities/_all";

View File

@ -0,0 +1,6 @@
@import "colors";
@import "shadows";
@import "variables";
// the default values get overwritten by the definitions above
@import "bulma/sass/utilities/_all";

View File

@ -5,12 +5,14 @@ const {visualizer} = require('rollup-plugin-visualizer')
const pathSrc = path.resolve(__dirname, './src')
// the @use rules have to be the first in the compiled stylesheets
const SCSS_IMPORT_PREFIX = `@use "sass:math";
@import "${pathSrc}/styles/variables";`
module.exports = {
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "${pathSrc}/styles/variables/_all.scss";`,
},
scss: { additionalData: SCSS_IMPORT_PREFIX },
},
},
plugins: [