projects.scss 9.37 KB
Newer Older
Andrey's avatar
Andrey committed
1 2
.alert_holder {
  margin: -16px;
3

Andrey's avatar
Andrey committed
4 5 6 7
  .alert-link {
    font-weight: normal;
  }
}
8

9
.no-ssh-key-message, .project-limit-message {
Andrey's avatar
Andrey committed
10
  background-color: #f28d35;
11
  margin-bottom: 0;
Andrey's avatar
Andrey committed
12
}
13

14
.new_project,
Phil Hughes's avatar
Phil Hughes committed
15
.edit-project {
16 17
  fieldset.features {
    .control-label {
18
      font-weight: normal;
19 20
    }
  }
21
}
randx's avatar
randx committed
22

23
.project-home-panel {
24 25 26 27 28 29
  background: $white-light;
  text-align: left;
  padding: 24px 0;

  .container-fluid {
    position: relative;
30

31
    @media (min-width: $screen-lg-min) {
32 33 34 35 36 37 38
      .row {
        display: flex;
        -ms-flex-align: center;
        -webkit-align-items: center;
        -webkit-box-align: center;
      }
    }
39
  }
40 41 42 43

  .cover-controls {
    .project-settings-dropdown {
      margin-left: 10px;
44
      display: inline-block;
45 46 47 48

      .dropdown-menu {
        left: auto;
        width: auto;
49
        right: 0;
50 51
        max-width: 240px;
      }
52 53 54
    }
  }

55 56 57 58
  .cover-title {
    margin-bottom: 0;
  }

59 60 61 62 63
  .project-image-container {
    @include make-sm-column(1);
    max-width: 86px;
    min-width: 86px;
    padding-right: 0;
64

65 66
    @media (max-width: $screen-md-max) {
      padding-left: 0;
67
      margin: 0 0 10px;
68 69 70 71 72 73
      max-width: none;
      min-width: none;

      .avatar.s70 {
        margin: auto;
      }
74
    }
75
  }
76

77 78 79 80 81 82 83 84 85 86 87 88 89
  .project-info {
    @include make-sm-column(10);

    h1 {
      font-size: 24px;
      font-weight: normal;
      margin: 0;
    }

    .project-home-desc {
      p {
        margin: 0;
      }
90
    }
91
  }
92

93 94 95 96 97 98 99 100 101
  .identicon {
    float: left;
    @include border-radius(50%);
  }

  .avatar {
    float: none;
  }

102
  .notifications-btn {
103

104 105
    .fa-bell,
    .fa-spinner {
106 107 108 109 110 111
      margin-right: 6px;
    }

    .fa-angle-down {
      margin-left: 6px;
    }
112 113
  }

114
  .project-repo-buttons {
115
    font-size: 0;
116

117 118 119 120 121
    .btn {
      @include btn-gray;
      padding: 3px 10px;
      text-transform: none;
      background-color: $background-color;
Jacob Schatz's avatar
Jacob Schatz committed
122

123 124
      .fa {
        color: $layout-link-gray;
125 126
      }

127 128
      .fa-caret-down {
        margin-left: 3px;
129 130 131
      }
    }

132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
    form {
      margin-left: 10px;
    }

    .count-buttons {
      display: inline-block;
      vertical-align: top;
      margin-top: 16px;
    }

    .project-clone-holder {
      display: inline-block;
      margin-top: 16px;

      input {
        height: 29px;
      }
Jacob Schatz's avatar
Jacob Schatz committed
149
    }
150

Jacob Schatz's avatar
Jacob Schatz committed
151 152 153 154 155 156
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;

      .arrow {
Jacob Schatz's avatar
Jacob Schatz committed
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
        &:before {
          content: '';
          display: inline-block;
          position: absolute;
          width: 0;
          height: 0;
          border-color: transparent;
          border-style: solid;
          top: 50%;
          left: 0;
          margin-top: -6px;
          border-width: 7px 5px 7px 0;
          border-right-color: #dce0e5;
        }

        &:after {
          content: '';
          position: absolute;
          width: 0;
          height: 0;
          border-color: transparent;
          border-style: solid;
          top: 50%;
          left: 1px;
          margin-top: -9px;
          border-width: 10px 7px 10px 0;
183
          border-right-color: #fff;
Jacob Schatz's avatar
Jacob Schatz committed
184 185
        }
      }
186
      .count {
Jacob Schatz's avatar
Jacob Schatz committed
187
        @include btn-gray;
188
        display: inline-block;
Jacob Schatz's avatar
Jacob Schatz committed
189 190 191 192 193 194
        background: white;
        border-radius: 2px;
        border-width: 1px;
        border-style: solid;
        font-size: 13px;
        font-weight: 600;
195 196
        line-height: 13px;
        padding: $gl-vert-padding $gl-padding;
Jacob Schatz's avatar
Jacob Schatz committed
197
        letter-spacing: .4px;
198
        padding: 7px 14px;
Jacob Schatz's avatar
Jacob Schatz committed
199 200 201 202 203 204
        text-align: center;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        white-space: nowrap;
205
        margin: 0 10px 0 4px;
206

207 208 209 210
        a {
          color: inherit;
        }

211
        &:hover {
212
          background: #fff;
213
        }
214 215
      }
    }
216
  }
217 218 219 220 221 222

  .project-right-buttons {
    position: absolute;
    right: 16px;
    bottom: 0;

223
    @media (max-width: $screen-md-max) {
224
      top: 0;
225 226
    }

227 228 229 230 231
    .access-request-button {
      position: absolute;
      right: 0;
      bottom: 61px;

232
      @media (max-width: $screen-md-max) {
233 234 235 236
        position: relative;
        bottom: 0;
        margin-right: 10px;
      }
237 238 239 240 241 242 243 244 245 246 247
    }
  }

  @media (max-width: $screen-md-max) {
    text-align: center;

    .project-info,
    .project-image-container {
      width: 100%;
    }
  }
248 249
}

250 251
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
252
  margin-right: 12px;
253

254
  > a {
255
    margin: -1px;
256 257 258
  }
}

259
.project-visibility-level-holder {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
260 261
  .radio {
    margin-bottom: 10px;
262

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
263
    i {
264
      margin: 2px 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
265
      font-size: 20px;
266
    }
267

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
268
    .option-title {
269
      font-weight: normal;
270
      display: inline-block;
Annabel Dunstone's avatar
Annabel Dunstone committed
271
      color: $gl-gray-dark;
272
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
273 274

    .option-descr {
275 276
      margin-left: 29px;
      color: #54565b;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
277
    }
278 279 280
  }
}

281
.save-project-loader {
282 283 284
  margin-top: 50px;
  margin-bottom: 50px;
  color: #555;
285
}
286

287
.transfer-project .select2-container {
288 289
  min-width: 200px;
}
290

291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
.deploy-key-content {
  @media (min-width: $screen-sm-min) {
    float: left;

    &:last-child {
      float: right;
    }
  }
}

.deploy-key-projects {
  @media (min-width: $screen-sm-min) {
    line-height: 42px;
  }
}

a.deploy-project-label {
  padding: 5px;
  margin-right: 5px;
  color: $gl-gray;
  background-color: $row-hover;

  &:hover {
    color: $gl-link-color;
  }
316
}
317 318

.vs-public {
319
  color: $gl-primary;
320 321 322
}

.vs-internal {
323
  color: $gl-warning;
324 325 326
}

.vs-private {
327
  color: $gl-success;
328
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
329 330

.breadcrumb.repo-breadcrumb {
331
  padding: 0;
332
  background: transparent;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
333
  border: none;
334
  line-height: 36px;
335
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
336 337 338 339 340

  > li + li:before {
    padding: 0 3px;
    color: #999;
  }
341 342 343 344

  a {
    color: $gl-dark-link-color;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
345
}
346

347 348 349 350
.last-push-widget {
  margin-top: -1px;
}

351
.fork-namespaces {
352 353 354
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
355

356 357 358
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
359 360
    }

361 362 363
    img {
      @include border-radius(50%);
      max-width: 100px;
364 365 366
    }
  }
}
367

368 369
.project-import .btn {
  float: left;
370
  margin-bottom: 10px;
371 372
  margin-right: 10px;
}
373 374

.project-stats {
375
  margin-top: $gl-padding;
376
  margin-bottom: 0;
377
  padding: 0;
378 379
  background-color: $white-light;
  font-size: 0;
380

381
  ul.nav {
382
    display: inline-block;
383
  }
384

385
  .nav li {
386 387 388
    display: inline-block;
    margin: 16px 0;
    margin-right: 16px;
389
  }
390

391
  .nav > li > a {
Andrey's avatar
Andrey committed
392
    background-color: transparent;
393
    padding: 5px 10px;
394 395
    font-size: 15px;
    color: $notes-light-color;
396
  }
397

398
  li {
399
    display: inline;
400 401 402
  }

  a {
403
    float: left;
404 405
    font-size: 17px;
  }
406

407 408 409 410 411 412 413 414
  li.missing {
    border: 1px dashed $border-gray-light;
    border-radius: $border-radius-default;

    a {
      color: $notes-light-color;
      display: block;
    }
415 416

    &:hover {
417
      background-color: $gray-normal;
418 419
    }
  }
420 421 422 423

  &.row-content-block.second-block {
    margin-top: 0;
  }
424 425 426 427 428
}

pre.light-well {
  border-color: #f1f1f1;
}
429

430
.git-empty {
431
  margin: 0 7px 7px;
432

433 434 435
  h5 {
    color: #5c5d5e;
  }
436

437 438
  .light-well {
    @include border-radius (2px);
439

Andrey's avatar
Andrey committed
440
    color: #5b6169;
441 442
    font-size: 13px;
    line-height: 1.6em;
443 444 445
  }
}

446
.project-footer {
Andrey's avatar
Andrey committed
447
  margin-top: 20px;
448

449
  .btn-remove {
Andrey's avatar
Andrey committed
450
    @include btn-middle;
451
    @include btn-red;
452

453 454 455 456
    float: left !important;
  }
}

457 458 459
/*
 * Projects list rendered on dashboard and user page
 */
460

461 462 463 464
.projects-list {
  @include basic-list;

  .project-row {
Douwe Maan's avatar
Douwe Maan committed
465
    border-color: $table-border-color;
466 467 468

    &.no-description {
      .project {
469
        line-height: 40px;
470 471 472
      }
    }

473 474
    .project-full-name {
      @include str-truncated;
475 476
    }

477
    .controls {
478
      line-height: 40px;
479 480 481 482

      a:hover {
        text-decoration: none;
      }
483 484 485 486

      > span {
        margin-left: 10px;
      }
487
    }
488
  }
489 490 491 492 493

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
494 495
}

496 497
.panel .projects-list li {
  padding: 10px 15px;
498
  margin: 0;
499
}
500

Annabel Dunstone's avatar
Annabel Dunstone committed
501 502 503

.activity-filter-block {
  .controls {
504 505
    padding-bottom: 7px;
    margin-top: 8px;
Annabel Dunstone's avatar
Annabel Dunstone committed
506
    border-bottom: 1px solid $border-color;
507 508
  }
}
509

510 511 512 513 514 515 516 517 518 519
.project-last-commit {
  .ci-status {
    margin-right: 16px;
  }

  .commit-row-message {
    color: $gl-gray;
  }

  .commit_short_id {
520
    margin: 0 5px;
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
    color: $gl-link-color;
    font-weight: 600;
  }

  .commit-author-link {
    margin-left: 7px;
    text-decoration: none;
    .avatar {
      float: none;
      margin-right: 4px;
    }

    .commit-author-name {
      font-weight: 600;
    }
  }
}
538 539

.project-show-readme .readme-holder {
540
  padding: $gl-padding 0;
541
  border-top: 0;
542

543
  .edit-project-readme {
544
    z-index: 2;
545 546
    position: relative;
  }
547 548 549 550 551

  .wiki h1 {
    border-bottom: none;
    padding: 0;
  }
552
}
553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574

.git-clone-holder {
  width: 498px;

  .btn-clipboard {
    border: 1px solid $border-color;
    padding: 6px $gl-padding;
  }

  .project-home-dropdown + & {
    margin-right: 45px;
  }

  .clone-options {
    display: table-cell;
    a.btn {
      width: 100%;
    }
  }

  .form-control {
    @extend .monospace;
575
    background: #fff;
576 577 578 579 580 581
    font-size: 14px;
    margin-left: -1px;
    cursor: auto;
    width: 101%;
  }
}
582

583
.cannot-be-merged,
584
.cannot-be-merged:hover {
585
  color: #e62958;
586
  margin-top: 2px;
587
}
588 589

.private-forks-notice .private-fork-icon {
Rubén Dávila's avatar
Rubén Dávila committed
590
  i:nth-child(1) {
591
    color: #2aa056;
592
  }
Rubén Dávila's avatar
Rubén Dávila committed
593 594

  i:nth-child(2) {
595
    color: #fff;
596 597
  }
}
Phil Hughes's avatar
Phil Hughes committed
598 599 600 601 602 603 604 605 606 607 608

.protected-branches-list {
  a {
    color: $gl-gray;
    font-weight: 600;

    &:hover {
      color: $gl-link-color;
    }
  }
}
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625

.custom-notifications-form {
  .is-loading {
    .custom-notification-event-loading {
      display: inline-block;
    }
  }
}

.custom-notification-event-loading {
  display: none;
  margin-left: 5px;

  &.is-done {
    color: $gl-text-green;
  }
}
626 627 628 629 630 631

.project-refs-form {
  .dropdown-menu {
    width: 300px;
  }
}