我有三個我想合併成一個地圖的Sass地圖。有了地圖合併功能,我只能合併兩張地圖。我怎樣才能合併兩個以上的地圖?合併多個Sass地圖
縮短的我的情況例如:
$color-name: (
blue: (
default: blue,
dark: navy,
light: sky
)
);
$color-event: (
danger: (
default: set($color-name, red),
dark: set($color-name, red, dark),
light: set($color-name, red, light),
)
);
$color-category: (
heading: (
default: set($color-name, grey),
dark: set($color-name, grey, dark),
light: set($color-name, grey, light)
)
);
$color: map-merge($color-name, $color-event, $color-category);
你好,很棒的功能。感謝分享!你把櫻桃放在蛋糕上;) –