BigW Consortium Gitlab

highlight.scss 1.22 KB
Newer Older
1
.file-content.code {
2 3
  border: none;
  box-shadow: none;
4 5
  margin: 0;
  padding: 0;
6 7 8
  table-layout: fixed;

  pre {
Phil Hughes committed
9
    padding: 10px 0;
10 11 12
    border: none;
    border-radius: 0;
    font-family: $monospace_font;
13
    font-size: $code_font_size;
14
    line-height: 19px;
15
    margin: 0;
16 17 18 19
    overflow: auto;
    overflow-y: hidden;
    white-space: pre;
    word-wrap: normal;
20
    border-left: 1px solid;
21 22

    code {
23 24
      display: inline-block;
      min-width: 100%;
25
      font-family: $monospace_font;
26
      white-space: normal;
27
      word-wrap: normal;
28 29 30
      padding: 0;

      .line {
31
        display: block;
Phil Hughes committed
32 33 34 35
        width: 100%;
        min-height: 19px;
        padding-left: 10px;
        padding-right: 10px;
36
        white-space: pre;
37
      }
38 39 40 41 42 43 44 45 46 47 48
    }
  }

  .line-numbers {
    padding: 10px;
    text-align: right;
    float: left;

    a {
      font-family: $monospace_font;
      display: block;
49
      font-size: $code_font_size !important;
50
      line-height: 19px;
51
      white-space: nowrap;
52 53

      i {
54 55 56
        float: left;
        margin-top: 3px;
        margin-right: 5px;
57
        visibility: hidden;
58 59
      }

60 61 62 63
      &:hover,
      &:focus {
        outline: none;

64
        i {
65 66
          visibility: visible;
        }
67 68 69
      }
    }
  }
70
}