Skip to content

Commit dd93275

Browse files
b204
1 parent 1aac1dc commit dd93275

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

src/Core/Theme/Getters.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030

3131
$value: if(map.has-key($theme-map, $node), map.get($theme-map, $node), null);
3232

33-
@if ($value != null and list.length($keys) > 0) {
34-
$value: if(map.has-key($value, list.nth($keys, 1)), map.get($value, list.nth($keys, 1)), null);
35-
36-
@if ($value != null and list.length($keys) > 1) {
37-
$value: if(map.has-key($value, list.nth($keys, 2)), map.get($value, list.nth($keys, 2)), null);
38-
39-
@if ($value != null and list.length($keys) > 2) {
40-
$value: if(map.has-key($value, list.nth($keys, 3)), map.get($value, list.nth($keys, 3)), null);
41-
42-
@if ($value != null and list.length($keys) > 3) {
43-
$value: if(map.has-key($value, list.nth($keys, 4)), map.get($value, list.nth($keys, 4)), null);
33+
@if (list.length($keys) > 0) {
34+
@for $key from 1 through list.length($keys) {
35+
@if ($value != null) {
36+
$value: if(map.has-key($value, list.nth($keys, $key)), map.get($value, list.nth($keys, $key)), null);
37+
@if (list.length($keys) == $key) {
38+
@return $value;
39+
}
40+
@if ($value != null) {
41+
@if (map.has-key($value, list.nth($keys, $key)) and list.length($keys) > $key) {
42+
$value: if(map.has-key($value, list.nth($keys, $key)), map.get($value, list.nth($keys, $key)), null);
43+
}
4444
}
4545
}
4646
}

src/themes.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ $themes: (
132132
)
133133
)
134134
),
135-
'navbar': (
136-
'color': #cfd4ec
137-
),
138135
'tabnav': (
139136
'border-bottom': 4px
140137
),

0 commit comments

Comments
 (0)