io.github.palexdev.mfxresources.sass.abstracts._maps.scss Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of materialfx-all Show documentation
Show all versions of materialfx-all Show documentation
Material Design/Modern components for JavaFX, now packed as a single Jar
The newest version!
@use 'logging' as *;
@use 'sass:map';
/// Simple function which allows to combine multiple maps into one using the Sass `deep-merge` function in the `map`
/// module (which allow only two maps as arguments).
@function DeepMerge($base-map, $to-merge...) {
@if $base-map == null {
@return WarnFn("Base map is null");
}
@if length($to-merge) <= 1 {
@return DebugFn("No overrides provided", $base-map);
}
$overridden: $base-map;
@each $override in $to-merge {
$overridden: map.deep-merge($overridden, $override);
}
@return $overridden;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy