Sha256: ada63110e55675d8be512b503c66e3a8de2513fb624fd05d0362cb6252f1296d

Contents?: true

Size: 1.87 KB

Versions: 10

Compression:

Stored size: 1.87 KB

Contents

// @page Pattern Library/Articles
// @name Related items
// 
// @description
//   Related lists used for content sidebars
//
// @markup
//   <ul class="us-related us-list--reset">
//     <li class="us-related__item">
//       <a class="us-related__item-link" href="#">Car accident claims — How to make a car insurance claim</a>
//     </li>
//     <li class="us-related__item">
//       <a class="us-related__item-link" href="#">How to get the best car insurance deals</a>
//     </li>
//     <li class="us-related__item">
//       <a class="us-related__item-link" href="#">No claims bonus explained: how to protect a no claims discount</a>
//     </li>
//     <li class="us-related__item">
//       <a class="us-related__item-link us-related__item-link--more" href="#">See more guides</a>
//     </li>
//   </ul>

.us-related {
  margin-bottom: $gutter-width;
}

.us-related__item {
  margin-bottom: 0;
}

.us-related__item-link {
  @extend %clearfix;
  @include link-colors($c-typegrey-2, $c-typecyan, $c-typegrey-2, $c-typegrey-2);
  display: block;
  padding-top: .5em;
  padding-bottom: .5em;
  border-bottom: 1px solid $c-bordergrey;
  transition: color .3s, border-color .3s;
}

.us-related__item-link--more {
  @include link-colors($c-typegrey, $c-typecyan, $c-typegrey, $c-typegrey);
  padding-right: .5em;
  text-align: right;
  background-color: $c-cyan-light;

  &:after {
    @extend %link-triangle;
  }
}

.us-related__item-title {
  @extend %small-font;
  @include normal-font;
  vertical-align: middle;

  @include respond-to(desktop) {
    display: inline-block;
    width: calc(100% - 90px);
    margin-left: $gutter-width / 4;
  }
}

.us-related__item-image {
  @include respond-to(desktop) {
    display: inline-block;
    width: 70px;
    height: 70px;
    vertical-align: middle;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100%;
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ustyle-1.8.7 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.8.1 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.8.0 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.7.0 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.6.1 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.5.8 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.4.1 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.4.0 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.3.12 vendor/assets/stylesheets/ustyle/articles/_related.scss
ustyle-1.3.6 vendor/assets/stylesheets/ustyle/articles/_related.scss