mirror of
https://github.com/mue/mue.git
synced 2026-07-17 05:54:14 +02:00
chore: update SASS and fix all associated depreciation errors
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// since alex will no doubtedly be looking at this file often
|
||||
// here's a reminder: please add a new line when doing nested scss, otherwise it is messy!
|
||||
@use 'sass:map';
|
||||
@import 'mixins';
|
||||
@use 'mixins' as *;
|
||||
|
||||
$background: 'background';
|
||||
$boxShadow: 'boxShadow';
|
||||
@@ -89,7 +89,36 @@ $themes: (
|
||||
),
|
||||
);
|
||||
|
||||
$theme-map: null;
|
||||
|
||||
@mixin themed() {
|
||||
@each $theme, $themeMap in $themes {
|
||||
.#{$theme} & {
|
||||
$theme-map: () !global;
|
||||
|
||||
@each $key, $submap in $themeMap {
|
||||
$value: map.get(map.get($themes, $theme), '#{$key}');
|
||||
$theme-map: map.merge(
|
||||
$theme-map,
|
||||
(
|
||||
$key: $value,
|
||||
)
|
||||
) !global;
|
||||
}
|
||||
@content;
|
||||
|
||||
$theme-map: null !global;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@function t($key) {
|
||||
@return map.get($theme-map, $key);
|
||||
}
|
||||
|
||||
%basic {
|
||||
backdrop-filter: blur(map.get($ui-elements, 'backgroundBlur'));
|
||||
|
||||
@include themed {
|
||||
background: t($background);
|
||||
border-radius: t($borderRadius);
|
||||
@@ -97,8 +126,6 @@ $themes: (
|
||||
box-shadow: t($boxShadow);
|
||||
}
|
||||
|
||||
backdrop-filter: blur(map.get($ui-elements, 'backgroundBlur'));
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user