This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why are Sass evangelists so obnoxious? Because we get to turn: | |
span.icon | |
@for $quantity from 1 through 7 | |
@for $severity from 1 through 10 | |
&.rating-severity-#{$quantity}-#{$severity} | |
height: ($quantity*2) + 8px | |
width: ($quantity*2) + 8px | |
@if $severity == 1 | |
background-color: $seizure_severity_1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write this mixin once: | |
@mixin box_gradient($start, $end) | |
background-color: $start | |
background-image: -webkit-gradient(linear, left top, left bottom, from($start), to($end)) | |
background-image: -webkit-linear-gradient(top, $start, $end) | |
background-image: -moz-linear-gradient(top, $start, $end) | |
background-image: -ms-linear-gradient(top, $start, $end) | |
background-image: -o-linear-gradient(top, $start, $end) | |
background-image: linear-gradient(top, $start, $end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
$highlight: #ffc | |
$nice-to-have: lighten(red, 45%) | |
$low-importance: lighten(red, 30%) | |
$medium-importance: lighten(red, 15%) | |
$high-importance: red | |
// Mixins |