_annotation.sass 1.65 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
// $annotation-candidate-color: #aaa
// $annotation-graph-color: #0f0
// $annotation-stop-color: #f00

// Copied from bootstrap's bg-warning, bg-success, bg-danger:
$annotation-candidate-color: #FF9800
$annotation-graph-color: #43A047
$annotation-stop-color: #E53935

@mixin lg2($color1, $color2)
    background-image: linear-gradient(rgba($color1, 0.5), rgba($color1, 0.5)), linear-gradient(rgba($color2, 0.5), rgba($color2, 0.5))

@mixin lg3($color1, $color2, $color3)
    background-image: linear-gradient(rgba($color1, 0.34), rgba($color1, 0.34)), linear-gradient(rgba($color2, 0.33), rgba($color2, 0.33)), linear-gradient(rgba($color3, 0.33), rgba($color3, 0.33))

.annotation-run
  cursor: pointer

  &.candidate-term.graph-term.stop-term
    color: #000
    @include lg3($annotation-candidate-color, $annotation-graph-color, $annotation-stop-color)

  &.candidate-term.graph-term
    color: #000
    @include lg2($annotation-candidate-color, $annotation-graph-color)

  &.candidate-term.stop-term
    color: #000
    @include lg2($annotation-candidate-color, $annotation-stop-color)

  &.graph-term.stop-term
    color: #000
    @include lg2($annotation-graph-color, $annotation-stop-color)

  &.candidate-term
    color: #000
    background-color: $annotation-candidate-color

  &.graph-term
    color: #000
    background-color: $annotation-graph-color

  &.stop-term
    color: #000
    background-color: $annotation-stop-color

.context-menu
  .candidate-term
    color: #000
    background-color: $annotation-candidate-color

  .graph-term
    color: #000
    background-color: $annotation-graph-color

  .stop-term
    color: #000
    background-color: $annotation-stop-color