Skip to content

Commit

Permalink
Merge branch 'article-component'
Browse files Browse the repository at this point in the history
  • Loading branch information
David Annez committed Oct 9, 2015
2 parents a92c992 + 6b7d833 commit 50a517f
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/ustyle-content.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ustyle-latest.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/ustyle.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions vendor/assets/stylesheets/ustyle/_all.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
@import "ustyle/components/backdrop";

// Articles
@import "ustyle/articles/base";
@import "ustyle/articles/news";
@import "ustyle/articles/guide";
@import "ustyle/articles/more";
Expand Down
77 changes: 77 additions & 0 deletions vendor/assets/stylesheets/ustyle/articles/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
// @page Pattern Library/Articles
// @name Base article
//
// @description
// Article listings for news are important on the landing pages.
//
// @markup
// <article class='us-article'>
// <a class='us-article__link' href="#">
// <div class='us-grid-row'>
// <div class='us-col-md-8'>
// <div class="us-article__meta">
// <span class="date">2 months ago</span>
// in
// <span class="category">Banking</span>
// </div>
// <h3 class='us-article__title'>Car insurance guides</h3>
// <p class='us-article__description'>
// A quarter of 18-34 year olds believe that tech companies could offer better financial services than banks
// </p>
// <span class="us-article__more">Read more</span>
// </div>
// <div class='us-col-md-4 us-tablet--block'>
// <img class='us-img--full us-article__image' src='http://www.uswitch.com/insurance/assets/guide-home-16141c84afd29e2063ee76803037716c.jpg' />
// </div>
// </a>
// </div>
// </article>

$article-border-color: $c-keylinegrey !default;
$article-padding: 2em !default;
$article-description-color: $c-typegrey-2 !default;

.us-article {
padding-top: $article-padding;
padding-bottom: $article-padding;
border-bottom: 1px solid $article-border-color;
}

.us-article__link {
display: block;
}

.us-article__link,
.us-article__link:hover {
color: inherit;
}

.us-article__title {
@include heading(4);

@include respond-to(tablet, true) {
@include heading(3, $extend: false);
}
}

.us-article__meta {
font-size: .875em;
color: $article-description-color;
}

.us-article__description {
margin-bottom: 1em;
color: $article-description-color;

@include respond-to(tablet, true) {
font-size: 1.2em;
}
}

.us-article__image {
border: 1px solid $article-border-color;
}

.us-article__more {
@include link-colors($c-typecyan, $c-typecyan, $c-typecyan);
}

0 comments on commit 50a517f

Please sign in to comment.