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

J
Jacob Schatz 已提交
19
  @media (min-width: $screen-md-min) {
20 21 22 23 24 25 26
    .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
.fade-enter,
J
Jacob Schatz 已提交
38
.fade-leave-to {
39
  opacity: 0;
J
Jacob Schatz 已提交
40 41
}

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

J
Jacob Schatz 已提交
46
.editable-mode {
47 48 49
  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
  .panel-right {
60
    display: inline-block;
61
    width: 80%;
62

63 64 65 66 67 68 69
    .monaco-editor.vs {
      .line-numbers {
        cursor: pointer;

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

72
      .cursor {
J
Jacob Schatz 已提交
73
        display: none !important;
74 75 76
      }
    }

77
    &.edit-mode {
J
Jacob Schatz 已提交
78 79 80
      .blob-viewer-container {
        overflow: hidden;
      }
81 82 83 84
      .monaco-editor.vs {
        .cursor {
          background: $black;
          border-color: $black;
J
Jacob Schatz 已提交
85
          display: block !important;
86 87 88
        }
      }
    }
J
Jacob Schatz 已提交
89

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

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

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

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

121 122 123 124 125
          a {
            width: 0;
          }
        }

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

        a {
L
Luke "Jared" Bennett 已提交
132
          @include str-truncated(100px);
133
          color: $black;
J
Jacob Schatz 已提交
134 135 136
          display: inline-block;
          width: 100px;
          text-align: center;
137
          vertical-align: middle;
J
Jacob Schatz 已提交
138 139 140 141

          &.close {
            width: auto;
            font-size: 15px;
142
            opacity: 1;
J
Jacob Schatz 已提交
143
            margin-right: -6px;
J
Jacob Schatz 已提交
144
          }
145
        }
J
Jacob Schatz 已提交
146

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

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

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

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

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

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

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

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

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

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

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

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

226
  #sidebar {
227

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

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

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

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

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

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

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

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

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

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

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

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

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

J
Jacob Schatz 已提交
306 307 308
}

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

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

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

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

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

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

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

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

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

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

J
Jacob Schatz 已提交
375 376 377 378 379 380 381
.render-error {
  min-height: calc(100vh - 63px);
  p {
    width: 100%;
  }
}

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

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

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

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

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

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