Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	.gitignore
#	_jekyll/_layouts/default.html
  • Loading branch information
barrymcgee committed Feb 8, 2017
2 parents 4438bc4 + 3b6d908 commit 603247e
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 131 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ node_modules/
demo.html
/.firebaserc
/firebase.json
/docs/css
/Gemfile.lock
/_jekyll/_site/
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
language: node_js
node_js:
- "6.6.0"
before_install:
- rvm install 2.2.5
install:
- gem install jekyll
- gem install percy-cli
- npm install
before_script:
- npm i
- node_modules/gulp/bin/gulp.js build
script:
- jekyll build
- node_modules/gulp/bin/gulp.js test
- percy snapshot --widths "375,768,1280" _jekyll/_site/ --baseurl "/vanilla-framework"
notifications:
irc:
channels:
- "chat.freenode.net#vanilla-framework"
- "chat.freenode.net#canonical-webteam"
on_success: change
on_failure: always
webhooks:
urls:
- "https://webhooks.gitter.im/e/9898d67dfc1dd39f9cb2"
on_success: change
170 changes: 86 additions & 84 deletions docs/patterns/_matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,94 +3,96 @@ collection: patterns
title: Matrix
---

Matrix items will display in one column on small screens. At resolutions above `$breakpoint-medium`, the matrix switches to three items per row.

<ul class="p-matrix u-clearfix">
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
</ul>

```html
<ul class="p-matrix u-clearfix">
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
<li class="p-matrix__item">
<img class="p-matrix__img" src="http://placehold.it/60x60" alt="icon">
<div class="p-matrix__content">
<h3 class="p-matrix__title"><a class="p-matrix__link" href="#">Title</a></h3>
<p class="p-matrix__desc">Short description</p>
</div>
</li>
</ul>
```
4 changes: 2 additions & 2 deletions docs/utilities/_text-align.md → docs/utilities/_align.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
collection: utilities
title: Text align
title: Align
---

You can use these utilities to force the text inside an element to align center, left or right.
You can use these utilities to force the content inside an element to align center, left or right.

## Center

Expand Down
2 changes: 1 addition & 1 deletion gulp/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ gulp.task('sass:develop', function() {
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1'))
.pipe(sourcemaps.write('maps/'))
.pipe(gulp.dest('build/css/'))
.pipe(gulp.dest('jekyll/css/'));
});

// Build Sass for production
Expand All @@ -41,6 +40,7 @@ gulp.task('sass:build', function() {
onError: throwSassError
}))
.pipe(autoprefixer('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1'))
.pipe(gulp.dest('build/css/'))
.pipe(cssnano())
.pipe(rename({suffix: '.min'}))
.pipe(gulp.dest('build/css/'));
Expand Down
39 changes: 0 additions & 39 deletions scss/_patterns_lists.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@include vf-p-list;
@include vf-p-list-divided;
@include vf-p-list-item-state;
@include vf-p-combined-list;
@include vf-p-inline-list;
@include vf-p-inline-list-middot;
@include vf-p-stepped-list;
Expand Down Expand Up @@ -54,44 +53,6 @@
}
}

// Displays split as one on small screens
@mixin vf-p-combined-list {
.combined-list {
ul,
div {
margin-bottom: 0;
}

.last-item {
border-bottom: 1px dotted $color-mid-light;
padding-bottom: 10px;
}

.last-col {
margin-bottom: 20px;

.last-item {
border-bottom: 0;
padding-bottom: 0;
}
}
}

@media only screen and (min-width: $breakpoint-medium) {
.combined-list {
ul,
div {
margin-bottom: 1.25rem;
}

.last-item {
border-bottom: 0;
padding-bottom: 0;
}
}
}
}

// Displays a list inline with spacing
@mixin vf-p-inline-list {
.p-inline-list {
Expand Down

0 comments on commit 603247e

Please sign in to comment.