Advertisement
Guest User

Untitled

a guest
Dec 19th, 2017
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.84 KB | None | 0 0
  1. .story-tags {
  2.     @mixin declare_story_category( $color ) {
  3.         background-color: $color;
  4.         border: 1px solid $color * 0.85;
  5.  
  6.         &:hover {
  7.             $hover-color: $color * 1.1;
  8.  
  9.             background-color: $hover-color;
  10.             border: 1px solid $hover-color * 0.85;
  11.         }
  12.  
  13.         &:active {
  14.             $active-color: $color * 1.1;
  15.  
  16.             background-color: $active-color;
  17.             border: 1px solid $active-color * 0.85;
  18.         }
  19.     }
  20.  
  21.     > li {
  22.         a {
  23.             &[data-tag='adventure'] {
  24.                 @include declare_story_category(#6fb859);
  25.             }
  26.  
  27.             &[data-tag='romance'] {
  28.                 @include declare_story_category(#cd58a7);
  29.             }
  30.  
  31.             &[data-tag='drama'] {
  32.                 @include declare_story_category(#895fd6);
  33.             }
  34.  
  35.             &[data-tag='comedy'] {
  36.                 @include declare_story_category(#f59c00);
  37.             }
  38.  
  39.             &[data-tag='dark'], &[data-tag='horror'] {
  40.                 @include declare_story_category(#b93737);
  41.             }
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement