Skip to content

Commit 6a1ab17

Browse files
b225
1 parent df49854 commit 6a1ab17

2 files changed

Lines changed: 9 additions & 26 deletions

File tree

src/Core/Global/Options.scss

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/// @param {String|null} $feature
5454
///
5555
/// @example features('components', 'card', 'horizontal')
56-
/// @example features('elements', 'button', 'gradient')
56+
/// @example features('elements', 'button', 'preloader')
5757
///
5858
/// @return bool
5959
///
@@ -72,6 +72,9 @@
7272
/// @param {String} $node
7373
/// @param {String} $module
7474
///
75+
/// @example enabled('elements', 'grid')
76+
/// @example enabled('components', 'navbar')
77+
///
7578
/// @return bool
7679
///
7780
@function enabled($node, $module: null)
@@ -101,20 +104,10 @@
101104
@warn helper.$nesting-depth;
102105
}
103106

104-
@if theme($module, nth($keys, 1), nth($keys, 2)) {
105-
$value: theme($module, nth($keys, 1), nth($keys, 2));
106-
107-
@if length($keys) > 2 {
108-
$value: theme($module, nth($keys, 1), nth($keys, 2), nth($keys, 3));
107+
$value: theme($module, $keys...);
109108

110-
@if length($keys) > 3 {
111-
$value: theme($module, nth($keys, 1), nth($keys, 2), nth($keys, 3), nth($keys, 4));
112-
}
113-
}
114-
115-
@if($value != null) {
116-
@return $value;
117-
}
109+
@if($value != null) {
110+
@return $value;
118111
}
119112

120113
@return get_default_settings($keys);
@@ -130,15 +123,5 @@
130123
///
131124
@function get_default_settings($keys)
132125
{
133-
$value: get.settings(nth($keys, 1), nth($keys, 2));
134-
135-
@if length($keys) > 2 {
136-
$value: get.settings(nth($keys, 1), nth($keys, 2), nth($keys, 3));
137-
138-
@if length($keys) > 3 {
139-
$value: get.settings(nth($keys, 1), nth($keys, 2), nth($keys, 3), nth($keys, 4));
140-
}
141-
}
142-
143-
@return $value;
126+
@return get.settings($keys...);
144127
}

src/punica.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
////////////////////////////////////////////////////////////////
1111
///-------------------------------------------------------------
12-
$active-theme: dark;
12+
$active-theme: default;
1313
///-------------------------------------------------------------
1414
////////////////////////////////////////////////////////////////
1515
$theme-name: if(map.has-key(get.$themes, $active-theme),

0 commit comments

Comments
 (0)