projects.scss 8.43 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
  .project-identicon-holder {
30
    margin-bottom: 16px;
31

32 33 34
    .avatar, .identicon {
      margin: 0 auto;
      float: none;
35
    }
36

37
    .identicon {
38
      @include border-radius(50%);
39
    }
40
  }
41

42
  .project-home-dropdown {
43 44 45 46 47 48 49 50 51 52 53
    margin: 13px 0px 0;
  }

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

    .fa-angle-down {
      margin-left: 6px;
    }
54 55
  }

56 57
  .project-home-desc {
    h1 {
58
      color: #313236;
59
      margin: 0;
60
      margin-bottom: 6px;
61 62
      font-size: 23px;
      font-weight: normal;
63 64
    }

65
    p {
66
      padding: 0 $gl-padding;
67
      color: #5c5d5e;
68
    }
69
  }
70

71
  .git-clone-holder {
72
    max-width: 498px;
73 74 75

    .form-control {
      background: #FFF;
76 77
      font-size: 14px;
      height: 42px;
Andrey's avatar
Andrey committed
78
      margin-left: -1px;
79
    }
80 81
  }

82
  .visibility-level-label {
83 84 85
    @extend .btn;
    @extend .btn-gray;

86
    color: $gray;
87
    cursor: default;
88

89 90 91
    i {
      color: inherit;
    }
92
  }
93

94 95 96 97 98
  .input-group {
    display: inline-table;
    position: relative;
    top: 17px;
  }
99

100
  .project-repo-buttons {
101 102
    margin-top: 12px;
    margin-bottom: 0px;
103

104
    .btn {
105
      @include btn-gray;
106

107 108 109 110
      .count {
        display: inline-block;
      }
    }
111
  }
112 113
}

114 115
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
116
  margin-right: 12px;
117

118 119 120 121 122
  a {
    margin: -1px !important;
  }
}

123
.git-clone-holder {
124 125 126
  .project-home-dropdown + & {
    margin-right: 45px;
  }
127

128
  .form-control {
129
    cursor: auto;
130
    @extend .monospace;
131
    background: #FAFAFA;
Andrey's avatar
Andrey committed
132
    width: 101%;
133
  }
134 135

  .input-group-addon {
136
    background: #f7f8fa;
137 138 139 140

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

142 143
      .input-group-btn:last-child > .btn {
        @include border-radius-right(0);
144

145 146
        border-left: 1px solid #c6cacf;
        margin-left: -2px !important;
147 148
      }
    }
149
  }
randx's avatar
randx committed
150
}
151

152
.projects-search-form {
153

154
  .input-group .form-control {
Andrey's avatar
Andrey committed
155
    height: 42px;
156 157 158
  }
}

Andrey's avatar
Andrey committed
159
.input-group-btn {
160
  .btn {
161
    @include btn-gray;
Andrey's avatar
Andrey committed
162
    @include btn-middle;
163

Andrey's avatar
Andrey committed
164 165 166
    &:hover {
      outline: none;
    }
167

Andrey's avatar
Andrey committed
168 169 170
    &:focus {
      outline: none;
    }
171

Andrey's avatar
Andrey committed
172 173 174
    &:active {
      outline: none;
    }
175 176 177 178 179

    &.btn-clipboard {
      padding-left: 15px;
      padding-right: 15px;
    }
180
  }
181

Andrey's avatar
Andrey committed
182
  .active {
183
    @include box-shadow(inset 0 0 4px rgba(0, 0, 0, 0.12));
184

185 186 187
    border: 1px solid #c6cacf !important;
    background-color: #e4e7ed !important;
  }
188

Andrey's avatar
Andrey committed
189 190 191
  .btn-green {
    @include btn-green
  }
192

193 194 195 196
}

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

Andrey's avatar
Andrey committed
199
  .btn{
200
    @include btn-gray;
201
    @include btn-default;
202
  }
203

204
  .dropdown-toggle  {
Andrey's avatar
Andrey committed
205
    margin: -5px;
206
  }
207 208 209 210 211 212
}

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

Andrey's avatar
Andrey committed
213 214 215 216 217
.dropdown-new {
  margin-left: -5px;
}

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

220 221 222
  border: 1px solid #c6cacf !important;
  background-color: #e4e7ed !important;
  text-transform: uppercase;
Andrey's avatar
Andrey committed
223
  color: #313236 !important;
224 225 226 227 228 229 230
  font-size: 13px;
  font-weight: 600;
}

.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);
231

232 233 234 235
  border: none;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 100;
236

237 238 239
  li a {
    color: #5f697a;
    line-height: 30px;
240

241
    &:hover {
242
      background-color: #3084bb !important;
243 244
    }
  }
245

246
  i {
247 248 249 250
    margin-right: 8px;
  }
}

251
.project-visibility-level-holder {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
252 253
  .radio {
    margin-bottom: 10px;
254

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
255
    i {
256
      margin: 2px 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
257
      font-size: 20px;
258
    }
259

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
260
    .option-title {
261
      font-weight: normal;
262
      display: inline-block;
263
      color: #313236;
264
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
265 266

    .option-descr {
267 268
      margin-left: 29px;
      color: #54565b;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
269
    }
270 271 272
  }
}

273
.save-project-loader {
274 275 276
  margin-top: 50px;
  margin-bottom: 50px;
  color: #555;
277
}
278 279 280 281 282 283 284 285

ul.nav.nav-projects-tabs {
  @extend .nav-tabs;

  padding-left: 8px;

  li {
    a {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
286
      padding: 6px 25px;
287 288 289 290 291 292 293 294 295 296 297 298 299
      margin-top: 2px;
      border-color: #DDD;
      background-color: #EEE;
      text-shadow: 0 1px 1px white;
      color: #555;
    }
    &.active {
      a {
        font-weight: bold;
      }
    }
  }
}
300

301
.project_member_row form {
302 303
  margin: 0px;
}
304

305
.transfer-project .select2-container {
306 307
  min-width: 200px;
}
308

309 310 311
.deploy-project-label {
  margin: 1px;
}
312 313

.vs-public {
314
  color: $gl-primary;
315 316 317
}

.vs-internal {
318
  color: $gl-warning;
319 320 321
}

.vs-private {
322
  color: $gl-success;
323
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
324 325

.breadcrumb.repo-breadcrumb {
326
  padding: 0;
327
  line-height: 42px;
328
  background: transparent;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
329
  border: none;
330
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
331 332 333 334 335 336

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

Jacob Schatz's avatar
Jacob Schatz committed
338 339
.top-area {
  border-bottom: 1px solid #EEE;
Andriy Dyadyura's avatar
Andriy Dyadyura committed
340 341
  margin: 0 -16px;
  padding: 0 $gl-padding;
Jacob Schatz's avatar
Jacob Schatz committed
342

343
  ul.left-top-menu {
Jacob Schatz's avatar
Jacob Schatz committed
344 345 346 347 348 349 350 351 352 353 354
    display: inline-block;
    width: 50%;
    margin-bottom: 0px;
    border-bottom: none;
  }

  .projects-search-form {
    width: 50%;
    display: inline-block;
    float: right;
    padding-top: 7px;
355
    text-align: right;
Jacob Schatz's avatar
Jacob Schatz committed
356 357 358 359 360 361

    .btn-green {
      margin-top: -2px;
      margin-left: 10px;
    }
  }
362 363 364 365 366 367

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

370
.fork-namespaces {
371 372 373
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
374

375 376 377
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
378 379
    }

380 381 382
    img {
      @include border-radius(50%);
      max-width: 100px;
383 384 385
    }
  }
}
386

Marin Jankovski's avatar
Marin Jankovski committed
387 388 389 390 391
table.table.protected-branches-list tr.no-border {
  th, td {
    border: 0;
  }
}
392 393 394 395 396

.project-import .btn {
  float: left;
  margin-right: 10px;
}
397 398 399

.project-stats {
  text-align: center;
400
  margin-top: $gl-padding;
401
  margin-bottom: 0;
402 403
  padding-top: 10px;
  padding-bottom: 4px;
404 405 406 407

  ul.nav-pills {
    display:inline-block;
  }
408

409 410 411
  .nav-pills li {
    display:inline;
  }
412

413
  .nav > li > a {
414
    @include btn-default;
415
    @include btn-gray;
416

Andrey's avatar
Andrey committed
417 418 419
    background-color: transparent;
    border: 1px solid #f7f8fa;
    margin-left: 12px;
420
  }
421

422 423 424 425 426 427 428 429
  li {
    display:inline;
  }

  a {
    float:left;
    font-size: 17px;
  }
430 431

  li.missing a {
432 433
    color: #5a6069;
    border: 1px dashed #dce0e5;
434 435

    &:hover {
436
      background-color: #f0f2f5;
437 438
    }
  }
439 440 441 442 443
}

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

.projects-search-form {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
446 447
  margin: -$gl-padding;
  padding: $gl-padding;
448
  margin-bottom: 0px;
Jacob Schatz's avatar
Jacob Schatz committed
449 450 451

  input {
    display: inline-block;
452
    width: calc(100% - 151px);
Jacob Schatz's avatar
Jacob Schatz committed
453 454 455 456 457 458
  }

  .btn {
    display: inline-block;
    width: 135px;
  }
459 460
}

461 462
.git-empty {
  margin: 0 7px 0 7px;
463

464 465 466
  h5 {
    color: #5c5d5e;
  }
467

468 469
  .light-well {
    @include border-radius (2px);
470

Andrey's avatar
Andrey committed
471
    color: #5b6169;
472 473
    font-size: 13px;
    line-height: 1.6em;
474 475 476
  }
}

477
.project-footer {
Andrey's avatar
Andrey committed
478
  margin-top: 20px;
479

480
  .btn-remove {
Andrey's avatar
Andrey committed
481
    @include btn-middle;
482
    @include btn-red;
483

484 485 486 487
    float: left !important;
  }
}

488 489 490
/*
 * Projects list rendered on dashboard and user page
 */
491

492 493 494 495
.projects-list {
  @include basic-list;

  .project-row {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
496
    padding: $gl-padding;
Douwe Maan's avatar
Douwe Maan committed
497
    border-color: $table-border-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
498 499
    margin-left: -$gl-padding;
    margin-right: -$gl-padding;
500 501 502

    &.no-description {
      .project {
503
        line-height: 44px;
504 505 506
      }
    }

507 508
    .project-full-name {
      @include str-truncated;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
509
      font-weight: 600;
510 511 512
      color: #4c4e54;
    }

513 514 515
    .project-controls {
      float: right;
      color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
516
      line-height: 45px;
517
      color: #7f8fa4;
518 519 520 521

      a:hover {
        text-decoration: none;
      }
522
    }
523

524
    .project-description {
525
      color: #7f8fa4;
526 527 528 529

      p {
        @include str-truncated;
        margin-bottom: 0;
530
        color: #7f8fa4;
531
      }
532 533
    }
  }
534 535 536 537 538

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
539 540
}

541 542
.panel .projects-list li {
  padding: 10px 15px;
543
  margin: 0;
544
}
545 546 547 548 549 550

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

552
.project-last-commit {
553 554
  margin: 0 7px;

555 556 557 558 559 560 561 562 563
  .ci-status {
    margin-right: 16px;
  }

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

  .commit_short_id {
564
    margin-right: 5px;
565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581
    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;
    }
  }
}
582 583

.project-show-readme .readme-holder {
584 585
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;
586
  padding: ($gl-padding + 7px);
587
  border-top: 0;
588

589 590 591 592
  .edit-project-readme {
    z-index: 100;
    position: relative;
  }
593
}