Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release-0.7.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolsen committed Feb 25, 2014
2 parents 7cc9a50 + 3aa5954 commit 2cbcfb3
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 13 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
THIS CHANGELOG IS AN ATTEMPT TO DOCUMENT CHANGES TO THIS PROJECT.

PL-v0.7.7
- ADD: can hide all of the patterns for a given pattern type from being shown on the styleguide. good for nested pages/templates
- FIX: the MQ menu is hidden on smaller viewports

PL-v0.7.6
- FIX: pattern search now searches the entire name of a pattern
- FIX: the MQ menu lines up with the navigation item
Expand Down
5 changes: 4 additions & 1 deletion core/config/config.ini.default
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* If config.ini doesn't exist Pattern Lab will try to create a new version
*/

v = "0.7.6"
v = "0.7.7"

// file extensions to ignore when building or watching the source dir, separate with a comma
ie = "scss,DS_Store,less"
Expand All @@ -26,3 +26,6 @@ ishControlsHide = ""

// the order of pattern states
patternStates = "inprogress,inreview,complete"

// the pattern types that shouldn't be included in the style guide
styleGuideExcludes = ""
8 changes: 5 additions & 3 deletions core/lib/PatternLab/Builder.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Builder Class - v0.7.6
* Pattern Lab Builder Class - v0.7.7
*
* Copyright (c) 2013-2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down Expand Up @@ -50,6 +50,7 @@ class Builder {
protected $mainPageFoot; // the footer to be included on main pages
protected $addPatternHF; // should the pattern header and footer be added
protected $cleanPublic; // whether the public directory should be cleaned out or not on generate
protected $styleGuideExcludes;// which pattern types to exclude from the style guide

/**
* When initializing the Builder class or the sub-classes make sure the base properties are configured
Expand All @@ -67,7 +68,8 @@ public function __construct($config = array()) {
foreach ($config as $key => $value) {

// if the variables are array-like make sure the properties are validated/trimmed/lowercased before saving
if (($key == "ie") || ($key == "id") || ($key == "patternStates")) {
$arrayKeys = array("ie","id","patternStates","styleGuideExcludes");
if (in_array($key,$arrayKeys)) {
$values = explode(",",$value);
array_walk($values,'PatternLab\Builder::trim');
$this->$key = $values;
Expand Down Expand Up @@ -886,7 +888,7 @@ protected function gatherPatternInfo() {
$patternTypeDash = $patternTypeValues["patternTypeDash"];

// if this has a second level of patterns check them out (means we don't process pages & templates)
if (isset($patternTypeValues["patternTypeItems"])) {
if (isset($patternTypeValues["patternTypeItems"]) && (!in_array($patternType,$this->styleGuideExcludes))) {

$arrayReset = false;

Expand Down
2 changes: 1 addition & 1 deletion core/lib/PatternLab/Configurer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Configurer Class - v0.7.6
* Pattern Lab Configurer Class - v0.7.7
*
* Copyright (c) 2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion core/lib/PatternLab/Generator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Generator Class - v0.7.6
* Pattern Lab Generator Class - v0.7.7
*
* Copyright (c) 2013-2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion core/lib/PatternLab/Migrator.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Migrator Class - v0.7.6
* Pattern Lab Migrator Class - v0.7.7
*
* Copyright (c) 2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion core/lib/PatternLab/Watcher.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/*!
* Pattern Lab Watcher Class - v0.7.6
* Pattern Lab Watcher Class - v0.7.7
*
* Copyright (c) 2013-2014 Dave Olsen, http://dmolsen.com
* Licensed under the MIT license
Expand Down
4 changes: 2 additions & 2 deletions core/styleguide/css/styleguide.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@
border: 0;
border-left: 1px solid rgba(255, 255, 255, 0.05); } }

.sg-find {
.sg-find, .sg-mqs {
display: none;
}

@media all and (min-width: 48em) {
.sg-find {
.sg-find, .sg-mqs {
display: block;
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/templates/partials/ishControls.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</ul>
</li>
{{^ ishControlsHide.mqs }}
<li class="sg-half">
<li class="sg-mqs">
<a href="#" class="mode-link sg-acc-handle" id="sg-size-mq" title="Media query values found in stylesheet">MQ</a>
<ul class="sg-acc-panel sg-left" id="sg-mq">
{{# mqs }}
Expand Down
4 changes: 2 additions & 2 deletions public/styleguide/css/styleguide.css
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,12 @@
border: 0;
border-left: 1px solid rgba(255, 255, 255, 0.05); } }

.sg-find {
.sg-find, .sg-mqs {
display: none;
}

@media all and (min-width: 48em) {
.sg-find {
.sg-find, .sg-mqs {
display: block;
}
}
Expand Down

0 comments on commit 2cbcfb3

Please sign in to comment.