repo.scss 6.8 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
  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;
}

J
Jacob Schatz 已提交
46 47 48 49
.blob-viewer[data-type="rich"] {
  margin: 20px;
}

M
Mike Greiling 已提交
50
.repository-view.tree-content-holder {
J
Jacob Schatz 已提交
51 52 53 54
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

55
  .panel-right {
56
    display: inline-block;
57
    width: 80%;
58

59 60 61 62 63 64 65
    .monaco-editor.vs {
      .line-numbers {
        cursor: pointer;

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

68
      .cursor {
J
Jacob Schatz 已提交
69
        display: none !important;
70 71 72
      }
    }

73
    &.edit-mode {
J
Jacob Schatz 已提交
74 75 76
      .blob-viewer-container {
        overflow: hidden;
      }
M
Mike Greiling 已提交
77

78 79 80 81
      .monaco-editor.vs {
        .cursor {
          background: $black;
          border-color: $black;
J
Jacob Schatz 已提交
82
          display: block !important;
83 84 85
        }
      }
    }
J
Jacob Schatz 已提交
86

87
    .blob-viewer-container {
88
      height: calc(100vh - 63px);
89 90 91
      overflow: auto;
    }

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

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

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

118 119 120 121 122
          a {
            width: 0;
          }
        }

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

        a {
L
Luke "Jared" Bennett 已提交
129
          @include str-truncated(100px);
130
          color: $black;
J
Jacob Schatz 已提交
131 132
          width: 100px;
          text-align: center;
133
          vertical-align: middle;
J
Jacob Schatz 已提交
134 135 136 137

          &.close {
            width: auto;
            font-size: 15px;
138
            opacity: 1;
J
Jacob Schatz 已提交
139
            margin-right: -6px;
J
Jacob Schatz 已提交
140
          }
141
        }
J
Jacob Schatz 已提交
142

143 144 145 146 147 148 149
        i.fa.fa-times,
        i.fa.fa-circle {
          float: right;
          margin-top: 3px;
          margin-left: 15px;
          color: $gray-darkest;
        }
150 151 152 153

        i.fa.fa-circle {
          color: $brand-success;
        }
C
Clement Ho 已提交
154 155 156 157 158 159 160

        &.tabs-divider {
          width: 100%;
          background-color: $white-light;
          border-right: none;
          border-top-right-radius: 2px;
        }
J
Jacob Schatz 已提交
161
      }
162 163 164
    }

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

    #binary-viewer {
174
      height: 80vh;
175
      overflow: auto;
176
      margin: 0;
J
Jacob Schatz 已提交
177

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

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

190 191 192 193
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
194 195
    }
  }
J
Jacob Schatz 已提交
196

197
  #commit-area {
J
Jacob Schatz 已提交
198
    background: $gray-light;
199
    padding: 20px;
200 201 202

    span.help-block {
      padding-top: 7px;
203
      margin-top: 0;
204
    }
205 206 207 208 209 210
  }

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

  #binary-viewer {
217 218
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
219
    }
220
  }
J
Jacob Schatz 已提交
221

222
  #sidebar {
223

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

C
Clement Ho 已提交
233 234 235 236
    table {
      margin-bottom: 0;
    }

237 238
    tr {
      animation: fadein 0.5s;
J
Jacob Schatz 已提交
239
      cursor: pointer;
J
Jacob Schatz 已提交
240

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

C
Clement Ho 已提交
248 249 250 251
        &:first-child {
          border-top-left-radius: 2px;
        }

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

267 268
      .fa {
        margin-right: 5px;
269
      }
270 271 272 273

      td {
        white-space: nowrap;
      }
274
    }
275 276 277 278 279

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

282 283 284
    ul {
      list-style-type: none;
      padding: 0;
285

286 287 288
      li {
        border-bottom: 1px solid $border-gray-normal;
        padding: 10px 20px;
289

290 291 292
        a {
          color: $almost-black;
        }
J
Jacob Schatz 已提交
293

294
        .fa {
B
Bryce Johnson 已提交
295
          font-size: 12px;
296 297
          margin-right: 5px;
        }
J
Jacob Schatz 已提交
298
      }
J
Jacob Schatz 已提交
299 300
    }
  }
301

J
Jacob Schatz 已提交
302 303 304
}

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

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

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

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

J
Jacob Schatz 已提交
337 338 339 340
  .line-of-code-1 {
    left: 0;
    top: 8px;
  }
341

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

J
Jacob Schatz 已提交
348 349 350 351
  .line-of-code-3 {
    left: 0;
    top: 23px;
  }
352

J
Jacob Schatz 已提交
353 354 355 356
  .line-of-code-4 {
    left: 0;
    top: 38px;
  }
357

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

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

J
Jacob Schatz 已提交
371 372
.render-error {
  min-height: calc(100vh - 63px);
M
Mike Greiling 已提交
373

J
Jacob Schatz 已提交
374 375 376 377 378
  p {
    width: 100%;
  }
}

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

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

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

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

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
402
  }
403

404
  100% {
405
    transform: scaleX(0.00);
406 407
  }
}