repo.scss 6.2 KB
Newer Older
1 2
.fade-enter-active,
.fade-leave-active {
J
Jacob Schatz 已提交
3
  transition: opacity $sidebar-transition-duration;
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;
}

46 47 48 49
@media (min-width: $screen-md-min) {
  .blob-viewer[data-type="rich"] {
    margin: 20px;
  }
J
Jacob Schatz 已提交
50 51
}

E
Eric Eastwood 已提交
52
.repository-view {
J
Jacob Schatz 已提交
53 54 55 56
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
  color: $almost-black;

E
Eric Eastwood 已提交
57 58 59 60 61 62 63 64 65 66
  .tree-content-holder {
    display: flex;
    max-height: 100vh;
    min-height: 300px;
  }

  .tree-content-holder-mini {
    height: 100vh;
  }

67
  .panel-right {
E
Eric Eastwood 已提交
68 69
    display: flex;
    flex-direction: column;
70
    width: 80%;
E
Eric Eastwood 已提交
71
    height: 100%;
72

73
    .monaco-editor.vs {
74 75
      .current-line {
        border: none;
76
        background: $well-light-border;
77 78
      }

79 80 81 82 83 84
      .line-numbers {
        cursor: pointer;

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

87
      .cursor {
J
Jacob Schatz 已提交
88
        display: none !important;
89 90 91
      }
    }

92 93 94 95 96 97 98
    .blob-no-preview {
      .vertical-center {
        justify-content: center;
        width: 100%;
      }
    }

99
    &.edit-mode {
J
Jacob Schatz 已提交
100 101 102
      .blob-viewer-container {
        overflow: hidden;
      }
M
Mike Greiling 已提交
103

104 105 106 107
      .monaco-editor.vs {
        .cursor {
          background: $black;
          border-color: $black;
J
Jacob Schatz 已提交
108
          display: block !important;
109 110 111
        }
      }
    }
J
Jacob Schatz 已提交
112

113
    .blob-viewer-container {
E
Eric Eastwood 已提交
114
      flex: 1;
115
      overflow: auto;
J
Jacob Schatz 已提交
116 117

      > div,
118
      .file-content:not(.wiki) {
J
Jacob Schatz 已提交
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
        display: flex;
      }

      > div,
      .file-content,
      .blob-viewer,
      .line-number,
      .blob-content,
      .code {
        min-height: 100%;
        width: 100%;
      }

      .line-numbers {
        min-width: 44px;
      }

      .blob-content {
        flex: 1;
        overflow-x: auto;
      }
140 141
    }

142
    #tabs {
E
Eric Eastwood 已提交
143 144 145
      flex-shrink: 0;
      display: flex;
      width: 100%;
146 147
      padding-left: 0;
      margin-bottom: 0;
148
      white-space: nowrap;
J
Jacob Schatz 已提交
149 150
      overflow-y: hidden;
      overflow-x: auto;
151 152

      li {
153 154 155
        animation: swipeRightAppear ease-in 0.1s;
        animation-iteration-count: 1;
        transform-origin: 0% 50%;
156 157 158
        list-style-type: none;
        background: $gray-normal;
        display: inline-block;
159
        padding: 10px 18px;
C
Clement Ho 已提交
160 161
        border-right: 1px solid $white-dark;
        border-bottom: 1px solid $white-dark;
162
        white-space: nowrap;
J
Jacob Schatz 已提交
163
        cursor: pointer;
J
Jacob Schatz 已提交
164

165 166 167 168
        &.remove {
          animation: swipeRightDissapear ease-in 0.1s;
          animation-iteration-count: 1;
          transform-origin: 0% 50%;
L
Luke "Jared" Bennett 已提交
169

170 171 172 173 174
          a {
            width: 0;
          }
        }

175 176
        &.active {
          background: $white-light;
C
Clement Ho 已提交
177
          border-bottom: none;
178 179 180
        }

        a {
L
Luke "Jared" Bennett 已提交
181
          @include str-truncated(100px);
182
          color: $black;
J
Jacob Schatz 已提交
183 184
          width: 100px;
          text-align: center;
185
          vertical-align: middle;
J
Jacob Schatz 已提交
186
          text-decoration: none;
J
Jacob Schatz 已提交
187 188 189 190

          &.close {
            width: auto;
            font-size: 15px;
191
            opacity: 1;
J
Jacob Schatz 已提交
192
            margin-right: -6px;
J
Jacob Schatz 已提交
193
          }
194
        }
J
Jacob Schatz 已提交
195

J
Jacob Schatz 已提交
196 197
        .close-icon,
        .unsaved-icon {
198 199 200 201 202
          float: right;
          margin-top: 3px;
          margin-left: 15px;
          color: $gray-darkest;
        }
203

J
Jacob Schatz 已提交
204
        .unsaved-icon {
205 206
          color: $brand-success;
        }
C
Clement Ho 已提交
207 208 209 210 211 212 213

        &.tabs-divider {
          width: 100%;
          background-color: $white-light;
          border-right: none;
          border-top-right-radius: 2px;
        }
J
Jacob Schatz 已提交
214
      }
215 216 217
    }

    #repo-file-buttons {
218
      background-color: $white-light;
219
      border-bottom: 1px solid $white-normal;
220
      padding: 5px 10px;
J
Jacob Schatz 已提交
221 222
      position: relative;
      border-top: 1px solid $white-normal;
223 224 225
    }

    #binary-viewer {
226
      height: 80vh;
227
      overflow: auto;
228
      margin: 0;
J
Jacob Schatz 已提交
229

230 231 232
      .blob-viewer {
        padding-top: 20px;
        padding-left: 20px;
J
Jacob Schatz 已提交
233
      }
234 235 236 237

      .binary-unknown {
        text-align: center;
        padding-top: 100px;
L
Luke "Jared" Bennett 已提交
238
        background: $gray-light;
239 240
        height: 100%;
        font-size: 17px;
L
Luke "Jared" Bennett 已提交
241

242 243 244 245
        span {
          display: block;
        }
      }
J
Jacob Schatz 已提交
246 247
    }
  }
J
Jacob Schatz 已提交
248

249
  #commit-area {
J
Jacob Schatz 已提交
250
    background: $gray-light;
251
    padding: 20px;
252

J
Jacob Schatz 已提交
253
    .help-block {
254
      padding-top: 7px;
255
      margin-top: 0;
256
    }
257 258 259 260 261 262
  }

  #view-toggler {
    height: 41px;
    position: relative;
    display: block;
J
Jacob Schatz 已提交
263
    border-bottom: 1px solid $white-normal;
264 265
    background: $white-light;
    margin-top: -5px;
J
Jacob Schatz 已提交
266
  }
267 268

  #binary-viewer {
269 270
    img {
      max-width: 100%;
J
Jacob Schatz 已提交
271
    }
272
  }
J
Jacob Schatz 已提交
273

274
  #sidebar {
E
Eric Eastwood 已提交
275 276
    flex: 1;
    height: 100%;
277

278
    &.sidebar-mini {
279
      width: 20%;
280 281 282
      border-right: 1px solid $white-normal;
      overflow: auto;
    }
J
Jacob Schatz 已提交
283

C
Clement Ho 已提交
284 285 286 287
    table {
      margin-bottom: 0;
    }

288 289
    tr {
      animation: fadein 0.5s;
J
Jacob Schatz 已提交
290
      cursor: pointer;
J
Jacob Schatz 已提交
291

292 293 294 295
      &.repo-file-options td {
        padding: 0;
        border-top: none;
        background: $gray-light;
296
        width: 100%;
297
        display: inline-block;
J
Jacob Schatz 已提交
298

C
Clement Ho 已提交
299 300 301 302
        &:first-child {
          border-top-left-radius: 2px;
        }

303
        .title {
304 305 306
          display: inline-block;
          font-size: 10px;
          text-transform: uppercase;
307
          font-weight: $gl-font-weight-bold;
308 309 310 311 312 313
          color: $gray-darkest;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          vertical-align: middle;
          padding: 2px 16px;
314 315 316
        }
      }

J
Jacob Schatz 已提交
317
      .file-icon {
318
        margin-right: 5px;
319
      }
320 321 322 323

      td {
        white-space: nowrap;
      }
324
    }
325 326

    a {
J
Jacob Schatz 已提交
327
      @include str-truncated(250px);
328 329 330
      color: $almost-black;
      display: inline-block;
      vertical-align: middle;
331
    }
J
Jacob Schatz 已提交
332 333 334
  }
}

J
Jacob Schatz 已提交
335
.render-error {
J
Jacob Schatz 已提交
336
  min-height: calc(100vh - 62px);
M
Mike Greiling 已提交
337

J
Jacob Schatz 已提交
338 339 340 341 342
  p {
    width: 100%;
  }
}

343 344
@keyframes swipeRightAppear {
  0% {
345
    transform: scaleX(0.00);
346
  }
347

348 349 350 351 352 353 354 355
  100% {
    transform: scaleX(1.00);
  }
}

@keyframes swipeRightDissapear {
  0% {
    transform: scaleX(1.00);
356
  }
357

358
  100% {
359
    transform: scaleX(0.00);
360 361
  }
}