Skip to content

Commit

Permalink
Add optional .gallery__heading element to Gallery pattern.
Browse files Browse the repository at this point in the history
  • Loading branch information
DFurnes committed Oct 19, 2015
1 parent 6476cd4 commit 6aab4b7
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions scss/_modules/_gallery.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
//
// Styleguide Gallery
.gallery {
@include clearfix;
list-style-type: none;
margin: 0;
padding: 0;

@include clearfix();
// Optional gallery heading container
.gallery__heading {
@include span(100%);
}

// Gallery items
> li {
margin: gutter() 0;
padding: 0 gutter();
Expand All @@ -20,10 +25,14 @@
// Gallery - Quartet
//
// A "quartet" gallery shows four items per row. Galleries can contain items of
// any type but work particularly well with __Figures__ and __Tiles__.
// any type but work particularly well with __Figures__ and __Tiles__. May optionally
// include a heading within `.gallery__heading`.
//
// Markup:
// <ul class="gallery -quartet">
// <div class="gallery__heading">
// <h2>Gallery Heading</h2>
// </div>
// <li>
// <article class="tile">
// <a class="wrapper" href="#">
Expand Down Expand Up @@ -82,7 +91,8 @@
// Gallery - Triad
//
// A "triad" gallery shows three items per row. Galleries can contain items of
// any type but work particularly well with __Figures__ and __Tiles__.
// any type but work particularly well with __Figures__ and __Tiles__. May optionally
// include a heading within `.gallery__heading`.
//
// .-aligned - Tiles with image flushed to top and minimum
// height to force content below to line up with adjacent tiles
Expand All @@ -91,6 +101,9 @@
//
// Markup:
// <ul class="gallery -triad {{modifier_class}}">
// <div class="gallery__heading">
// <h2>Gallery Heading</h2>
// </div>
// <li>
// <div class="figure">
// <div class="figure__media">
Expand Down Expand Up @@ -158,10 +171,14 @@
// Gallery - Duo
//
// A "duo" gallery shows two items per row. Galleries can contain items of
// any type but work particularly well with __Figures__ and __Tiles__.
// any type but work particularly well with __Figures__ and __Tiles__. May optionally
// include a heading within `.gallery__heading`.
//
// Markup:
// <ul class="gallery -duo">
// <div class="gallery__heading">
// <h2>Gallery Heading</h2>
// </div>
// <li>
// <article class="figure -left">
// <div class="figure__media">
Expand Down

0 comments on commit 6aab4b7

Please sign in to comment.