summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/common.scss
blob: d9b9f3694c1a8005052aa450afe3b186a4dfa8cb (plain)
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
@import '../framework/variables';

@mixin diff-background($background, $idiff, $border) {
  background: $background;

  &.line_content span.idiff {
    background: $idiff;
  }

  &.diff-line-num {
    border-color: $border;
  }
}

@mixin dark-diff-match-line {
  color: $dark-diff-match-bg;
  background: $dark-diff-match-color;
}

@mixin diff-expansion($background, $border, $link) {
  background-color: $background;

  .diff-td,
  td {
    border-top: 1px solid $border;
    border-bottom: 1px solid $border;
  }

  a {
    color: $link;
  }
}

@mixin line-coverage-border-color($coverage, $no-coverage) {
  transition: border-left 0.1s ease-out;

  &.coverage {
    border-left: 3px solid $coverage;
  }

  &.no-coverage {
    border-left: 3px solid $no-coverage;
  }
}

@mixin line-number-hover($color) {
  background-color: $color;
  border-color: darken($color, 5%);

  a {
    color: darken($color, 15%);
  }
}