projects.scss 7.94 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
    margin: 13px 0px 0;
  }

  .notifications-btn {
Jacob Schatz's avatar
Jacob Schatz committed
56
    margin-top: -28px;
57

58
59
60
61
62
63
64
    .fa-bell {
      margin-right: 6px;
    }

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

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

76
77
78
79
80
81
82
    .visibility-icon {
      display: inline-block;
      margin-left: 5px;
      font-size: 18px;
      color: $gray;
    }

83
    p {
84
      padding: 0 $gl-padding;
85
      color: #5c5d5e;
Phil Hughes's avatar
Phil Hughes committed
86
    }
87
  }
88

Phil Hughes's avatar
Phil Hughes committed
89
  .project-repo-buttons {
Andriy Dyadyura's avatar
update  
Andriy Dyadyura committed
90
    margin-top: 20px;
91
    margin-bottom: 0px;
92

Jacob Schatz's avatar
Jacob Schatz committed
93
94
    .count-buttons {
      display: block;
Andriy Dyadyura's avatar
update  
Andriy Dyadyura committed
95
      margin-bottom: 20px;
Jacob Schatz's avatar
Jacob Schatz committed
96
97
    }

98
99
100
101
102
103
104
105
106
107
108
    .clone-row {
      .split-repo-buttons,
      .project-clone-holder {
        display: inline-block;
      }

      .split-repo-buttons {
        margin: 0 12px;
      }
    }

109
    .btn {
110
      @include btn-gray;
Jacob Schatz's avatar
Jacob Schatz committed
111
112
      text-transform: none;
    }
113

Jacob Schatz's avatar
Jacob Schatz committed
114
115
116
117
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;
118

Jacob Schatz's avatar
Jacob Schatz committed
119
      .arrow {
Jacob Schatz's avatar
Jacob Schatz committed
120
121
122
123
124
125
126
127
128
129
130
131
132
133
        &: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
134

Jacob Schatz's avatar
Jacob Schatz committed
135
136
137
138
139
140
141
142
143
144
145
146
        &: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
147
148
        }
      }
149
      .count {
Jacob Schatz's avatar
Jacob Schatz committed
150
        @include btn-gray;
151
        display: inline-block;
Jacob Schatz's avatar
Jacob Schatz committed
152
153
154
155
156
157
        background: white;
        border-radius: 2px;
        border-width: 1px;
        border-style: solid;
        font-size: 13px;
        font-weight: 600;
158
159
        line-height: 13px;
        padding: $gl-vert-padding $gl-padding;
Jacob Schatz's avatar
Jacob Schatz committed
160
        letter-spacing: .4px;
Andriy Dyadyura's avatar
update  
Andriy Dyadyura committed
161
        padding: 10px 14px;
Jacob Schatz's avatar
Jacob Schatz committed
162
163
164
165
166
167
168
        text-align: center;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        white-space: nowrap;
        margin: 0 11px 0px 4px;
169
170
171
172

        &:hover {
          background: #FFF;
        }
173
174
      }
    }
Phil Hughes's avatar
Phil Hughes committed
175
  }
176
177
}

178
179
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
180
  margin-right: 12px;
181

182
183
184
185
186
187
188
189
  a {
    margin: -1px !important;
  }
}

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

191
192
193
194
  border: none;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 100;
195

196
197
198
  li a {
    color: #5f697a;
    line-height: 30px;
199

200
    &:hover {
201
      background-color: #3084bb !important;
202
203
    }
  }
204

205
  i {
206
207
208
209
    margin-right: 8px;
  }
}

210
211
212
213
214
.project-visibility-level-holder {
  .radio {
    margin-bottom: 10px;

    i {
215
      margin: 2px 0;
216
217
218
219
      font-size: 20px;
    }

    .option-title {
220
      font-weight: normal;
221
      display: inline-block;
222
      color: #313236;
223
224
225
    }

    .option-descr {
226
227
      margin-left: 29px;
      color: #54565b;
228
229
230
231
232
233
234
235
236
237
    }
  }
}

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

238
.project_member_row form {
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
  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 {
263
  padding: 0;
264
  background: transparent;
265
  border: none;
266
  line-height: 42px;
267
  margin: 0;
268
269
270
271
272
273
274

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

275
276
277
278
.last-push-widget {
  margin-top: -1px;
}

279
.fork-namespaces {
280
281
282
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
283

284
285
286
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
287
288
    }

289
290
291
    img {
      @include border-radius(50%);
      max-width: 100px;
292
293
294
295
296
297
298
299
300
    }
  }
}

table.table.protected-branches-list tr.no-border {
  th, td {
    border: 0;
  }
}
301
302
303
304
305

.project-import .btn {
  float: left;
  margin-right: 10px;
}
306
307
308

.project-stats {
  text-align: center;
309
  margin-top: $gl-padding;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
310
  margin-bottom: 0;
311
312
  padding-top: 10px;
  padding-bottom: 4px;
313

314
  ul.nav {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
315
316
    display:inline-block;
  }
317

318
  .nav li {
319
320
    display:inline;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
321

322
  .nav > li > a {
323
    @include btn-default;
324
    @include btn-gray;
325

Andrey's avatar
Andrey committed
326
327
328
    background-color: transparent;
    border: 1px solid #f7f8fa;
    margin-left: 12px;
329
  }
330

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
331
332
333
334
335
336
337
338
  li {
    display:inline;
  }

  a {
    float:left;
    font-size: 17px;
  }
339
340

  li.missing a {
341
342
    color: #5a6069;
    border: 1px dashed #dce0e5;
343
344

    &:hover {
345
      background-color: #f0f2f5;
346
347
    }
  }
348
349
350
351
352
}

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

354
355
.git-empty {
  margin: 0 7px 0 7px;
356

357
358
359
  h5 {
    color: #5c5d5e;
  }
360

361
362
  .light-well {
    @include border-radius (2px);
363

Andrey's avatar
Andrey committed
364
    color: #5b6169;
365
366
    font-size: 13px;
    line-height: 1.6em;
367
368
369
  }
}

370
.project-footer {
Andrey's avatar
Andrey committed
371
  margin-top: 20px;
372

373
  .btn-remove {
Andrey's avatar
Andrey committed
374
    @include btn-middle;
375
    @include btn-red;
376

377
378
379
380
    float: left !important;
  }
}

381
382
383
/*
 * Projects list rendered on dashboard and user page
 */
384

385
386
.projects-list {
  @include basic-list;
387

388
  .project-row {
Douwe Maan's avatar
Douwe Maan committed
389
    border-color: $table-border-color;
390
391
392

    &.no-description {
      .project {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
393
        line-height: 40px;
394
395
396
      }
    }

397
398
    .project-full-name {
      @include str-truncated;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
399
      font-weight: 600;
400
401
402
      color: #4c4e54;
    }

403
404
405
    .project-controls {
      float: right;
      color: $gl-gray;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
406
      line-height: 40px;
407
      color: #7f8fa4;
408
409
410
411

      a:hover {
        text-decoration: none;
      }
412
413
414
415

      > span {
        margin-left: 10px;
      }
416
    }
417

418
    .project-description {
419
      color: #7f8fa4;
420
421
422
423

      p {
        @include str-truncated;
        margin-bottom: 0;
424
        color: #7f8fa4;
425
      }
426
427
    }
  }
428
429
430
431
432

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
433
434
}

435
436
.panel .projects-list li {
  padding: 10px 15px;
437
  margin: 0;
438
}
439
440
441
442
443
444

.project-show-activity {
  .activity-filter-block {
    margin-top: -1px;
  }
}
445
446
447
448
449
450
451
452
453
454
455

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

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

  .commit_short_id {
456
    margin-right: 5px;
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
    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;
    }
  }
}
474

475
.project-show-readme .readme-holder {
476
  padding: $gl-padding 0;
477
  border-top: 0;
478

479
480
481
482
  .edit-project-readme {
    z-index: 100;
    position: relative;
  }
483
}
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512

.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;
    background: #FFF;
    font-size: 14px;
    margin-left: -1px;
    cursor: auto;
    width: 101%;
  }
}
513

514
.cannot-be-merged,
515
.cannot-be-merged:hover {
516
  color: #E62958;
517
  margin-top: 2px;
518
}
519
520

.private-forks-notice .private-fork-icon {
Rubén Dávila's avatar
Rubén Dávila committed
521
  i:nth-child(1) {
522
523
    color: #2AA056;
  }
Rubén Dávila's avatar
Rubén Dávila committed
524
525

  i:nth-child(2) {
526
527
528
    color: #FFFFFF;
  }
}