Welcome to mirror list, hosted at ThFree Co, Russian Federation.

highlight.scss « framework « stylesheets « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 122c605e603aa622927e0bb2a02467d0cb76461f (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.file-content.code {
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
  table-layout: fixed;

  pre {
    padding: 10px 0;
    border: 0;
    border-radius: 0 0 $border-radius-default;
    font-family: $monospace-font;
    font-size: $code-font-size;
    line-height: 1.5;
    margin: 0;
    overflow: auto;
    overflow-y: hidden;
    white-space: pre;
    word-wrap: normal;
    border-left: 1px solid;

    code {
      display: inline-block;
      min-width: 100%;
      font-family: $monospace-font;
      white-space: normal;
      word-wrap: normal;
      padding: 0;

      .line {
        display: block;
        width: 100%;
        padding-left: 10px;
        padding-right: 10px;
        white-space: pre;

        &:empty::before {
          content: '\200b';
        }
      }
    }
  }

  .line-numbers {
    padding: 10px;
    text-align: right;
    float: left;
    border-bottom-left-radius: $border-radius-default;

    a {
      font-family: $monospace-font;
      display: block;
      white-space: nowrap;

      i,
      svg {
        float: left;
        margin-top: 3px;
        margin-right: 5px;
        visibility: hidden;
      }

      &:hover,
      &:focus {
        outline: none;

        i,
        svg {
          visibility: visible;
        }
      }
    }
  }

  pre .line,
  .line-numbers a {
    font-size: 0.8125rem;
    line-height: 1.1875rem;
    min-height: 1.1875rem;
  }
}

// Vertically aligns <table> line numbers (eg. blame view)
// see https://gitlab.com/gitlab-org/gitlab-foss/issues/54048
td.line-numbers {
  line-height: 1;
}

.project-highlight-puc .unicode-bidi::before {
  content: '�';
  cursor: pointer;
  text-decoration: underline wavy $red-500;
}