Skip to content

Commit 6ff2e82

Browse files
committed
Tiny tweaks
1 parent 95eadd3 commit 6ff2e82

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

stylesheets/toolkit/_settings.scss

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,10 @@ $Toolkit-Settings: (
5555
// New Settings module
5656
//////////////////////////////
5757
// Global
58-
$GlobalSettings: ();
58+
$GlobalSettings: $Toolkit-Settings !default;
5959
// User
6060
$UserSettings: () !default;
6161

62-
//////////////////////////////
63-
// User Settings
64-
//////////////////////////////
65-
$toolkit: () !default;
66-
67-
//////////////////////////////
68-
// Set Toolkit Settings
69-
//////////////////////////////
70-
@each $key, $value in $Toolkit-Settings {
71-
$GlobalSettings: map-merge($GlobalSettings, ($key: $value)) !global;
72-
}
73-
74-
//////////////////////////////
75-
// Settings Module
76-
//////////////////////////////
77-
7862
//////////////////////////////
7963
// User Setting Exists
8064
//////////////////////////////
@@ -87,7 +71,7 @@ $toolkit: () !default;
8771
}
8872
}
8973

90-
@fucntion user-setting-exists-multiple($settings...) {
74+
@function user-setting-exists-multiple($settings...) {
9175
$Return: ();
9276
@each $setting in $settings {
9377
$Return: map-merge($Return, ($setting: user-setting-exists($setting)));
@@ -218,13 +202,13 @@ $toolkit: () !default;
218202
//////////////////////////////
219203
// Setting Pick
220204
//////////////////////////////
221-
@function setting-pick($input, $setting) {
205+
@function setting-pick($setting, $input) {
222206
@return if($input != null, $input, setting-get($setting));
223207
}
224208

225209
@function setting-pick-multiple($settings) {
226210
$Return: ();
227-
@each $input, $setting in $settings {
211+
@each $setting, $input in $settings {
228212
$Return: map-merge($Return, ($setting: setting-pick($input, $setting)));
229213
}
230214

0 commit comments

Comments
 (0)