Skip to content

Commit 3a82565

Browse files
authored
Adding support for ishViewportRange (#131)
* Adding support for ishViewportRange * adding ishViewportRang default settings
1 parent 01f14fe commit 3a82565

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

config/config.yml.default

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ defaultPattern: "all"
4343

4444
# show pattern info by default on the "view all" views
4545
defaultShowPatternInfo: false
46+
47+
# Set a range of viewport widths for S, M, & L buttons
48+
ishViewportRange:
49+
s: [320, 500]
50+
m: [500, 800]
51+
l: [800, 1200]

src/PatternLab/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public static function init($baseDir = "", $verbose = true) {
245245
self::setExposedOption("ishFontSize");
246246
self::setExposedOption("ishMaximum");
247247
self::setExposedOption("ishMinimum");
248+
self::setExposedOption("ishViewportRange");
248249
self::setExposedOption("outputFileSuffixes");
249250
self::setExposedOption("plugins");
250251

0 commit comments

Comments
 (0)