_annotation.sass 1.61 KB
Newer Older
1 2 3 4 5
// $annotation-candidate-color: #aaa
// $annotation-graph-color: #0f0
// $annotation-stop-color: #f00

// Copied from bootstrap's bg-warning, bg-success, bg-danger:
6
$annotation-graph-color: #95D29593
7 8
$annotation-candidate-color: #B8B8B876
// $annotation-candidate-color: #b8daff
9
$annotation-stop-color: #F5949931
10

11 12 13 14
@mixin lg1($color)
    color: #000
    background-color: $color

15
@mixin lg2($color1, $color2)
16
    color: #000
17 18 19
    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)
20
    color: #000
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    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
    @include lg3($annotation-candidate-color, $annotation-graph-color, $annotation-stop-color)

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

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

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

  &.candidate-term
39
    @include lg1($annotation-candidate-color)
40 41

  &.graph-term
42
    @include lg1($annotation-graph-color)
43 44

  &.stop-term
45
    @include lg1($annotation-stop-color)
46 47 48

.context-menu
  .candidate-term
49
    @include lg1($annotation-candidate-color)
50 51

  .graph-term
52
    @include lg1($annotation-graph-color)
53 54

  .stop-term
55
    @include lg1($annotation-stop-color)