repo.scss 5.5 KB
Newer Older
1 2
.fade-enter-active,
.fade-leave-active {
J
Jacob Schatz 已提交
3
  transition: opacity $sidebar-transition-duration;
J
Jacob Schatz 已提交
4
}
5

J
Jacob Schatz 已提交
6 7 8 9 10 11
.monaco-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
12
  background: $black-transparent;
J
Jacob Schatz 已提交
13 14
}

15 16
.modal.popup-dialog {
  display: block;
17
  background-color: $black-transparent;
18
  z-index: 2100;
19

J
Jacob Schatz 已提交
20
  @media (min-width: $screen-md-min) {
21 22 23 24 25 26 27
    .modal-dialog {
      width: 600px;
      margin: 30px auto;
    }
  }
}

L
Luke "Jared" Bennett 已提交
28 29
.project-refs-form,
.project-refs-target-form {
30 31 32
  display: inline-block;
}

33
.fade-enter,
J
Jacob Schatz 已提交
34
.fade-leave-to {
35
  opacity: 0;
J
Jacob Schatz 已提交
36 37
}

38
.commit-message {
J
Jacob Schatz 已提交
39
  @include str-truncated(250px);
40 41
}

J
Jacob Schatz 已提交
42
.editable-mode {
43 44 45
  display: inline-block;
}

46 47 48 49
@media (min-width: $screen-md-min) {
  .blob-viewer[data-type="rich"] {
    margin: 20px;
  }
J
Jacob Schatz 已提交
50 51
}

E
Eric Eastwood 已提交
52
.repository-view {
J
Jacob Schatz 已提交
53 54 55 56
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

F
Fatih Acet 已提交
57 58 59 60
  .code.white pre .hll {
    background-color: $well-light-border !important;
  }

E
Eric Eastwood 已提交
61 62 63 64 65 66 67 68 69
  .tree-content-holder {
    display: flex;
    min-height: 300px;
  }

  .tree-content-holder-mini {
    height: 100vh;
  }

70
  .panel-right {
E
Eric Eastwood 已提交
71 72
    display: flex;
    flex-direction: column;
73
    width: 80%;
E
Eric Eastwood 已提交
74
    height: 100%;
75

76
    .monaco-editor.vs {
77 78
      .current-line {
        border: none;
79
        background: $well-light-border;
80 81
      }

82 83 84 85 86 87
      .line-numbers {
        cursor: pointer;

        &:hover {
          text-decoration: underline;
        }
J
Jacob Schatz 已提交
88
      }
J
Jacob Schatz 已提交
89

90
      .cursor {
J
Jacob Schatz 已提交
91
        display: none !important;
92 93 94
      }
    }

95 96 97 98 99 100 101
    .blob-no-preview {
      .vertical-center {
        justify-content: center;
        width: 100%;
      }
    }

102
    &.edit-mode {
J
Jacob Schatz 已提交
103 104 105
      .blob-viewer-container {
        overflow: hidden;
      }
M
Mike Greiling 已提交
106

107 108 109 110
      .monaco-editor.vs {
        .cursor {
          background: $black;
          border-color: $black;
J
Jacob Schatz 已提交
111
          display: block !important;
112 113 114
        }
      }
    }
J
Jacob Schatz 已提交
115

116
    .blob-viewer-container {
E
Eric Eastwood 已提交
117
      flex: 1;
118
      overflow: auto;
J
Jacob Schatz 已提交
119 120

      > div,
121
      .file-content:not(.wiki) {
J
Jacob Schatz 已提交
122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
        display: flex;
      }

      > div,
      .file-content,
      .blob-viewer,
      .line-number,
      .blob-content,
      .code {
        min-height: 100%;
        width: 100%;
      }

      .line-numbers {
        min-width: 44px;
      }

      .blob-content {
        flex: 1;
        overflow-x: auto;
      }
143 144
    }

145
    #tabs {
E
Eric Eastwood 已提交
146 147 148
      flex-shrink: 0;
      display: flex;
      width: 100%;
149 150
      padding-left: 0;
      margin-bottom: 0;
151
      white-space: nowrap;
J
Jacob Schatz 已提交
152 153
      overflow-y: hidden;
      overflow-x: auto;
154 155

      li {
P
Phil Hughes 已提交
156
        position: relative;
157
        background: $gray-normal;
158
        padding: #{$gl-padding / 2} $gl-padding;
C
Clement Ho 已提交
159 160
        border-right: 1px solid $white-dark;
        border-bottom: 1px solid $white-dark;
J
Jacob Schatz 已提交
161
        cursor: pointer;
J
Jacob Schatz 已提交
162

163 164
        &.active {
          background: $white-light;
C
Clement Ho 已提交
165
          border-bottom: none;
166 167 168
        }

        a {
L
Luke "Jared" Bennett 已提交
169
          @include str-truncated(100px);
P
Phil Hughes 已提交
170
          color: $gl-text-color;
171
          vertical-align: middle;
J
Jacob Schatz 已提交
172
          text-decoration: none;
173
          margin-right: 12px;
P
Phil Hughes 已提交
174
        }
J
Jacob Schatz 已提交
175

P
Phil Hughes 已提交
176 177 178 179 180 181 182 183 184
        .close-btn {
          position: absolute;
          right: 8px;
          top: 50%;
          padding: 0;
          background: none;
          border: 0;
          font-size: $gl-font-size;
          transform: translateY(-50%);
185
        }
J
Jacob Schatz 已提交
186

187 188 189 190
        .close-icon:hover {
          color: $hint-color;
        }

J
Jacob Schatz 已提交
191 192
        .close-icon,
        .unsaved-icon {
193 194
          color: $gray-darkest;
        }
195

J
Jacob Schatz 已提交
196
        .unsaved-icon {
197 198
          color: $brand-success;
        }
C
Clement Ho 已提交
199 200 201 202 203 204 205

        &.tabs-divider {
          width: 100%;
          background-color: $white-light;
          border-right: none;
          border-top-right-radius: 2px;
        }
J
Jacob Schatz 已提交
206
      }
207 208 209
    }

    #repo-file-buttons {
210 211
      background-color: $white-light;
      padding: 5px 10px;
J
Jacob Schatz 已提交
212
      border-top: 1px solid $white-normal;
213 214 215
    }

    #binary-viewer {
216
      height: 80vh;
217
      overflow: auto;
218
      margin: 0;
J
Jacob Schatz 已提交
219

220 221 222
      .blob-viewer {
        padding-top: 20px;
        padding-left: 20px;
J
Jacob Schatz 已提交
223
      }
224 225 226 227

      .binary-unknown {
        text-align: center;
        padding-top: 100px;
L
Luke "Jared" Bennett 已提交
228
        background: $gray-light;
229 230
        height: 100%;
        font-size: 17px;
L
Luke "Jared" Bennett 已提交
231

232 233 234 235
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
236 237
    }
  }
J
Jacob Schatz 已提交
238

239
  #commit-area {
J
Jacob Schatz 已提交
240
    background: $gray-light;
241
    padding: 20px;
242

J
Jacob Schatz 已提交
243
    .help-block {
244
      padding-top: 7px;
245
      margin-top: 0;
246
    }
247 248 249 250 251 252
  }

  #view-toggler {
    height: 41px;
    position: relative;
    display: block;
J
Jacob Schatz 已提交
253
    border-bottom: 1px solid $white-normal;
254 255
    background: $white-light;
    margin-top: -5px;
J
Jacob Schatz 已提交
256
  }
257 258

  #binary-viewer {
259 260
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
261
    }
262
  }
J
Jacob Schatz 已提交
263

264
  #sidebar {
E
Eric Eastwood 已提交
265 266
    flex: 1;
    height: 100%;
267

268
    &.sidebar-mini {
269
      width: 20%;
270 271 272
      border-right: 1px solid $white-normal;
      overflow: auto;
    }
J
Jacob Schatz 已提交
273

P
Phil Hughes 已提交
274
    .table {
C
Clement Ho 已提交
275 276 277
      margin-bottom: 0;
    }

278
    tr {
P
Phil Hughes 已提交
279 280
      .repo-file-options {
        padding: 2px 16px;
281
        width: 100%;
P
Phil Hughes 已提交
282
      }
C
Clement Ho 已提交
283

P
Phil Hughes 已提交
284 285 286 287 288 289 290
      .title {
        font-size: 10px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: middle;
291 292
      }

J
Jacob Schatz 已提交
293
      .file-icon {
294
        margin-right: 5px;
295
      }
296 297 298 299

      td {
        white-space: nowrap;
      }
300
    }
301

P
Phil Hughes 已提交
302 303 304 305
    .file {
      cursor: pointer;
    }

306
    a {
J
Jacob Schatz 已提交
307
      @include str-truncated(250px);
308
      color: $almost-black;
309
    }
J
Jacob Schatz 已提交
310 311 312
  }
}

J
Jacob Schatz 已提交
313
.render-error {
J
Jacob Schatz 已提交
314
  min-height: calc(100vh - 62px);
M
Mike Greiling 已提交
315

J
Jacob Schatz 已提交
316 317 318 319 320
  p {
    width: 100%;
  }
}

321 322
@keyframes swipeRightAppear {
  0% {
323
    transform: scaleX(0.00);
324
  }
325

326 327 328 329 330 331 332 333
  100% {
    transform: scaleX(1.00);
  }
}

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
334
  }
335

336
  100% {
337
    transform: scaleX(0.00);
338 339
  }
}