repo.scss 6.7 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 21 22 23 24 25 26 27 28 29 30
.modal.popup-dialog {
  display: block;


  @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 47 48 49
.commit-message {
  @include truncate(250px);
}

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 104
    #tabs {
      border-bottom: 1px solid $white-normal;
      padding-left: 0;
      margin-bottom: 0;
105
      display: block;
106
      white-space: nowrap;
107
      width: 100%;
J
Jacob Schatz 已提交
108 109
      overflow-y: hidden;
      overflow-x: auto;
110 111

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

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

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

133 134 135 136 137 138
        &.active {
          background: $white-light;
        }

        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;
        }
J
Jacob Schatz 已提交
164
      }
165 166 167
    }

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

    #binary-viewer {
177
      height: 80vh;
178
      overflow: auto;
179
      margin: 0;
J
Jacob Schatz 已提交
180

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

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

193 194 195 196
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
197 198
    }
  }
J
Jacob Schatz 已提交
199

200
  #commit-area {
J
Jacob Schatz 已提交
201
    background: $gray-light;
202
    padding: 20px;
203 204 205

    span.help-block {
      padding-top: 7px;
206
      margin-top: 0;
207
    }
208 209 210 211 212 213
  }

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

  #binary-viewer {
220 221
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
222
    }
223
  }
J
Jacob Schatz 已提交
224

225
  #sidebar {
226

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

C
Clement Ho 已提交
236 237 238 239
    table {
      margin-bottom: 0;
    }

240 241
    tr {
      animation: fadein 0.5s;
J
Jacob Schatz 已提交
242
      cursor: pointer;
J
Jacob Schatz 已提交
243

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

C
Clement Ho 已提交
251 252 253 254
        &:first-child {
          border-top-left-radius: 2px;
        }

255
        .title {
256 257 258 259 260 261 262 263 264 265 266
          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;
267 268 269
        }
      }

270 271
      .fa {
        margin-right: 5px;
272
      }
273 274 275 276

      td {
        white-space: nowrap;
      }
277
    }
278 279 280 281 282

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

285 286 287
    ul {
      list-style-type: none;
      padding: 0;
288

289 290 291
      li {
        border-bottom: 1px solid $border-gray-normal;
        padding: 10px 20px;
292

293 294 295
        a {
          color: $almost-black;
        }
J
Jacob Schatz 已提交
296

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

J
Jacob Schatz 已提交
305 306 307
}

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

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

J
Jacob Schatz 已提交
317
  &::before {
318 319 320 321 322 323
    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 已提交
324 325 326 327 328 329 330
    background-repeat: no-repeat;
    background-size: 800px 45px;
    content: ' ';
    display: block;
    height: 100%;
    position: relative;
  }
331

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

J
Jacob Schatz 已提交
340 341 342 343
  .line-of-code-1 {
    left: 0;
    top: 8px;
  }
344

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

J
Jacob Schatz 已提交
351 352 353 354
  .line-of-code-3 {
    left: 0;
    top: 23px;
  }
355

J
Jacob Schatz 已提交
356 357 358 359
  .line-of-code-4 {
    left: 0;
    top: 38px;
  }
360

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

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

374 375 376 377 378 379 380 381
@keyframes blockTextShine {
  0% {
    transform: translateX(-468px);
  }

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

384 385
@keyframes swipeRightAppear {
  0% {
386
    transform: scaleX(0.00);
387
  }
388

389 390 391 392 393 394 395 396
  100% {
    transform: scaleX(1.00);
  }
}

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
397
  }
398

399
  100% {
400
    transform: scaleX(0.00);
401 402
  }
}