repo.scss 6.9 KB
Newer Older
J
Jacob Schatz 已提交
1 2 3 4
[v-cloak] {
  display: none;
}

5 6 7
.fade-enter-active,
.fade-leave-active {
  transition: opacity .5s;
J
Jacob Schatz 已提交
8
}
9

J
Jacob Schatz 已提交
10 11 12 13 14 15
.monaco-loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
16
  background: $black-transparent;
J
Jacob Schatz 已提交
17 18
}

19 20
.modal.popup-dialog {
  display: block;
21
  background-color: $black-transparent;
22 23 24 25 26 27 28 29 30

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

L
Luke "Jared" Bennett 已提交
31 32
.project-refs-form,
.project-refs-target-form {
33
  display: inline-block;
34 35 36 37 38

  &.disabled {
    opacity: 0.5;
    pointer-events: none;
  }
39 40
}

41 42 43
.fade-enter,
.fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0;
J
Jacob Schatz 已提交
44 45
}

46
.commit-message {
J
Jacob Schatz 已提交
47
  @include str-truncated(250px);
48 49
}

50 51 52 53
#editable-mode {
  display: inline-block;
}

J
Jacob Schatz 已提交
54 55 56 57
.blob-viewer[data-type="rich"] {
  margin: 20px;
}

J
Jacob Schatz 已提交
58 59 60 61 62
.tree-content-holder {
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

63 64 65 66
  header {
    background: $gray-light;
    padding: 10px 15px;
  }
67

68
  .panel-right {
69
    display: inline-block;
70
    width: 80%;
71

72 73 74 75 76 77 78
    .monaco-editor.vs {
      .line-numbers {
        cursor: pointer;

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

81
      .cursor {
J
Jacob Schatz 已提交
82
        display: none !important;
83 84 85
      }
    }

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

96
    .blob-viewer-container {
97
      height: calc(100vh - 63px);
98 99 100
      overflow: auto;
    }

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

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

122 123 124 125
        &.remove {
          animation: swipeRightDissapear ease-in 0.1s;
          animation-iteration-count: 1;
          transform-origin: 0% 50%;
L
Luke "Jared" Bennett 已提交
126

127 128 129 130 131
          a {
            width: 0;
          }
        }

132 133
        &.active {
          background: $white-light;
C
Clement Ho 已提交
134
          border-bottom: none;
135 136 137 138
        }

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

          &.close {
            width: auto;
            font-size: 15px;
149
            opacity: 1;
J
Jacob Schatz 已提交
150
          }
151
        }
J
Jacob Schatz 已提交
152

153 154 155 156 157 158 159
        i.fa.fa-times,
        i.fa.fa-circle {
          float: right;
          margin-top: 3px;
          margin-left: 15px;
          color: $gray-darkest;
        }
160 161 162 163

        i.fa.fa-circle {
          color: $brand-success;
        }
C
Clement Ho 已提交
164 165 166 167 168 169 170

        &.tabs-divider {
          width: 100%;
          background-color: $white-light;
          border-right: none;
          border-top-right-radius: 2px;
        }
J
Jacob Schatz 已提交
171
      }
172 173 174
    }

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

    #binary-viewer {
184
      height: 80vh;
185
      overflow: auto;
186
      margin: 0;
J
Jacob Schatz 已提交
187

188 189 190
      .blob-viewer {
        padding-top: 20px;
        padding-left: 20px;
J
Jacob Schatz 已提交
191
      }
192 193 194 195

      .binary-unknown {
        text-align: center;
        padding-top: 100px;
L
Luke "Jared" Bennett 已提交
196
        background: $gray-light;
197 198
        height: 100%;
        font-size: 17px;
L
Luke "Jared" Bennett 已提交
199

200 201 202 203
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
204 205
    }
  }
J
Jacob Schatz 已提交
206

207
  #commit-area {
J
Jacob Schatz 已提交
208
    background: $gray-light;
209
    padding: 20px;
210 211 212

    span.help-block {
      padding-top: 7px;
213
      margin-top: 0;
214
    }
215 216 217 218 219 220
  }

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

  #binary-viewer {
227 228
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
229
    }
230
  }
J
Jacob Schatz 已提交
231

232
  #sidebar {
233

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

C
Clement Ho 已提交
243 244 245 246
    table {
      margin-bottom: 0;
    }

247 248
    tr {
      animation: fadein 0.5s;
J
Jacob Schatz 已提交
249
      cursor: pointer;
J
Jacob Schatz 已提交
250

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

C
Clement Ho 已提交
258 259 260 261
        &:first-child {
          border-top-left-radius: 2px;
        }

262
        .title {
263 264 265 266 267 268 269 270 271 272 273
          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;
274 275 276
        }
      }

277 278
      .fa {
        margin-right: 5px;
279
      }
280 281 282 283

      td {
        white-space: nowrap;
      }
284
    }
285 286 287 288 289

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

292 293 294
    ul {
      list-style-type: none;
      padding: 0;
295

296 297 298
      li {
        border-bottom: 1px solid $border-gray-normal;
        padding: 10px 20px;
299

300 301 302
        a {
          color: $almost-black;
        }
J
Jacob Schatz 已提交
303

304 305 306 307
        .fa {
          font-size: $code_font_size;
          margin-right: 5px;
        }
J
Jacob Schatz 已提交
308
      }
J
Jacob Schatz 已提交
309 310
    }
  }
311

J
Jacob Schatz 已提交
312 313 314
}

.animation-container {
315
  background: $repo-editor-grey;
J
Jacob Schatz 已提交
316 317 318 319 320 321 322
  height: 40px;
  overflow: hidden;
  position: relative;

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

J
Jacob Schatz 已提交
324
  &::before {
325 326 327 328 329 330
    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 已提交
331 332 333 334 335 336 337
    background-repeat: no-repeat;
    background-size: 800px 45px;
    content: ' ';
    display: block;
    height: 100%;
    position: relative;
  }
338

J
Jacob Schatz 已提交
339
  div {
340
    background: $white-light;
J
Jacob Schatz 已提交
341 342 343
    height: 6px;
    left: 0;
    position: absolute;
344
    right: 0;
J
Jacob Schatz 已提交
345
  }
346

J
Jacob Schatz 已提交
347 348 349 350
  .line-of-code-1 {
    left: 0;
    top: 8px;
  }
351

J
Jacob Schatz 已提交
352 353
  .line-of-code-2 {
    left: 150px;
354
    top: 0;
J
Jacob Schatz 已提交
355 356
    height: 10px;
  }
357

J
Jacob Schatz 已提交
358 359 360 361
  .line-of-code-3 {
    left: 0;
    top: 23px;
  }
362

J
Jacob Schatz 已提交
363 364 365 366
  .line-of-code-4 {
    left: 0;
    top: 38px;
  }
367

J
Jacob Schatz 已提交
368 369 370 371 372
  .line-of-code-5 {
    left: 200px;
    top: 28px;
    height: 10px;
  }
373

J
Jacob Schatz 已提交
374 375 376 377 378 379 380
  .line-of-code-6 {
    top: 14px;
    left: 230px;
    height: 10px;
  }
}

381 382 383 384 385 386 387 388
@keyframes blockTextShine {
  0% {
    transform: translateX(-468px);
  }

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

391 392
@keyframes swipeRightAppear {
  0% {
393
    transform: scaleX(0.00);
394
  }
395

396 397 398 399 400 401 402 403
  100% {
    transform: scaleX(1.00);
  }
}

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
404
  }
405

406
  100% {
407
    transform: scaleX(0.00);
408 409
  }
}