repo.scss 6.9 KB
Newer Older
1 2 3
.fade-enter-active,
.fade-leave-active {
  transition: opacity .5s;
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 19 20 21 22 23 24 25 26

  @media (min-width: 992px) {
    .modal-dialog {
      width: 600px;
      margin: 30px auto;
    }
  }
}

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

  &.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
35 36
}

37 38 39
.fade-enter,
.fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0;
J
Jacob Schatz 已提交
40 41
}

42
.commit-message {
J
Jacob Schatz 已提交
43
  @include str-truncated(250px);
44 45
}

46 47 48 49
#editable-mode {
  display: inline-block;
}

J
Jacob Schatz 已提交
50 51 52 53
.blob-viewer[data-type="rich"] {
  margin: 20px;
}

J
Jacob Schatz 已提交
54 55 56 57 58
.tree-content-holder {
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

59 60 61 62
  header {
    background: $gray-light;
    padding: 10px 15px;
  }
63

64
  .panel-right {
65
    display: inline-block;
66
    width: 80%;
67

68 69 70 71 72 73 74
    .monaco-editor.vs {
      .line-numbers {
        cursor: pointer;

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

77
      .cursor {
J
Jacob Schatz 已提交
78
        display: none !important;
79 80 81
      }
    }

82 83 84 85 86
    &.edit-mode {
      .monaco-editor.vs {
        .cursor {
          background: $black;
          border-color: $black;
J
Jacob Schatz 已提交
87
          display: block !important;
88 89 90
        }
      }
    }
J
Jacob Schatz 已提交
91

92
    .blob-viewer-container {
93
      height: calc(100vh - 63px);
94 95 96
      overflow: auto;
    }

97 98 99
    #tabs {
      padding-left: 0;
      margin-bottom: 0;
C
Clement Ho 已提交
100
      display: flex;
101
      white-space: nowrap;
102
      width: 100%;
J
Jacob Schatz 已提交
103 104
      overflow-y: hidden;
      overflow-x: auto;
105 106

      li {
107 108 109
        animation: swipeRightAppear ease-in 0.1s;
        animation-iteration-count: 1;
        transform-origin: 0% 50%;
110 111 112
        list-style-type: none;
        background: $gray-normal;
        display: inline-block;
113
        padding: 10px 18px;
C
Clement Ho 已提交
114 115
        border-right: 1px solid $white-dark;
        border-bottom: 1px solid $white-dark;
116
        white-space: nowrap;
J
Jacob Schatz 已提交
117

118 119 120 121
        &.remove {
          animation: swipeRightDissapear ease-in 0.1s;
          animation-iteration-count: 1;
          transform-origin: 0% 50%;
L
Luke "Jared" Bennett 已提交
122

123 124 125 126 127
          a {
            width: 0;
          }
        }

128 129
        &.active {
          background: $white-light;
C
Clement Ho 已提交
130
          border-bottom: none;
131 132 133 134
        }

        a {
          color: $black;
J
Jacob Schatz 已提交
135 136 137 138 139
          display: inline-block;
          width: 100px;
          text-align: center;
          overflow: hidden;
          text-overflow: ellipsis;
140
          vertical-align: middle;
J
Jacob Schatz 已提交
141 142 143 144

          &.close {
            width: auto;
            font-size: 15px;
145
            opacity: 1;
J
Jacob Schatz 已提交
146
          }
147
        }
J
Jacob Schatz 已提交
148

149 150 151 152 153 154 155
        i.fa.fa-times,
        i.fa.fa-circle {
          float: right;
          margin-top: 3px;
          margin-left: 15px;
          color: $gray-darkest;
        }
156 157 158 159

        i.fa.fa-circle {
          color: $brand-success;
        }
C
Clement Ho 已提交
160 161 162 163 164 165 166

        &.tabs-divider {
          width: 100%;
          background-color: $white-light;
          border-right: none;
          border-top-right-radius: 2px;
        }
J
Jacob Schatz 已提交
167
      }
168 169 170
    }

    #repo-file-buttons {
171
      background-color: $white-light;
172
      border-bottom: 1px solid $white-normal;
173
      padding: 5px 10px;
J
Jacob Schatz 已提交
174 175
      position: relative;
      border-top: 1px solid $white-normal;
J
Jacob Schatz 已提交
176
      margin-top: -5px;
177 178 179
    }

    #binary-viewer {
180
      height: 80vh;
181
      overflow: auto;
182
      margin: 0;
J
Jacob Schatz 已提交
183

184 185 186
      .blob-viewer {
        padding-top: 20px;
        padding-left: 20px;
J
Jacob Schatz 已提交
187
      }
188 189 190 191

      .binary-unknown {
        text-align: center;
        padding-top: 100px;
L
Luke "Jared" Bennett 已提交
192
        background: $gray-light;
193 194
        height: 100%;
        font-size: 17px;
L
Luke "Jared" Bennett 已提交
195

196 197 198 199
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
200 201
    }
  }
J
Jacob Schatz 已提交
202

203
  #commit-area {
J
Jacob Schatz 已提交
204
    background: $gray-light;
205
    padding: 20px;
206 207 208

    span.help-block {
      padding-top: 7px;
209
      margin-top: 0;
210
    }
211 212 213 214 215 216
  }

  #view-toggler {
    height: 41px;
    position: relative;
    display: block;
J
Jacob Schatz 已提交
217
    border-bottom: 1px solid $white-normal;
218 219
    background: $white-light;
    margin-top: -5px;
J
Jacob Schatz 已提交
220
  }
221 222

  #binary-viewer {
223 224
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
225
    }
226
  }
J
Jacob Schatz 已提交
227

228
  #sidebar {
229

230 231 232
    &.sidebar-mini {
      display: inline-block;
      vertical-align: top;
233
      width: 20%;
234
      border-right: 1px solid $white-normal;
C
Clement Ho 已提交
235
      height: calc(100vh + 20px);
236 237
      overflow: auto;
    }
J
Jacob Schatz 已提交
238

C
Clement Ho 已提交
239 240 241 242
    table {
      margin-bottom: 0;
    }

243 244
    tr {
      animation: fadein 0.5s;
J
Jacob Schatz 已提交
245
      cursor: pointer;
J
Jacob Schatz 已提交
246

247 248 249 250
      &.repo-file-options td {
        padding: 0;
        border-top: none;
        background: $gray-light;
251
        width: 100%;
252
        display: inline-block;
J
Jacob Schatz 已提交
253

C
Clement Ho 已提交
254 255 256 257
        &:first-child {
          border-top-left-radius: 2px;
        }

258
        .title {
259 260 261 262 263 264 265 266 267 268 269
          display: inline-block;
          font-size: 10px;
          text-transform: uppercase;
          font-weight: bold;
          color: $gray-darkest;
          width: 185px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          vertical-align: middle;
          padding: 2px 16px;
270 271 272
        }
      }

273 274
      .fa {
        margin-right: 5px;
275
      }
276 277 278 279

      td {
        white-space: nowrap;
      }
280
    }
281 282 283 284 285

    a {
      color: $almost-black;
      display: inline-block;
      vertical-align: middle;
286
    }
J
Jacob Schatz 已提交
287

288 289 290
    ul {
      list-style-type: none;
      padding: 0;
291

292 293 294
      li {
        border-bottom: 1px solid $border-gray-normal;
        padding: 10px 20px;
295

296 297 298
        a {
          color: $almost-black;
        }
J
Jacob Schatz 已提交
299

300 301 302 303
        .fa {
          font-size: $code_font_size;
          margin-right: 5px;
        }
J
Jacob Schatz 已提交
304
      }
J
Jacob Schatz 已提交
305 306
    }
  }
307

J
Jacob Schatz 已提交
308 309 310
}

.animation-container {
311
  background: $repo-editor-grey;
J
Jacob Schatz 已提交
312 313 314 315 316 317 318
  height: 40px;
  overflow: hidden;
  position: relative;

  &.animation-container-small {
    height: 12px;
  }
319

J
Jacob Schatz 已提交
320
  &::before {
321 322 323 324 325 326
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: blockTextShine;
    animation-timing-function: linear;
    background-image: $repo-editor-linear-gradient;
J
Jacob Schatz 已提交
327 328 329 330 331 332 333
    background-repeat: no-repeat;
    background-size: 800px 45px;
    content: ' ';
    display: block;
    height: 100%;
    position: relative;
  }
334

J
Jacob Schatz 已提交
335
  div {
336
    background: $white-light;
J
Jacob Schatz 已提交
337 338 339
    height: 6px;
    left: 0;
    position: absolute;
340
    right: 0;
J
Jacob Schatz 已提交
341
  }
342

J
Jacob Schatz 已提交
343 344 345 346
  .line-of-code-1 {
    left: 0;
    top: 8px;
  }
347

J
Jacob Schatz 已提交
348 349
  .line-of-code-2 {
    left: 150px;
350
    top: 0;
J
Jacob Schatz 已提交
351 352
    height: 10px;
  }
353

J
Jacob Schatz 已提交
354 355 356 357
  .line-of-code-3 {
    left: 0;
    top: 23px;
  }
358

J
Jacob Schatz 已提交
359 360 361 362
  .line-of-code-4 {
    left: 0;
    top: 38px;
  }
363

J
Jacob Schatz 已提交
364 365 366 367 368
  .line-of-code-5 {
    left: 200px;
    top: 28px;
    height: 10px;
  }
369

J
Jacob Schatz 已提交
370 371 372 373 374 375 376
  .line-of-code-6 {
    top: 14px;
    left: 230px;
    height: 10px;
  }
}

377 378 379 380 381 382 383 384
@keyframes blockTextShine {
  0% {
    transform: translateX(-468px);
  }

  100% {
    transform: translateX(468px);
  }
J
Jacob Schatz 已提交
385 386
}

387 388
@keyframes swipeRightAppear {
  0% {
389
    transform: scaleX(0.00);
390
  }
391

392 393 394 395 396 397 398 399
  100% {
    transform: scaleX(1.00);
  }
}

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
400
  }
401

402
  100% {
403
    transform: scaleX(0.00);
404 405
  }
}