BigW Consortium Gitlab

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

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

    code {
22
      font-family: $monospace_font;
23 24
      white-space: pre;
      word-wrap: normal;
25 26 27 28 29
      padding: 0;

      .line {
        display: inline;
      }
30 31 32 33 34 35 36 37 38 39 40
    }
  }

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

    a {
      font-family: $monospace_font;
      display: block;
41
      font-size: $code_font_size !important;
42
      line-height: $code_line_height !important;
43
      white-space: nowrap;
44 45

      i {
46 47
        visibility: hidden;
        @extend .pull-left;
48 49 50
      }

      &:hover i {
51
        visibility: visible;
52 53 54
      }
    }
  }
55
}
56

57 58 59
.note-text .code {
  border: none;
  box-shadow: none;
60
  background: $background-color;
61
  padding: 1em;
62
  overflow-x: auto;
63

64 65 66 67 68
  code {
    font-family: $monospace_font;
    white-space: pre;
    word-wrap: normal;
    padding: 0;
69 70
  }
}