@solexllc/usx-theme 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/_variables.scss +5 -3
package/package.json
CHANGED
package/src/_variables.scss
CHANGED
|
@@ -35,16 +35,18 @@
|
|
|
35
35
|
|
|
36
36
|
// Omits null/false values; an optional second argument guards composites
|
|
37
37
|
// so partial values like `1px solid null` never reach the CSS output.
|
|
38
|
-
|
|
38
|
+
// An optional third argument supplies a fallback for when $condition is
|
|
39
|
+
// falsy, for compile-time constants that always have a usable value.
|
|
40
|
+
@function usx-when($condition, $value: $condition, $fallback: null) {
|
|
39
41
|
@if not $condition {
|
|
40
|
-
@return
|
|
42
|
+
@return $fallback;
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
@return $value;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
// ── Layout (compile-time only) ───────────────────────────────────────────────
|
|
47
|
-
$max-layout-width:
|
|
49
|
+
$max-layout-width: 64rem !default;
|
|
48
50
|
$max-sidebar-width: 16rem !default;
|
|
49
51
|
|
|
50
52
|
// ── Breakpoints (compile-time only) ─────────────────────────────────────────
|