projects.scss 9.65 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
.no-ssh-key-message, .project-limit-message {
Andrey's avatar
Andrey committed
9 10 11
  background-color: #f28d35;
  margin-bottom: 16px;
}
12 13
.new_project,
.edit_project {
14 15
  fieldset.features {
    .control-label {
16
      font-weight: normal;
17 18
    }
  }
19
}
randx's avatar
randx committed
20

21 22 23 24 25 26 27
.project-name-holder {
  .help-inline {
    vertical-align: top;
    padding: 7px;
  }
}

28
.project-home-panel {
29 30
  padding-bottom: 40px;
  border-bottom: 1px solid $border-color;
31 32 33 34 35 36 37

  .cover-controls {
    .project-settings-dropdown {
      margin-left: 10px;
    }
  }

38
  .project-identicon-holder {
39
    margin-bottom: 16px;
40

41 42 43
    .avatar, .identicon {
      margin: 0 auto;
      float: none;
44
    }
45

46
    .identicon {
47
      @include border-radius(50%);
48
    }
49
  }
50

51
  .project-home-dropdown {
52 53 54 55 56 57 58 59 60 61 62
    margin: 13px 0px 0;
  }

  .notifications-btn {
    .fa-bell {
      margin-right: 6px;
    }

    .fa-angle-down {
      margin-left: 6px;
    }
63 64
  }

65 66
  .project-home-desc {
    h1 {
67
      color: #313236;
68
      margin: 0;
69
      margin-bottom: 6px;
70 71
      font-size: 23px;
      font-weight: normal;
72 73
    }

74
    p {
75
      padding: 0 $gl-padding;
76
      color: #5c5d5e;
77
    }
78
  }
79

80
  .git-clone-holder {
81
    max-width: 498px;
82 83 84

    .form-control {
      background: #FFF;
85 86
      font-size: 14px;
      height: 42px;
Andrey's avatar
Andrey committed
87
      margin-left: -1px;
88
    }
89 90
  }

91
  .visibility-level-label {
92 93 94
    @extend .btn;
    @extend .btn-gray;

95
    color: $gray;
96
    cursor: default;
97

98 99 100
    i {
      color: inherit;
    }
101
  }
102

Jacob Schatz's avatar
Jacob Schatz committed
103
  .git-clone-holder {
104 105 106
    display: inline-table;
    position: relative;
  }
107

108
  .project-repo-buttons {
109 110
    margin-top: 12px;
    margin-bottom: 0px;
111

Jacob Schatz's avatar
Jacob Schatz committed
112 113
    .count-buttons {
      display: block;
Jacob Schatz's avatar
Jacob Schatz committed
114
      margin-bottom: 12px;
Jacob Schatz's avatar
Jacob Schatz committed
115 116
    }

117
    .btn {
118
      @include btn-gray;
Jacob Schatz's avatar
Jacob Schatz committed
119 120 121 122 123 124 125 126
      text-transform: none;
    }
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;

      .arrow {
Jacob Schatz's avatar
Jacob Schatz committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
        &: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;
          border-right-color: #FFF;
Jacob Schatz's avatar
Jacob Schatz committed
154 155
        }
      }
156
      .count {
Jacob Schatz's avatar
Jacob Schatz committed
157
        @include btn-gray;
158
        display: inline-block;
Jacob Schatz's avatar
Jacob Schatz committed
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
        background: white;
        border-radius: 2px;
        border-width: 1px;
        border-style: solid;
        font-size: 13px;
        font-weight: 600;
        line-height: 20px;
        padding: 11px 16px;
        letter-spacing: .4px;
        padding: 10px;
        text-align: center;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        white-space: nowrap;
        margin: 0 11px 0px 4px;
176 177 178 179

        &:hover {
          background: #FFF;
        }
180 181
      }
    }
182
  }
183 184
}

185 186
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
187
  margin-right: 12px;
188

189 190 191 192 193
  a {
    margin: -1px !important;
  }
}

194
.git-clone-holder {
195 196 197
  .project-home-dropdown + & {
    margin-right: 45px;
  }
198

Jacob Schatz's avatar
Jacob Schatz committed
199 200 201 202 203 204 205
  .clone-options {
    display: table-cell;
    a.btn {
      width: 100%;
    }
  }

206
  .form-control {
207
    cursor: auto;
208
    @extend .monospace;
209
    background: #FAFAFA;
Andrey's avatar
Andrey committed
210
    width: 101%;
211
  }
212 213

  .input-group-addon {
214
    background: #f7f8fa;
215 216 217 218

    &.git-protocols {
      padding: 0;
      border: none;
219

220 221
      .input-group-btn:last-child > .btn {
        @include border-radius-right(0);
222

223 224
        border-left: 1px solid #c6cacf;
        margin-left: -2px !important;
225 226
      }
    }
227
  }
randx's avatar
randx committed
228
}
229

230 231
.projects-search-form {
  .input-group .form-control {
Andrey's avatar
Andrey committed
232
    height: 42px;
233 234 235
  }
}

Andrey's avatar
Andrey committed
236
.input-group-btn {
237
  .btn {
238
    @include btn-gray;
Andrey's avatar
Andrey committed
239
    @include btn-middle;
240

Andrey's avatar
Andrey committed
241 242 243
    &:hover {
      outline: none;
    }
244

Andrey's avatar
Andrey committed
245 246 247
    &:focus {
      outline: none;
    }
248

Andrey's avatar
Andrey committed
249 250 251
    &:active {
      outline: none;
    }
252 253 254 255 256

    &.btn-clipboard {
      padding-left: 15px;
      padding-right: 15px;
    }
257
  }
258

Andrey's avatar
Andrey committed
259
  .active {
260
    @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
261

262 263 264
    border: 1px solid #c6cacf !important;
    background-color: #e4e7ed !important;
  }
265

Andrey's avatar
Andrey committed
266 267 268
  .btn-green {
    @include btn-green
  }
269

270 271 272 273
}

.split-repo-buttons {
  display: inline-table;
Andrey's avatar
Andrey committed
274
  margin: 0 12px 0 12px;
275

Andrey's avatar
Andrey committed
276
  .btn{
277
    @include btn-gray;
278
    @include btn-default;
279
  }
280

281
  .dropdown-toggle  {
Andrey's avatar
Andrey committed
282
    margin: -5px;
283
  }
284 285 286 287 288 289
}

#notification-form {
  margin-left: 5px;
}

Andrey's avatar
Andrey committed
290 291 292 293 294
.dropdown-new {
  margin-left: -5px;
}

.open > .dropdown-new.btn {
295
  @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
296

297 298
  border: 1px solid #c6cacf !important;
  background-color: #e4e7ed !important;
299
  text-transform: none;
Andrey's avatar
Andrey committed
300
  color: #313236 !important;
301
  font-size: 15px;
302 303 304 305 306
}

.dropdown-menu {
  @include box-shadow(rgba(76, 86, 103, 0.247059) 0px 0px 1px 0px, rgba(31, 37, 50, 0.317647) 0px 2px 18px 0px);
  @include border-radius (0px);
307

308 309 310 311
  border: none;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 100;
312

313 314 315
  li a {
    color: #5f697a;
    line-height: 30px;
316

317
    &:hover {
318
      background-color: #3084bb !important;
319 320
    }
  }
321

322
  i {
323 324 325 326
    margin-right: 8px;
  }
}

327
.project-visibility-level-holder {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
328 329
  .radio {
    margin-bottom: 10px;
330

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
331
    i {
332
      margin: 2px 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
333
      font-size: 20px;
334
    }
335

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
336
    .option-title {
337
      font-weight: normal;
338
      display: inline-block;
339
      color: #313236;
340
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
341 342

    .option-descr {
343 344
      margin-left: 29px;
      color: #54565b;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
345
    }
346 347 348
  }
}

349
.save-project-loader {
350 351 352
  margin-top: 50px;
  margin-bottom: 50px;
  color: #555;
353
}
354

355
.project_member_row form {
356 357
  margin: 0px;
}
358

359
.transfer-project .select2-container {
360 361
  min-width: 200px;
}
362

363 364 365
.deploy-project-label {
  margin: 1px;
}
366 367

.vs-public {
368
  color: $gl-primary;
369 370 371
}

.vs-internal {
372
  color: $gl-warning;
373 374 375
}

.vs-private {
376
  color: $gl-success;
377
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
378 379

.breadcrumb.repo-breadcrumb {
380
  padding: 0;
381
  line-height: 42px;
382
  background: transparent;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
383
  border: none;
384
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
385 386 387 388 389 390

  > li + li:before {
    padding: 0 3px;
    color: #999;
  }
}
391

392 393 394 395
.last-push-widget {
  margin-top: -1px;
}

Jacob Schatz's avatar
Jacob Schatz committed
396 397 398
.top-area {
  border-bottom: 1px solid #EEE;

399
  ul.nav-links {
Jacob Schatz's avatar
Jacob Schatz committed
400 401 402 403 404 405 406 407 408 409 410
    display: inline-block;
    width: 50%;
    margin-bottom: 0px;
    border-bottom: none;
  }

  .projects-search-form {
    width: 50%;
    display: inline-block;
    float: right;
    padding-top: 7px;
411
    text-align: right;
Jacob Schatz's avatar
Jacob Schatz committed
412 413 414 415 416 417

    .btn-green {
      margin-top: -2px;
      margin-left: 10px;
    }
  }
418 419 420 421 422 423

  @media (max-width: $screen-xs-max) {
    .projects-search-form {
      padding-top: 15px;
    }
  }
Jacob Schatz's avatar
Jacob Schatz committed
424 425
}

426
.fork-namespaces {
427 428 429
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
430

431 432 433
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
434 435
    }

436 437 438
    img {
      @include border-radius(50%);
      max-width: 100px;
439 440 441
    }
  }
}
442

Marin Jankovski's avatar
Marin Jankovski committed
443 444 445 446 447
table.table.protected-branches-list tr.no-border {
  th, td {
    border: 0;
  }
}
448 449 450 451 452

.project-import .btn {
  float: left;
  margin-right: 10px;
}
453 454 455

.project-stats {
  text-align: center;
456
  margin-top: $gl-padding;
457
  margin-bottom: 0;
458 459
  padding-top: 10px;
  padding-bottom: 4px;
460

461
  ul.nav {
462 463
    display:inline-block;
  }
464

465
  .nav li {
466 467
    display:inline;
  }
468

469
  .nav > li > a {
470
    @include btn-default;
471
    @include btn-gray;
472

Andrey's avatar
Andrey committed
473 474 475
    background-color: transparent;
    border: 1px solid #f7f8fa;
    margin-left: 12px;
476
  }
477

478 479 480 481 482 483 484 485
  li {
    display:inline;
  }

  a {
    float:left;
    font-size: 17px;
  }
486 487

  li.missing a {
488 489
    color: #5a6069;
    border: 1px dashed #dce0e5;
490 491

    &:hover {
492
      background-color: #f0f2f5;
493 494
    }
  }
495 496 497 498 499
}

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

.projects-search-form {
502
  padding: $gl-padding 0;
503
  padding-bottom: 0;
504
  margin-bottom: 0px;
Jacob Schatz's avatar
Jacob Schatz committed
505 506 507

  input {
    display: inline-block;
508
    width: calc(100% - 151px);
Jacob Schatz's avatar
Jacob Schatz committed
509 510 511 512 513 514
  }

  .btn {
    display: inline-block;
    width: 135px;
  }
515 516
}

517 518
.git-empty {
  margin: 0 7px 0 7px;
519

520 521 522
  h5 {
    color: #5c5d5e;
  }
523

524 525
  .light-well {
    @include border-radius (2px);
526

Andrey's avatar
Andrey committed
527
    color: #5b6169;
528 529
    font-size: 13px;
    line-height: 1.6em;
530 531 532
  }
}

533
.project-footer {
Andrey's avatar
Andrey committed
534
  margin-top: 20px;
535

536
  .btn-remove {
Andrey's avatar
Andrey committed
537
    @include btn-middle;
538
    @include btn-red;
539

540 541 542 543
    float: left !important;
  }
}

544 545 546
/*
 * Projects list rendered on dashboard and user page
 */
547

548 549 550 551
.projects-list {
  @include basic-list;

  .project-row {
552
    padding: $gl-padding 0;
Douwe Maan's avatar
Douwe Maan committed
553
    border-color: $table-border-color;
554 555 556

    &.no-description {
      .project {
557
        line-height: 44px;
558 559 560
      }
    }

561 562
    .project-full-name {
      @include str-truncated;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
563
      font-weight: 600;
564 565 566
      color: #4c4e54;
    }

567 568 569
    .project-controls {
      float: right;
      color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
570
      line-height: 45px;
571
      color: #7f8fa4;
572 573 574 575

      a:hover {
        text-decoration: none;
      }
576
    }
577

578
    .project-description {
579
      color: #7f8fa4;
580 581 582 583

      p {
        @include str-truncated;
        margin-bottom: 0;
584
        color: #7f8fa4;
585
      }
586 587
    }
  }
588 589 590 591 592

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
593 594
}

595 596
.panel .projects-list li {
  padding: 10px 15px;
597
  margin: 0;
598
}
599 600 601 602 603 604

.project-show-activity {
  .activity-filter-block {
    margin-top: -1px;
  }
}
605

606
.project-last-commit {
607 608
  margin: 0 7px;

609 610 611 612 613 614 615 616 617
  .ci-status {
    margin-right: 16px;
  }

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

  .commit_short_id {
618
    margin-right: 5px;
619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
    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;
    }
  }
}
636 637

.project-show-readme .readme-holder {
638
  padding: ($gl-padding + 7px);
639
  border-top: 0;
640

641 642 643 644
  .edit-project-readme {
    z-index: 100;
    position: relative;
  }
645
}