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

Andrey's avatar
Andrey committed
4 5 6 7 8 9 10 11
  .alert-link {
    font-weight: normal;
  }
}
.no-ssh-key-message {
  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
.project-edit-content {
  padding: 7px;
}

25 26 27 28 29 30 31
.project-name-holder {
  .help-inline {
    vertical-align: top;
    padding: 7px;
  }
}

32
.project-home-panel {
33
  text-align: center;
34 35 36
  background: #f7f8fa;
  margin: -$gl-padding;
  padding: $gl-padding;
37
  padding: 44px 0 17px 0;
38

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

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

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

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

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

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

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

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

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

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

92
  .visibility-level-label {
93
    color: $gray;
94 95 96
    i {
      color: inherit;
    }
97
  }
98

99 100 101 102 103 104
  .input-group {
    display: inline-table;
    position: relative;
    top: 17px;
    margin-bottom: 44px;
  }
105

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

110
    .btn {
111
      @include btn-gray;
112

113 114 115 116
      .count {
        display: inline-block;
      }
    }
117
  }
118 119
}

120 121
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
122
  margin-right: 12px;
123

124 125 126 127 128
  a {
    margin: -1px !important;
  }
}

129
.git-clone-holder {
130 131 132
  .project-home-dropdown + & {
    margin-right: 45px;
  }
133

134
  .form-control {
135
    cursor: auto;
136
    @extend .monospace;
137
    background: #FAFAFA;
Andrey's avatar
Andrey committed
138
    width: 101%;
139
  }
140 141

  .input-group-addon {
142
    background: #f7f8fa;
143 144 145 146

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

148 149
      .input-group-btn:last-child > .btn {
        @include border-radius-right(0);
150

151 152
        border-left: 1px solid #c6cacf;
        margin-left: -2px !important;
153 154
      }
    }
155
  }
randx's avatar
randx committed
156
}
157

158
.projects-search-form {
159

160
  .input-group .form-control {
Andrey's avatar
Andrey committed
161
    height: 42px;
162 163 164
  }
}

Andrey's avatar
Andrey committed
165
.input-group-btn {
166
  .btn {
167
    @include btn-gray;
Andrey's avatar
Andrey committed
168
    @include btn-middle;
169

Andrey's avatar
Andrey committed
170 171 172
    &:hover {
      outline: none;
    }
173

Andrey's avatar
Andrey committed
174 175 176
    &:focus {
      outline: none;
    }
177

Andrey's avatar
Andrey committed
178 179 180
    &:active {
      outline: none;
    }
181
  }
182

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

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

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

194 195 196 197
}

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

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

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

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

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

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

221 222 223
  border: 1px solid #c6cacf !important;
  background-color: #e4e7ed !important;
  text-transform: uppercase;
Andrey's avatar
Andrey committed
224
  color: #313236 !important;
225 226 227 228 229 230 231
  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);
232

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

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

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

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

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

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

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

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

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

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

  padding-left: 8px;

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

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

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

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

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

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

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

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

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

.fork-namespaces {
340 341 342
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
343

344 345 346
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
347 348
    }

349 350 351
    img {
      @include border-radius(50%);
      max-width: 100px;
352 353 354
    }
  }
}
355

Marin Jankovski's avatar
Marin Jankovski committed
356 357 358 359 360
table.table.protected-branches-list tr.no-border {
  th, td {
    border: 0;
  }
}
361 362 363 364 365

.project-import .btn {
  float: left;
  margin-right: 10px;
}
366 367 368

.project-stats {
  text-align: center;
369
  margin-top: 15px;
370
  margin-bottom: 0;
371 372
  padding-top: 10px;
  padding-bottom: 4px;
373 374 375 376

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

378 379 380
  .nav-pills li {
    display:inline;
  }
381

382
  .nav > li > a {
383
    @include btn-default;
384
    @include btn-gray;
385

Andrey's avatar
Andrey committed
386 387 388
    background-color: transparent;
    border: 1px solid #f7f8fa;
    margin-left: 12px;
389
  }
390

391 392 393 394 395 396 397 398
  li {
    display:inline;
  }

  a {
    float:left;
    font-size: 17px;
  }
399 400

  li.missing a {
401 402
    color: #5a6069;
    border: 1px dashed #dce0e5;
403 404

    &:hover {
405
      background-color: #f0f2f5;
406 407
    }
  }
408 409 410 411 412
}

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

.projects-search-form {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
415
  margin: -$gl-padding;
416
  background-color: #f8fafc;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
417
  padding: $gl-padding;
418
  margin-bottom: 0px;
419 420
  border-top: 1px solid #e7e9ed;
  border-bottom: 1px solid #e7e9ed;
421 422
}

423 424
.git-empty {
  margin: 0 7px 0 7px;
425

426 427 428
  h5 {
    color: #5c5d5e;
  }
429

430 431
  .light-well {
    @include border-radius (2px);
432

Andrey's avatar
Andrey committed
433
    color: #5b6169;
434 435
    font-size: 13px;
    line-height: 1.6em;
436 437 438
  }
}

439
.project-footer {
Andrey's avatar
Andrey committed
440
  margin-top: 20px;
441

442
  .btn-remove {
Andrey's avatar
Andrey committed
443
    @include btn-middle;
444
    @include btn-red;
445

446 447 448 449
    float: left !important;
  }
}

450 451 452
/*
 * Projects list rendered on dashboard and user page
 */
453

454 455 456 457
.projects-list {
  @include basic-list;

  .project-row {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
458
    padding: $gl-padding;
Douwe Maan's avatar
Douwe Maan committed
459
    border-color: $table-border-color;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
460 461
    margin-left: -$gl-padding;
    margin-right: -$gl-padding;
462 463 464

    &.no-description {
      .project {
465
        line-height: 44px;
466 467 468
      }
    }

469 470
    .project-full-name {
      @include str-truncated;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
471
      font-weight: 600;
472 473 474
      color: #4c4e54;
    }

475 476 477
    .project-controls {
      float: right;
      color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
478
      line-height: 45px;
479
      color: #7f8fa4;
480 481 482 483

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

486
    .project-description {
487
      color: #7f8fa4;
488 489 490 491

      p {
        @include str-truncated;
        margin-bottom: 0;
492
        color: #7f8fa4;
493
      }
494 495
    }
  }
496 497 498 499 500

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
501 502
}

503 504
.panel .projects-list li {
  padding: 10px 15px;
505
  margin: 0;
506
}
507 508 509 510 511 512

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

514
.project-last-commit {
515 516
  margin: 0 7px;

517 518 519 520 521 522 523 524 525
  .ci-status {
    margin-right: 16px;
  }

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

  .commit_short_id {
526
    margin-right: 5px;
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543
    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;
    }
  }
}
544 545

.project-show-readme .readme-holder {
546 547
  margin-left: -$gl-padding;
  margin-right: -$gl-padding;
548
  padding: ($gl-padding + 7px);
549
  border-top: 0;
550

551 552 553 554
  .edit-project-readme {
    z-index: 100;
    position: relative;
  }
Thirumal S's avatar
Thirumal S committed
555
}