projects.scss 7.36 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 30
  padding-bottom: 40px;
  border-bottom: 1px solid $border-color;
31 32 33 34

  .cover-controls {
    .project-settings-dropdown {
      margin-left: 10px;
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
  }

71 72
  .project-home-desc {
    h1 {
73
      color: #313236;
74
      margin: 0;
75
      margin-bottom: 6px;
76 77
      font-size: 23px;
      font-weight: normal;
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;
90
    }
91
  }
92

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

Jacob Schatz's avatar
Jacob Schatz committed
97 98
    .count-buttons {
      display: block;
Andriy Dyadyura's avatar
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 122 123
    .count-with-arrow {
      display: inline-block;
      position: relative;
      margin-left: 4px;

      .arrow {
Jacob Schatz's avatar
Jacob Schatz committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149
        &: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;
        }

        &: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
Andriy Dyadyura committed
165
        padding: 10px 14px;
Jacob Schatz's avatar
Jacob Schatz committed
166 167 168 169 170 171
        text-align: center;
        vertical-align: middle;
        touch-action: manipulation;
        cursor: pointer;
        background-image: none;
        white-space: nowrap;
172
        margin: 0 11px 0 4px;
173 174

        &:hover {
175
          background: #fff;
176
        }
177 178
      }
    }
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
.project-visibility-level-holder {
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
192 193
  .radio {
    margin-bottom: 10px;
194

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
195
    i {
196
      margin: 2px 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
197
      font-size: 20px;
198
    }
199

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
200
    .option-title {
201
      font-weight: normal;
202
      display: inline-block;
203
      color: #313236;
204
    }
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
205 206

    .option-descr {
207 208
      margin-left: 29px;
      color: #54565b;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
209
    }
210 211 212
  }
}

213
.save-project-loader {
214 215 216
  margin-top: 50px;
  margin-bottom: 50px;
  color: #555;
217
}
218

219
.project_member_row form {
220
  margin: 0;
221
}
222

223
.transfer-project .select2-container {
224 225
  min-width: 200px;
}
226

227 228 229
.deploy-project-label {
  margin: 1px;
}
230 231

.vs-public {
232
  color: $gl-primary;
233 234 235
}

.vs-internal {
236
  color: $gl-warning;
237 238 239
}

.vs-private {
240
  color: $gl-success;
241
}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
242 243

.breadcrumb.repo-breadcrumb {
244
  padding: 0;
245
  background: transparent;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
246
  border: none;
247
  line-height: 42px;
248
  margin: 0;
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
249 250 251 252 253 254

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

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

Marin Jankovski's avatar
Marin Jankovski committed
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;
291
  margin-bottom: 0;
292 293
  padding-top: 10px;
  padding-bottom: 4px;
294

295
  ul.nav {
296
    display: inline-block;
297
  }
298

299
  .nav li {
300
    display: inline;
301
  }
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

312
  li {
313
    display: inline;
314 315 316
  }

  a {
317
    float: left;
318 319
    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
.git-empty {
336
  margin: 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 368 369
.projects-list {
  @include basic-list;

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

    &.no-description {
      .project {
374
        line-height: 40px;
375 376 377
      }
    }

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

382
    .controls {
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
  }
}