summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/pages/branches.scss
blob: 49fe50977f5cd3e014e7d3bebf55499528f6fd4e (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.content-list > .branch-item,
.branch-title {
  display: flex;
  align-items: center;
}

.branch-info {
  flex: auto;
  min-width: 0;
  overflow: hidden;
}

.divergence-graph {
  padding: 0 6px;

  .graph-side {
    position: relative;
    width: 80px;
    height: 22px;
    padding: 5px 0 13px;
    float: left;

    .bar {
      position: absolute;
      height: 4px;
      background-color: $divergence-graph-bar-bg;
    }

    .bar-behind {
      right: 0;
      border-radius: 3px 0 0 3px;
    }

    .bar-ahead {
      left: 0;
      border-radius: 0 3px 3px 0;
    }

    .count {
      padding-top: 6px;
      padding-bottom: 0;
      font-size: 12px;
      color: $gl-text-color;
      display: block;
    }

    .count-behind {
      padding-right: 4px;
      text-align: right;
    }

    .count-ahead {
      padding-left: 4px;
      text-align: left;
    }
  }

  .graph-separator {
    position: relative;
    width: 1px;
    height: 18px;
    margin: 5px 0 0;
    float: left;
    background-color: $divergence-graph-separator-bg;
  }
}

.divergence-graph,
.branch-item .controls {
  flex: 0 0 auto;
  white-space: nowrap;
}