files.scss 2.5 KB
Newer Older
1 2 3 4
/**
 * File content holder
 *
 */
5
.file-holder {
D
Dmitriy Zaporozhets 已提交
6
  border: none;
7
  border: 1px solid $border-color;
8

D
Douwe Maan 已提交
9 10 11 12
  &.readme-holder {
    border-bottom: 0;
  }

13 14 15 16
  table {
    @extend .table;
  }

17
  .file-title {
18 19 20
    position: relative;
    background: $background-color;
    border-bottom: 1px solid $border-color;
21 22
    margin: 0;
    text-align: left;
23
    padding: 10px $gl-padding;
24

25
    .file-actions {
26
      float: right;
27 28 29
      position: absolute;
      top: 5px;
      right: 15px;
30 31 32 33 34 35

      .btn {
        padding: 0px 10px;
        font-size: 13px;
        line-height: 28px;
      }
36 37
    }

S
skv-headless 已提交
38 39 40
    .left-options {
      margin-top: -3px;
    }
41
  }
42
  .file-content {
43
    background: #fff;
44 45

    &.image_file {
46
      background: #eee;
47
      text-align: center;
48
      img {
49
        padding: 100px;
50
        max-width: 50%;
51 52 53
      }
    }

D
Dmitriy Zaporozhets 已提交
54
    &.wiki {
55
      padding: $gl-padding;
56 57 58 59 60 61 62 63

      .highlight {
        margin-bottom: 9px;

        > pre {
          margin: 0;
        }
      }
D
Dmitriy Zaporozhets 已提交
64 65
    }

66 67 68 69
    &.blob_file {

    }

70 71 72 73 74 75
    &.blob-no-preview {
      background: #eee;
      text-shadow: 0 1px 2px #FFF;
      padding: 100px 0;
    }

76 77 78 79
    /**
     *  Blame file
     */
    &.blame {
80
      table {
81 82 83
        border: none;
        box-shadow: none;
        margin: 0;
84
      }
85 86 87 88
      tr {
        border-bottom: 1px solid #eee;
      }
      td {
89
        &:first-child {
90
          border-left: none;
91 92
        }
        &:last-child {
93
          border-right: none;
94
        }
95
      }
96 97 98 99 100 101 102 103 104 105 106 107 108 109
      img.avatar {
        border: 0 none;
        float: none;
        margin: 0;
        padding: 0;
      }
      td.blame-commit {
        background: #f9f9f9;
        min-width: 350px;

        .commit-author-link {
          color: #888;
        }
      }
110 111
      td.line-numbers {
        float: none;
112 113 114
        border-left: 1px solid #DDD;
      }
      td.lines {
115
        padding: 0;
116 117 118
        code {
          font-family: $monospace_font;
        }
119 120 121
        pre {
          margin: 0;
        }
122
      }
123 124 125
    }

    &.logs {
126
      background: #eee;
127 128 129 130
      max-height: 700px;
      overflow-y: auto;

      ol {
131
        margin-left: 40px;
132
        padding: 10px 0;
133
        border-left: 1px solid $border-color;
134
        margin-bottom: 0;
135 136
        background: white;
        li {
137
          color: #888;
138
          p {
139
            margin: 0;
140
            color: #333;
141
            line-height: 24px;
142 143 144 145
            padding-left: 10px;
          }

          &:hover {
146
            background: $hover;
147 148 149 150 151 152 153 154 155
          }
        }
      }
    }

    /**
     *  Code file
     */
    &.code {
R
Riyad Preukschas 已提交
156
      padding: 0;
157 158 159
    }
  }
}