Skip to content

Commit

Permalink
Merge pull request #8 from appirio-tech/common-mixins
Browse files Browse the repository at this point in the history
Move common colors for  tracks and members to mixins
  • Loading branch information
nlitwin committed May 3, 2016
2 parents f545b92 + 36329bf commit da60fe0
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 13 deletions.
12 changes: 0 additions & 12 deletions src/styles/_common.scss

This file was deleted.

31 changes: 31 additions & 0 deletions src/styles/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
// Mixins

// Table of Contents
//
// Font families
// Labels
// Body
// Headings
// Common

// Font families and weights
@mixin roboto-light {
font-family: 'Roboto', Helvetica, Arial, sans-serif;
Expand Down Expand Up @@ -129,3 +139,24 @@
font-size: $tc-heading-extra-small;
line-height: $base-unit * 5;
}

// Common
@mixin tc-track-colors {
&.develop { color: $tc-green; }
&.design { color: $tc-light-blue; }
&.data { color: $tc-orange; }
}

@mixin tc-track-background-colors {
&.develop { background-color: $tc-green; }
&.design { background-color: $tc-light-blue; }
&.data { background-color: $tc-orange; }
}

@mixin tc-member-level-background-colors {
&.level-1 { background-color: $tc-level-1; }
&.level-2 { background-color: $tc-level-2; }
&.level-3 { background-color: $tc-level-3; }
&.level-4 { background-color: $tc-level-4; }
&.level-5 { background-color: $tc-level-5; }
}
1 change: 0 additions & 1 deletion src/styles/_tc-styles.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@import 'reset';
@import 'tc-includes';
@import 'common';
@import 'typography';
@import 'buttons';

Expand Down

0 comments on commit da60fe0

Please sign in to comment.