BigW Consortium Gitlab

boards.scss 10.7 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 14
  // Important because plugin sets inline CSS
  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 22 23
    // !important to make sure no style can override this when dragging
    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 168

    .board-title {
      padding-top: ($gl-padding - 3px);
    }
169 170 171
  }
}

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

.board-title {
Phil Hughes committed
178
  position: relative;
Phil Hughes committed
179
  margin: 0;
180
  padding: $gl-padding;
Phil Hughes committed
181
  font-size: 1em;
182
  border-bottom: 1px solid $border-color;
Phil Hughes committed
183 184
}

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

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

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

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

222 223 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
.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);
  }
}

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

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

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

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

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

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

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

297 298 299 300
  .label {
    border: 0;
    outline: 0;
  }
301 302

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

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

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

321 322 323
.card-header {
  display: flex;
  min-height: 20px;
324

325
  .card-assignee {
326 327 328 329
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 15px;
330
    height: 20px;
331 332 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
    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;
        }
      }
    }
389 390
  }

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

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

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

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

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

  .form-control {
    display: inline-block;
    width: 210px;
  }
}
418 419 420

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

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

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

434
.page-with-layout-nav.page-with-sub-nav .issue-boards-sidebar {
435
  &.right-sidebar {
436
    top: 0;
437 438 439 440 441 442 443 444 445 446
    bottom: 0;
  }

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

  .gutter-toggle {
    position: absolute;
    top: 0;
447
    bottom: 15px;
448 449 450 451
    right: 0;
    width: 22px;
    color: $gray-darkest;

452
    svg {
453 454
      position: absolute;
      top: 50%;
455 456 457 458 459 460 461
      margin-top: (-11px / 2);
    }

    &:hover {
      path {
        fill: $gray-darkest;
      }
462 463 464 465 466 467 468 469 470 471
    }
  }

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

    > strong {
      font-weight: 600;
    }
  }
472
}
473 474 475 476

.right-sidebar.right-sidebar-expanded {
  &.boards-sidebar-slide-enter-active,
  &.boards-sidebar-slide-leave-active {
477 478
    transition: width .2s,
                padding .2s;
479 480 481 482 483 484 485 486 487
  }

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

.add-issues-modal {
490
  display: -webkit-flex;
491 492 493 494 495 496 497 498 499 500 501
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba($black, .3);
  z-index: 9999;
}

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

  .empty-state {
517
    display: -webkit-flex;
Phil Hughes committed
518
    display: flex;
519
    -webkit-flex: 1;
Phil Hughes committed
520 521 522
    flex: 1;
    margin-top: 0;

523 524 525
    &.add-issues-empty-state-filter {
      -webkit-flex-direction: column;
      flex-direction: column;
Phil Hughes committed
526 527
      -webkit-justify-content: center;
      justify-content: center;
528 529
    }

Phil Hughes committed
530 531
    > .row {
      width: 100%;
Phil Hughes committed
532 533 534 535 536
      margin: auto 0;
    }

    .svg-content {
      margin-top: -40px;
Phil Hughes committed
537 538
    }
  }
539 540 541
}

.add-issues-header {
542 543 544
  margin: -25px -15px -5px;
  border-top: 0;
  border-bottom: 1px solid $border-color;
Phil Hughes committed
545 546
  border-top-right-radius: $border-radius-default;
  border-top-left-radius: $border-radius-default;
547

548 549 550 551
  > h2 {
    margin: 0;
    font-size: 18px;
  }
552
}
Phil Hughes committed
553

554
.add-issues-search {
555
  display: -webkit-flex;
556
  display: flex;
557

558
  .issues-filters {
Phil Hughes committed
559 560
    -webkit-flex: 1;
    flex: 1;
561
  }
562 563
}

564 565 566 567 568 569 570 571 572 573 574 575
.add-issues-list-column {
  width: 100%;

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

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

576
.add-issues-list {
577
  display: -webkit-flex;
578
  display: flex;
579
  -webkit-flex: 1;
580
  flex: 1;
Phil Hughes committed
581
  padding-top: 3px;
Phil Hughes committed
582 583
  margin-left: -$gl-vert-padding;
  margin-right: -$gl-vert-padding;
584
  overflow-y: scroll;
585

Phil Hughes committed
586
  .card-parent {
Phil Hughes committed
587
    padding: 0 5px 5px;
Phil Hughes committed
588 589 590
  }

  .card {
Phil Hughes committed
591
    border: 1px solid $border-gray-dark;
Phil Hughes committed
592
    box-shadow: 0 1px 2px rgba($issue-boards-card-shadow, .3);
Phil Hughes committed
593 594
    cursor: pointer;
  }
Phil Hughes committed
595
}
596

Phil Hughes committed
597
.add-issues-list-loading {
598
  -webkit-align-self: center;
599
  align-self: center;
Phil Hughes committed
600 601 602 603 604 605 606
  width: 100%;
  padding-left: $gl-vert-padding;
  padding-right: $gl-vert-padding;
  font-size: 35px;
}

.add-issues-footer {
Phil Hughes committed
607
  margin: auto -15px 0;
Phil Hughes committed
608 609
  padding-left: 15px;
  padding-right: 15px;
Phil Hughes committed
610 611
  border-bottom-right-radius: $border-radius-default;
  border-bottom-left-radius: $border-radius-default;
Phil Hughes committed
612 613 614 615 616 617
}

.add-issues-footer-to-list {
  padding-left: $gl-vert-padding;
  padding-right: $gl-vert-padding;
  line-height: 34px;
618 619 620 621 622 623
}

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

.modal-filters {
  display: flex;

  > .dropdown {
637
    display: none;
638
    margin-right: 10px;
639 640 641 642

    @media (min-width: $screen-sm-min) {
      display: block;
    }
643 644 645
  }

  .dropdown-menu-toggle {
646 647 648 649 650
    width: 100px;

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