projects.scss 9.63 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
14
15
.new_project,
.edit_project {
  fieldset.features {
    .control-label {
16
      font-weight: normal;
17
18
19
20
21
22
23
24
25
26
27
28
    }
  }
}

.project-name-holder {
  .help-inline {
    vertical-align: top;
    padding: 7px;
  }
}

.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
  }

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

74
    p {
75
      padding: 0 $gl-padding;
76
      color: #5c5d5e;
Phil Hughes's avatar
Phil Hughes committed
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
101
    i {
      color: inherit;
    }
  }
102

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

Phil Hughes's avatar
Phil Hughes committed
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
      text-transform: none;
    }
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;
125

Jacob Schatz's avatar
Jacob Schatz committed
126
      .arrow {
Jacob Schatz's avatar
Jacob Schatz committed
127
128
129
130
131
132
133
134
135
136
137
138
139
140
        &: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;
        }
Jacob Schatz's avatar
Jacob Schatz committed
141

Jacob Schatz's avatar
Jacob Schatz committed
142
143
144
145
146
147
148
149
150
151
152
153
        &: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
      }
    }
Phil Hughes's avatar
Phil Hughes committed
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
195
196
197
198
.git-clone-holder {
  .project-home-dropdown + & {
    margin-right: 45px;
  }

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

206
207
208
209
  .form-control {
    cursor: auto;
    @extend .monospace;
    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
225
        border-left: 1px solid #c6cacf;
        margin-left: -2px !important;
      }
226
    }
227
  }
228
229
}

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

.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
328
329
330
331
.project-visibility-level-holder {
  .radio {
    margin-bottom: 10px;

    i {
332
      margin: 2px 0;
333
334
335
336
      font-size: 20px;
    }

    .option-title {
337
      font-weight: normal;
338
      display: inline-block;
339
      color: #313236;
340
341
342
    }

    .option-descr {
343
344
      margin-left: 29px;
      color: #54565b;
345
346
347
348
349
350
351
352
353
354
    }
  }
}

.save-project-loader {
  margin-top: 50px;
  margin-bottom: 50px;
  color: #555;
}

355
.project_member_row form {
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
  margin: 0px;
}

.transfer-project .select2-container {
  min-width: 200px;
}

.deploy-project-label {
  margin: 1px;
}

.vs-public {
  color: $gl-primary;
}

.vs-internal {
  color: $gl-warning;
}

.vs-private {
  color: $gl-success;
}

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

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

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
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;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
457
  margin-bottom: 0;
458
459
  padding-top: 10px;
  padding-bottom: 4px;
460

461
  ul.nav {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
462
463
    display:inline-block;
  }
464

465
  .nav li {
466
467
    display:inline;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
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
.projects-list {
  @include basic-list;
550

551
  .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
607
608
609
610
611
612
613
614
615

.project-last-commit {
  .ci-status {
    margin-right: 16px;
  }

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

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

635
.project-show-readme .readme-holder {
636
  padding: $gl-padding 0;
637
  border-top: 0;
638

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