Skip to content

Commit

Permalink
add future mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
allenwq committed Mar 16, 2015
1 parent 371c3d3 commit 36bf7b5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/assets/stylesheets/course/announcements.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@import "variables";
@import "mixins/future";

.course-announcements {
&.index {
Expand All @@ -15,6 +16,10 @@
.content {
margin-top: 10px;
}

&.future {
@include future($gray-lighter);
}
}
}
}
8 changes: 8 additions & 0 deletions app/assets/stylesheets/mixins/_future.css.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
//future style
//indicates the item will be available in future

@mixin future($bg-color) {
background-color: $bg-color;
opacity: 0.9;
padding: 10px;
}

0 comments on commit 36bf7b5

Please sign in to comment.