projects.scss 7.37 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

  .cover-controls {
    .project-settings-dropdown {
      margin-left: 10px;
Alfredo Sumaran's avatar
Alfredo Sumaran committed
35
      display: inline-block;
36
37
38
39
40
41
42

      .dropdown-menu {
        left: auto;
        width: auto;
        right: 0px;
        max-width: 240px;
      }
43
44
45
    }
  }

46
  .project-identicon-holder {
47
    margin-bottom: 16px;
48

49
50
51
    .avatar, .identicon {
      margin: 0 auto;
      float: none;
52
    }
53

54
    .identicon {
55
      @include border-radius(50%);
56
    }
57
  }
58

59
  .notifications-btn {
Jacob Schatz's avatar
Jacob Schatz committed
60
    margin-top: -28px;
61

62
63
64
65
66
67
68
    .fa-bell {
      margin-right: 6px;
    }

    .fa-angle-down {
      margin-left: 6px;
    }
69
70
  }

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

80
81
82
83
84
85
86
    .visibility-icon {
      display: inline-block;
      margin-left: 5px;
      font-size: 18px;
      color: $gray;
    }

87
    p {
88
      padding: 0 $gl-padding;
89
      color: #5c5d5e;
Phil Hughes's avatar
Phil Hughes committed
90
    }
91
  }
92

Phil Hughes's avatar
Phil Hughes committed
93
  .project-repo-buttons {
Andriy Dyadyura's avatar
update  
Andriy Dyadyura committed
94
    margin-top: 20px;
95
    margin-bottom: 0px;
96

Jacob Schatz's avatar
Jacob Schatz committed
97
98
    .count-buttons {
      display: block;
Andriy Dyadyura's avatar
update  
Andriy Dyadyura committed
99
      margin-bottom: 20px;
Jacob Schatz's avatar
Jacob Schatz committed
100
101
    }

102
103
104
105
106
107
108
109
110
111
112
    .clone-row {
      .split-repo-buttons,
      .project-clone-holder {
        display: inline-block;
      }

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

113
    .btn {
114
      @include btn-gray;
Jacob Schatz's avatar
Jacob Schatz committed
115
116
      text-transform: none;
    }
117

Jacob Schatz's avatar
Jacob Schatz committed
118
119
120
121
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;
122

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

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

        &:hover {
175
          background: #fff;
176
        }
177
178
      }
    }
Phil Hughes's avatar
Phil Hughes committed
179
  }
180
181
}

182
183
.split-one {
  display: inline-table;
Andrey's avatar
Andrey committed
184
  margin-right: 12px;
185

186
187
188
189
190
  a {
    margin: -1px !important;
  }
}

191
192
193
194
195
.project-visibility-level-holder {
  .radio {
    margin-bottom: 10px;

    i {
196
      margin: 2px 0;
197
198
199
200
      font-size: 20px;
    }

    .option-title {
201
      font-weight: normal;
202
      display: inline-block;
203
      color: #313236;
204
205
206
    }

    .option-descr {
207
208
      margin-left: 29px;
      color: #54565b;
209
210
211
212
213
214
215
216
217
218
    }
  }
}

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

219
.project_member_row form {
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
  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 {
244
  padding: 0;
245
  background: transparent;
246
  border: none;
247
  line-height: 42px;
248
  margin: 0;
249
250
251
252
253
254
255

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

256
257
258
259
.last-push-widget {
  margin-top: -1px;
}

260
.fork-namespaces {
261
262
263
  .fork-thumbnail {
    text-align: center;
    margin-bottom: $gl-padding;
264

265
266
267
    .caption {
      padding: $gl-padding 0;
      min-height: 30px;
268
269
    }

270
271
272
    img {
      @include border-radius(50%);
      max-width: 100px;
273
274
275
276
277
278
279
280
281
    }
  }
}

table.table.protected-branches-list tr.no-border {
  th, td {
    border: 0;
  }
}
282
283
284
285
286

.project-import .btn {
  float: left;
  margin-right: 10px;
}
287
288
289

.project-stats {
  text-align: center;
290
  margin-top: $gl-padding;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
291
  margin-bottom: 0;
292
293
  padding-top: 10px;
  padding-bottom: 4px;
294

295
  ul.nav {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
296
297
    display:inline-block;
  }
298

299
  .nav li {
300
301
    display:inline;
  }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
302

303
  .nav > li > a {
304
    @include btn-default;
305
    @include btn-gray;
306

Andrey's avatar
Andrey committed
307
308
309
    background-color: transparent;
    border: 1px solid #f7f8fa;
    margin-left: 12px;
310
  }
311

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
312
313
314
315
316
317
318
319
  li {
    display:inline;
  }

  a {
    float:left;
    font-size: 17px;
  }
320
321

  li.missing a {
322
323
    color: #5a6069;
    border: 1px dashed #dce0e5;
324
325

    &:hover {
326
      background-color: #f0f2f5;
327
328
    }
  }
329
330
331
332
333
}

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

335
336
.git-empty {
  margin: 0 7px 0 7px;
337

338
339
340
  h5 {
    color: #5c5d5e;
  }
341

342
343
  .light-well {
    @include border-radius (2px);
344

Andrey's avatar
Andrey committed
345
    color: #5b6169;
346
347
    font-size: 13px;
    line-height: 1.6em;
348
349
350
  }
}

351
.project-footer {
Andrey's avatar
Andrey committed
352
  margin-top: 20px;
353

354
  .btn-remove {
Andrey's avatar
Andrey committed
355
    @include btn-middle;
356
    @include btn-red;
357

358
359
360
361
    float: left !important;
  }
}

362
363
364
/*
 * Projects list rendered on dashboard and user page
 */
365

366
367
.projects-list {
  @include basic-list;
368

369
  .project-row {
Douwe Maan's avatar
Douwe Maan committed
370
    border-color: $table-border-color;
371
372
373

    &.no-description {
      .project {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
374
        line-height: 40px;
375
376
377
      }
    }

378
379
    .project-full-name {
      @include str-truncated;
380
381
    }

382
    .controls {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
383
      line-height: 40px;
384
385
386
387

      a:hover {
        text-decoration: none;
      }
388
389
390
391

      > span {
        margin-left: 10px;
      }
392
    }
393
  }
394
395
396
397
398

  .bottom {
    padding-top: $gl-padding;
    padding-bottom: 0;
  }
399
400
}

401
402
.panel .projects-list li {
  padding: 10px 15px;
403
  margin: 0;
404
}
405
406
407
408
409
410

.project-show-activity {
  .activity-filter-block {
    margin-top: -1px;
  }
}
411
412
413
414
415
416
417
418
419
420
421

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

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

  .commit_short_id {
422
    margin-right: 5px;
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
    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;
    }
  }
}
440

441
.project-show-readme .readme-holder {
442
  padding: $gl-padding 0;
443
  border-top: 0;
444

445
446
447
448
  .edit-project-readme {
    z-index: 100;
    position: relative;
  }
449
}
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471

.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;
472
    background: #fff;
473
474
475
476
477
478
    font-size: 14px;
    margin-left: -1px;
    cursor: auto;
    width: 101%;
  }
}
479

480
.cannot-be-merged,
481
.cannot-be-merged:hover {
482
  color: #e62958;
483
  margin-top: 2px;
484
}
485
486

.private-forks-notice .private-fork-icon {
Rubén Dávila's avatar
Rubén Dávila committed
487
  i:nth-child(1) {
488
    color: #2aa056;
489
  }
Rubén Dávila's avatar
Rubén Dávila committed
490
491

  i:nth-child(2) {
492
    color: #fff;
493
494
  }
}