BigW Consortium Gitlab

boards.scss 10.8 KB
Newer Older
1 2
@import "./issues/issue_count_badge";

3 4 5 6
[v-cloak] {
  display: none;
}

7 8 9 10 11
.user-can-drag {
  cursor: -webkit-grab;
  cursor: grab;
}

12
.is-dragging {
13
  // Important because plugin sets inline CSS
14
  opacity: 1 !important;
15

16
  * {
17 18 19 20
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
21
    // !important to make sure no style can override this when dragging
22 23
    cursor: -webkit-grabbing !important;
    cursor: grabbing !important;
24 25 26
  }
}

27 28 29 30
.is-ghost {
  opacity: 0.3;
}

Phil Hughes committed
31 32
.dropdown-menu-issues-board-new {
  width: 320px;
33

Phil Hughes committed
34
  .dropdown-content {
35
    max-height: 150px;
36
  }
Phil Hughes committed
37 38 39
}

.issue-board-dropdown-content {
Phil Hughes committed
40 41 42
  margin: 0 8px 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid $dropdown-divider-color;
Phil Hughes committed
43 44 45

  > p {
    margin: 0;
Phil Hughes committed
46
    font-size: 14px;
Phil Hughes committed
47 48 49
  }
}

Phil Hughes committed
50
.issue-boards-page {
51
  .content-wrapper {
52
    padding-bottom: 0;
Phil Hughes committed
53
  }
54 55 56 57
}

.boards-app {
  position: relative;
Phil Hughes committed
58 59
}

60 61 62 63 64
.boards-app-loading {
  width: 100%;
  font-size: 34px;
}

Phil Hughes committed
65
.boards-list {
66
  height: calc(100vh - 152px);
67
  width: 100%;
Phil Hughes committed
68
  padding-top: 25px;
69
  padding-bottom: 25px;
Phil Hughes committed
70 71 72
  padding-right: ($gl-padding / 2);
  padding-left: ($gl-padding / 2);
  overflow-x: scroll;
73
  white-space: nowrap;
Phil Hughes committed
74 75

  @media (min-width: $screen-sm-min) {
76
    height: 475px; // Needed for PhantomJS
77
    // scss-lint:disable DuplicateProperty
78
    height: calc(100vh - 222px);
79
    // scss-lint:enable DuplicateProperty
80
    min-height: 475px;
81
    transition: width .2s;
82 83 84 85

    &.is-compact {
      width: calc(100% - 290px);
    }
Phil Hughes committed
86
  }
Phil Hughes committed
87 88 89
}

.board {
90 91 92
  display: inline-block;
  width: calc(85vw - 15px);
  height: 100%;
Phil Hughes committed
93 94
  padding-right: ($gl-padding / 2);
  padding-left: ($gl-padding / 2);
95
  white-space: normal;
Phil Hughes committed
96
  vertical-align: top;
Phil Hughes committed
97 98

  @media (min-width: $screen-sm-min) {
99
    width: 400px;
Phil Hughes committed
100
  }
101 102 103 104 105 106 107 108

  &.is-expandable {
    .board-header {
      cursor: pointer;
    }
  }

  &.is-collapsed {
109
    width: 50px;
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137

    .board-header {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
    }

    .board-title {
      position: initial;
      padding: 0;
      border-bottom: 0;

      > span {
        display: block;
        transform: rotate(90deg) translate(25px, 0);
      }
    }

    .board-title-expandable-toggle {
      position: absolute;
      top: 50%;
      left: 50%;
      margin-left: -10px;
    }

    .board-list-component,
138
    .issue-count-badge {
139 140 141
      display: none;
    }
  }
Phil Hughes committed
142 143 144
}

.board-inner {
145
  position: relative;
146
  height: 100%;
Phil Hughes committed
147
  font-size: $issue-boards-font-size;
148
  background: $gray-light;
Phil Hughes committed
149 150 151 152
  border: 1px solid $border-color;
  border-radius: $border-radius-default;
}

153 154 155 156 157 158
.board-header {
  border-top-left-radius: $border-radius-default;
  border-top-right-radius: $border-radius-default;

  &.has-border {
    border-top: 3px solid;
159 160 161 162 163 164
    margin-top: -1px;
    margin-right: -1px;
    margin-left: -1px;
    padding-top: 1px;
    padding-right: 1px;
    padding-left: 1px;
165 166 167

    .board-title {
      padding-top: ($gl-padding - 3px);
Regis Boudinot committed
168
      padding-bottom: $gl-padding;
169
    }
170 171 172
  }
}

Phil Hughes committed
173 174 175 176 177 178
.board-inner-container {
  border-bottom: 1px solid $border-color;
  padding: $gl-padding;
}

.board-title {
Phil Hughes committed
179
  position: relative;
Phil Hughes committed
180
  margin: 0;
181
  padding: $gl-padding;
Regis Boudinot committed
182
  padding-bottom: ($gl-padding + 3px);
Phil Hughes committed
183
  font-size: 1em;
184
  border-bottom: 1px solid $border-color;
Phil Hughes committed
185 186
}

187 188 189 190 191 192
.board-delete {
  margin-right: 10px;
  padding: 0;
  color: $gray-darkest;
  background-color: transparent;
  border: 0;
Phil Hughes committed
193
  outline: 0;
194 195 196 197 198 199

  &:hover {
    color: $gl-link-color;
  }
}

Phil Hughes committed
200
.board-blank-state {
201
  height: calc(100% - 49px);
Phil Hughes committed
202
  padding: $gl-padding;
203
  background-color: $white-light;
Phil Hughes committed
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223
}

.board-blank-state-list {
  list-style: none;

  > li:not(:last-child) {
    margin-bottom: 8px;
  }

  .label-color {
    position: relative;
    top: 2px;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 3px;
    border-radius: $border-radius-default;
  }
}

224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257
.slide-down-enter {
  transform: translateY(-100%);
}

.slide-down-enter-active {
  transition: transform $fade-in-duration;

  + .board-list {
    transform: translateY(-136px);
    transition: none;
  }
}

.slide-down-enter-to {
  + .board-list {
    transform: translateY(0);
    transition: transform $fade-in-duration ease;
  }
}

.slide-down-leave {
  transform: translateY(0);
}

.slide-down-leave-active {
  transition: all $fade-in-duration;
  transform: translateY(-136px);

  + .board-list {
    transition: transform $fade-in-duration ease;
    transform: translateY(-136px);
  }
}

258
.board-list-component {
Phil Hughes committed
259
  height: calc(100% - 49px);
260
  overflow: hidden;
261 262 263 264
}

.board-list {
  height: 100%;
265
  width: 100%;
266
  margin-bottom: 0;
Phil Hughes committed
267
  padding: 5px;
268
  list-style: none;
269 270
  overflow-y: scroll;
  overflow-x: hidden;
Phil Hughes committed
271 272
}

Phil Hughes committed
273 274
.board-list-loading {
  margin-top: 10px;
275
  font-size: (26px / $issue-boards-font-size) * 1em;
276 277
}

Phil Hughes committed
278
.card {
Phil Hughes committed
279
  position: relative;
280
  padding: 11px 10px 11px $gl-padding;
281
  background: $white-light;
Phil Hughes committed
282
  border-radius: $border-radius-default;
283
  box-shadow: 0 1px 2px $issue-boards-card-shadow;
284
  list-style: none;
Phil Hughes committed
285 286 287 288

  &:not(:last-child) {
    margin-bottom: 5px;
  }
289

290 291
  &.is-active,
  &.is-active .card-assignee:hover a {
292
    background-color: $row-hover;
293 294 295 296

    &:first-child:not(:only-child) {
      box-shadow: -10px 0 10px 1px $row-hover;
    }
297 298
  }

299 300 301 302
  .label {
    border: 0;
    outline: 0;
  }
303 304

  .confidential-icon {
305 306
    position: relative;
    top: 1px;
307 308
    margin-right: 5px;
  }
Phil Hughes committed
309 310 311
}

.card-title {
312
  margin: 0 30px 0 0;
Phil Hughes committed
313
  font-size: 1em;
314
  line-height: inherit;
315 316

  a {
317
    color: $gl-text-color;
318
    word-wrap: break-word;
319
    margin-right: 2px;
320
  }
Phil Hughes committed
321 322
}

323 324 325
.card-header {
  display: flex;
  min-height: 20px;
326

327
  .card-assignee {
328 329 330 331
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 15px;
332
    height: 20px;
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
    width: 20px;

    .avatar-counter {
      display: none;
      vertical-align: middle;
      min-width: 20px;
      line-height: 19px;
      height: 20px;
      padding-left: 2px;
      padding-right: 2px;
      border-radius: 2em;
    }

    img {
      vertical-align: top;
    }

    a {
      position: relative;
      margin-left: -15px;
    }

    a:nth-child(1) {
      z-index: 3;
    }

    a:nth-child(2) {
      z-index: 2;
    }

    a:nth-child(3) {
      z-index: 1;
    }

    a:nth-child(4) {
      display: none;
    }

    &:hover {
      .avatar-counter {
        display: inline-block;
      }

      a {
        position: static;
        background-color: $white-light;
        transition: background-color 0s;
        margin-left: auto;

        &:nth-child(4) {
          display: block;
        }

        &:first-child:not(:only-child) {
          box-shadow: -10px 0 10px 1px $white-light;
        }
      }
    }
391 392
  }

393
  .avatar {
394 395 396 397 398 399 400 401 402 403
    margin: 0;
  }
}

.card-footer {
  margin: 0 0 5px;

  .label {
    margin-top: 5px;
    margin-right: 6px;
404
  }
Phil Hughes committed
405 406 407
}

.card-number {
408 409
  font-size: 12px;
  color: $gl-text-color-secondary;
Phil Hughes committed
410
}
411 412

.issue-boards-search {
413
  width: 395px;
414 415 416 417 418 419

  .form-control {
    display: inline-block;
    width: 210px;
  }
}
420 421 422

.board-list-count {
  padding: 10px 0;
423
  color: $gl-text-color-secondary;
424 425 426 427 428 429
  font-size: 13px;

  > .fa {
    margin-right: 5px;
  }
}
430

431
.board-new-issue-form {
432
  z-index: 1;
433 434 435
  margin: 5px;
}

436 437 438 439
.page-with-layout-nav.page-with-sub-nav .issue-boards-sidebar,
.page-with-new-sidebar.page-with-sidebar .issue-boards-sidebar {
  position: absolute;

440
  &.right-sidebar {
441
    top: 0;
442 443 444 445 446 447 448 449 450 451
    bottom: 0;
  }

  .issuable-sidebar-header {
    position: relative;
  }

  .gutter-toggle {
    position: absolute;
    top: 0;
452
    bottom: 15px;
453 454 455 456
    right: 0;
    width: 22px;
    color: $gray-darkest;

457
    svg {
458 459
      position: absolute;
      top: 50%;
460 461 462 463 464 465 466
      margin-top: (-11px / 2);
    }

    &:hover {
      path {
        fill: $gray-darkest;
      }
467 468 469 470 471 472 473 474 475 476
    }
  }

  .issuable-header-text {
    padding-right: 35px;

    > strong {
      font-weight: 600;
    }
  }
477
}
478 479 480 481

.right-sidebar.right-sidebar-expanded {
  &.boards-sidebar-slide-enter-active,
  &.boards-sidebar-slide-leave-active {
482 483
    transition: width .2s,
                padding .2s;
484 485 486 487 488 489 490 491 492
  }

  &.boards-sidebar-slide-enter,
  &.boards-sidebar-slide-leave-active {
    width: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
493 494

.add-issues-modal {
495
  display: -webkit-flex;
496 497 498 499 500 501 502 503 504 505 506
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba($black, .3);
  z-index: 9999;
}

.add-issues-container {
507
  display: -webkit-flex;
508
  display: flex;
509
  -webkit-flex-direction: column;
510 511 512
  flex-direction: column;
  width: 90vw;
  height: 85vh;
Phil Hughes committed
513
  max-width: 1100px;
Phil Hughes committed
514
  min-height: 500px;
Phil Hughes committed
515
  margin: auto;
516 517 518 519
  padding: 25px 15px 0;
  background-color: $white-light;
  border-radius: $border-radius-default;
  box-shadow: 0 2px 12px rgba($black, .5);
Phil Hughes committed
520 521

  .empty-state {
522
    display: -webkit-flex;
Phil Hughes committed
523
    display: flex;
524
    -webkit-flex: 1;
Phil Hughes committed
525 526 527
    flex: 1;
    margin-top: 0;

528 529 530
    &.add-issues-empty-state-filter {
      -webkit-flex-direction: column;
      flex-direction: column;
Phil Hughes committed
531 532
      -webkit-justify-content: center;
      justify-content: center;
533 534
    }

Phil Hughes committed
535 536
    > .row {
      width: 100%;
Phil Hughes committed
537 538 539 540 541
      margin: auto 0;
    }

    .svg-content {
      margin-top: -40px;
Phil Hughes committed
542 543
    }
  }
544 545 546
}

.add-issues-header {
547 548 549
  margin: -25px -15px -5px;
  border-top: 0;
  border-bottom: 1px solid $border-color;
Phil Hughes committed
550 551
  border-top-right-radius: $border-radius-default;
  border-top-left-radius: $border-radius-default;
552

553 554 555 556
  > h2 {
    margin: 0;
    font-size: 18px;
  }
557
}
Phil Hughes committed
558

559
.add-issues-search {
560
  display: -webkit-flex;
561
  display: flex;
562

563
  .issues-filters {
Phil Hughes committed
564 565
    -webkit-flex: 1;
    flex: 1;
566
  }
567 568
}

569 570 571 572 573 574 575 576 577 578 579 580
.add-issues-list-column {
  width: 100%;

  @media (min-width: $screen-sm-min) {
    width: 50%;
  }

  @media (min-width: $screen-md-min) {
    width: (100% / 3);
  }
}

581
.add-issues-list {
582
  display: -webkit-flex;
583
  display: flex;
584
  -webkit-flex: 1;
585
  flex: 1;
Phil Hughes committed
586
  padding-top: 3px;
Phil Hughes committed
587 588
  margin-left: -$gl-vert-padding;
  margin-right: -$gl-vert-padding;
589
  overflow-y: scroll;
590

Phil Hughes committed
591
  .card-parent {
Phil Hughes committed
592
    padding: 0 5px 5px;
Phil Hughes committed
593 594 595
  }

  .card {
Phil Hughes committed
596
    border: 1px solid $border-gray-dark;
Phil Hughes committed
597
    box-shadow: 0 1px 2px rgba($issue-boards-card-shadow, .3);
Phil Hughes committed
598 599
    cursor: pointer;
  }
Phil Hughes committed
600
}
601

Phil Hughes committed
602
.add-issues-list-loading {
603
  -webkit-align-self: center;
604
  align-self: center;
Phil Hughes committed
605 606 607 608 609 610 611
  width: 100%;
  padding-left: $gl-vert-padding;
  padding-right: $gl-vert-padding;
  font-size: 35px;
}

.add-issues-footer {
Phil Hughes committed
612
  margin: auto -15px 0;
Phil Hughes committed
613 614
  padding-left: 15px;
  padding-right: 15px;
Phil Hughes committed
615 616
  border-bottom-right-radius: $border-radius-default;
  border-bottom-left-radius: $border-radius-default;
Phil Hughes committed
617 618 619 620 621 622
}

.add-issues-footer-to-list {
  padding-left: $gl-vert-padding;
  padding-right: $gl-vert-padding;
  line-height: 34px;
623 624 625 626 627 628
}

.issue-card-selected {
  position: absolute;
  right: -3px;
  top: -3px;
Phil Hughes committed
629
  width: 17px;
630
  background-color: $blue-500;
631
  color: $white-light;
632
  border: 1px solid $blue-600;
Phil Hughes committed
633
  font-size: 9px;
634
  line-height: 15px;
635 636
  border-radius: 50%;
}
637 638 639 640 641

.modal-filters {
  display: flex;

  > .dropdown {
642
    display: none;
643
    margin-right: 10px;
644 645 646 647

    @media (min-width: $screen-sm-min) {
      display: block;
    }
648 649 650
  }

  .dropdown-menu-toggle {
651 652 653 654 655
    width: 100px;

    @media (min-width: $screen-md-min) {
      width: 140px;
    }
656 657
  }
}