fix: duplicate root styles

This commit is contained in:
Dominik Pschenitschni 2021-11-12 20:42:42 +01:00
parent 1745c174e1
commit 8aba56a37b
Signed by: dpschen
GPG Key ID: B257AC0149F43A77
3 changed files with 9 additions and 4 deletions

View File

@ -13,9 +13,6 @@
// the default values get overwritten by the definitions above
@import "bulma-css-variables/sass/utilities/_all";
// this is needed so that the shared form variables are globally defined aswell
@import "bulma-css-variables/sass/form/shared";
// since $tablet is defined by bulma we can just define it after importing the utilities
$mobile: math.div($tablet, 2);

View File

@ -848,6 +848,11 @@ $flash-background-duration: 750ms;
}
&:not(:disabled) {
// HACK: these styles are repeated from bulma-css-variables/sass/form/shared.sass
$input-background-color: var(--scheme-main, #{$scheme-main});
$input-border-color: var(--border, #{$border});
$input-focus-border-color: var(--link, #{$link});
&:hover, &:active {
background: $input-background-color;
border-color: $input-border-color;

View File

@ -29,7 +29,10 @@ if (isModernBuild) {
export default defineConfig({
css: {
preprocessorOptions: {
scss: { additionalData: PREFIXED_SCSS_STYLES },
scss: {
additionalData: PREFIXED_SCSS_STYLES,
charset: false, // fixes "@charset" must be the first rule in the file" warnings
},
},
},
plugins: [