debian-mirror-gitlab/app/assets/stylesheets/page_bundles/boards.scss

567 lines
11 KiB
SCSS
Raw Normal View History

2021-01-03 14:25:43 +05:30
@import 'mixins_and_variables_and_functions';
2016-09-13 17:45:13 +05:30
.user-can-drag {
cursor: grab;
}
2016-09-29 09:46:39 +05:30
.is-ghost {
opacity: 0.3;
2019-07-07 11:18:12 +05:30
pointer-events: none;
2016-09-29 09:46:39 +05:30
}
2019-03-02 22:35:43 +05:30
.dropdown-projects {
.dropdown-content {
max-height: 200px;
}
}
2016-09-13 17:45:13 +05:30
.dropdown-menu-issues-board-new {
width: 320px;
.dropdown-content {
2019-09-04 21:01:54 +05:30
max-height: 140px;
2017-08-17 22:00:37 +05:30
}
2016-09-13 17:45:13 +05:30
}
.issue-board-dropdown-content {
2019-09-04 21:01:54 +05:30
margin: 0;
padding: $gl-padding-4 $gl-padding $gl-padding;
border-bottom: 0;
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2016-09-13 17:45:13 +05:30
}
2021-04-17 20:07:23 +05:30
[data-page$='epic_boards:index'],
[data-page$='epic_boards:show'],
2016-09-13 17:45:13 +05:30
.issue-boards-page {
2017-08-17 22:00:37 +05:30
.content-wrapper {
2016-09-13 17:45:13 +05:30
padding-bottom: 0;
}
}
2021-04-17 20:07:23 +05:30
[data-page$='epic_boards:index'],
[data-page$='epic_boards:show'] {
.filter-form {
display: none;
}
}
2017-08-17 22:00:37 +05:30
.boards-app {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2018-03-17 18:26:18 +05:30
transition: width $sidebar-transition-duration;
width: 100%;
&.is-compact {
2018-11-18 11:00:15 +05:30
width: calc(100% - #{$gutter-width});
2018-03-17 18:26:18 +05:30
}
}
2017-08-17 22:00:37 +05:30
}
2020-07-28 23:09:34 +05:30
.boards-list,
.board-swimlanes {
2018-05-09 12:01:36 +05:30
height: calc(100vh - #{$issue-board-list-difference-xs});
2016-09-13 17:45:13 +05:30
overflow-x: scroll;
2018-05-09 12:01:36 +05:30
min-height: 200px;
2016-09-13 17:45:13 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-only(sm) {
2018-05-09 12:01:36 +05:30
height: calc(100vh - #{$issue-board-list-difference-sm});
2018-03-17 18:26:18 +05:30
}
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2018-05-09 12:01:36 +05:30
height: calc(100vh - #{$issue-board-list-difference-md});
}
2020-10-24 23:57:45 +05:30
@include media-breakpoint-up(lg) {
height: calc(100vh - #{$issue-board-list-difference-lg});
}
2018-05-09 12:01:36 +05:30
.with-performance-bar & {
2018-12-13 13:39:08 +05:30
height: calc(100vh - #{$issue-board-list-difference-xs} - #{$performance-bar-height});
2018-05-09 12:01:36 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-only(sm) {
2018-12-13 13:39:08 +05:30
height: calc(100vh - #{$issue-board-list-difference-sm} - #{$performance-bar-height});
2018-05-09 12:01:36 +05:30
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2018-12-13 13:39:08 +05:30
height: calc(100vh - #{$issue-board-list-difference-md} - #{$performance-bar-height});
2018-05-09 12:01:36 +05:30
}
2020-10-24 23:57:45 +05:30
@include media-breakpoint-up(lg) {
height: calc(100vh - #{$issue-board-list-difference-lg} - #{$performance-bar-height});
}
2016-09-13 17:45:13 +05:30
}
}
.board {
2016-09-29 09:46:39 +05:30
width: calc(85vw - 15px);
2016-09-13 17:45:13 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2016-09-29 09:46:39 +05:30
width: 400px;
2016-09-13 17:45:13 +05:30
}
2017-09-10 17:25:29 +05:30
2019-09-30 21:07:59 +05:30
.board-title-caret {
border-radius: $border-radius-default;
2020-06-23 00:09:42 +05:30
line-height: $gl-spacing-scale-5;
&.btn svg {
top: 0;
}
2019-09-30 21:07:59 +05:30
&:hover {
2021-01-03 14:25:43 +05:30
background-color: var(--gray-50, $gray-50);
2019-09-30 21:07:59 +05:30
transition: background-color 0.1s linear;
}
}
&:not(.is-collapsed) {
.board-title-caret {
2020-06-23 00:09:42 +05:30
margin-right: $gl-padding-4;
2017-09-10 17:25:29 +05:30
}
}
&.is-collapsed {
width: 50px;
2019-09-30 21:07:59 +05:30
.board-title-caret {
margin-top: 1px;
}
.board-title-text > span,
.issue-count-badge > span {
height: 16px;
// Force the height to be equal to the parent's width while centering the contents.
// The contents *should* be about 16 px.
// We do this because the flow of elements isn't affected by the rotate transform, so we must ensure that a
// rotated element has square dimensions so it won't overlap with its siblings.
margin: calc(50% - 8px) 0;
transform: rotate(90deg);
transform-origin: center;
2017-09-10 17:25:29 +05:30
}
2019-03-02 22:35:43 +05:30
}
2016-09-13 17:45:13 +05:30
}
.board-inner {
font-size: $issue-boards-font-size;
2021-01-03 14:25:43 +05:30
background: var(--gray-10, $gray-10);
border: 1px solid var(--gray-100, $gray-100);
2016-09-13 17:45:13 +05:30
}
2021-03-11 19:13:27 +05:30
// to highlight columns we have animated pulse of box-shadow
// we don't want to actually animate the box-shadow property
// because that causes costly repaints. Instead we can add a
// pseudo-element that is the same size as our element, then
// animate opacity/transform to give a soothing single pulse
.board-column-highlighted::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
pointer-events: none;
opacity: 0;
z-index: -1;
box-shadow: 0 0 6px 3px $blue-200;
animation-name: board-column-flash-border;
animation-duration: 1.2s;
animation-fill-mode: forwards;
animation-timing-function: ease-in-out;
}
@keyframes board-column-flash-border {
0%,
100% {
opacity: 0;
transform: scale(0.98);
}
25%,
75% {
opacity: 1;
transform: scale(0.99);
}
50% {
opacity: 1;
transform: scale(1);
}
}
2016-09-13 17:45:13 +05:30
.board-header {
2018-03-17 18:26:18 +05:30
&.has-border::before {
2016-09-13 17:45:13 +05:30
border-top: 3px solid;
2018-03-17 18:26:18 +05:30
border-color: inherit;
border-top-left-radius: $border-radius-default;
border-top-right-radius: $border-radius-default;
content: '';
position: absolute;
width: calc(100% + 2px);
top: 0;
left: 0;
2017-08-17 22:00:37 +05:30
margin-top: -1px;
margin-right: -1px;
margin-left: -1px;
padding-top: 1px;
padding-right: 1px;
padding-left: 1px;
2016-09-13 17:45:13 +05:30
.board-title {
padding-top: ($gl-padding - 3px);
2017-09-10 17:25:29 +05:30
padding-bottom: $gl-padding;
2016-09-13 17:45:13 +05:30
}
}
}
.board-title {
2021-01-03 14:25:43 +05:30
border-bottom: 1px solid var(--gray-100, $gray-100);
2020-10-24 23:57:45 +05:30
height: 3rem;
2020-01-01 13:55:28 +05:30
.js-max-issue-size::before {
content: '/';
}
2018-03-17 18:26:18 +05:30
}
2017-08-17 22:00:37 +05:30
.board-list-component {
2019-03-02 22:35:43 +05:30
min-height: 0; // firefox fix
2017-08-17 22:00:37 +05:30
}
.board-list {
2018-12-05 23:21:45 +05:30
overflow-y: auto;
2016-09-13 17:45:13 +05:30
overflow-x: hidden;
}
.board-list-loading {
margin-top: 10px;
2016-09-29 09:46:39 +05:30
font-size: (26px / $issue-boards-font-size) * 1em;
2016-09-13 17:45:13 +05:30
}
2018-11-08 19:23:39 +05:30
.board-card {
2021-01-03 14:25:43 +05:30
background: var(--white, $white);
border: 1px solid var(--gray-100, $gray-100);
box-shadow: 0 1px 2px rgba(var(--black, $black), 0.1);
2018-12-13 13:39:08 +05:30
line-height: $gl-padding;
2019-07-31 22:56:46 +05:30
list-style: none;
2019-12-21 20:55:43 +05:30
position: relative;
2016-09-13 17:45:13 +05:30
&:not(:last-child) {
2018-12-13 13:39:08 +05:30
margin-bottom: $gl-padding-8;
2016-09-13 17:45:13 +05:30
}
2017-08-17 22:00:37 +05:30
&.is-active,
2018-11-08 19:23:39 +05:30
&.is-active .board-card-assignee:hover a {
2021-01-03 14:25:43 +05:30
background-color: var(--blue-50, $blue-50);
2017-08-17 22:00:37 +05:30
}
2019-12-21 20:55:43 +05:30
&.multi-select {
2021-01-03 14:25:43 +05:30
border-color: var(--blue-200, $blue-200);
background-color: var(--blue-50, $blue-50);
2019-12-21 20:55:43 +05:30
}
2020-04-08 14:13:33 +05:30
.gl-label {
margin-top: 4px;
margin-right: 4px;
2018-12-13 13:39:08 +05:30
}
2016-09-13 17:45:13 +05:30
.confidential-icon {
2021-01-03 14:25:43 +05:30
color: var(--orange-500, $orange-500);
2018-12-13 13:39:08 +05:30
cursor: help;
}
2020-03-13 15:44:24 +05:30
.issue-blocked-icon {
2021-01-03 14:25:43 +05:30
color: var(--red-500, $red-500);
2020-03-13 15:44:24 +05:30
}
2018-12-13 13:39:08 +05:30
@include media-breakpoint-down(md) {
padding: $gl-padding-8;
2016-09-13 17:45:13 +05:30
}
}
2018-11-08 19:23:39 +05:30
.board-card-title {
@include overflow-break-word();
2016-09-13 17:45:13 +05:30
font-size: 1em;
a {
2021-01-03 14:25:43 +05:30
color: var(--gray-900, $gray-900);
2018-12-13 13:39:08 +05:30
}
@include media-breakpoint-down(md) {
font-size: $label-font-size;
2017-08-17 22:00:37 +05:30
}
}
2018-12-13 13:39:08 +05:30
.board-card-assignee {
margin-top: -$gl-padding-4;
margin-bottom: -$gl-padding-4;
.avatar-counter {
vertical-align: middle;
line-height: $gl-padding-24;
min-width: $gl-padding-24;
height: $gl-padding-24;
border-radius: $gl-padding-24;
2021-01-03 14:25:43 +05:30
background-color: var(--gray-400, $gray-400);
2018-12-13 13:39:08 +05:30
font-size: $gl-font-size-xs;
cursor: help;
font-weight: $gl-font-weight-bold;
margin-left: -$gl-padding-4;
border: 0;
padding: 0 $gl-padding-4;
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
@include media-breakpoint-down(md) {
min-width: auto;
height: $gl-padding;
border-radius: $gl-padding;
line-height: $gl-padding;
2017-08-17 22:00:37 +05:30
}
2018-12-13 13:39:08 +05:30
}
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
img {
vertical-align: top;
}
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
.user-avatar-link:not(:only-child) {
margin-left: -$gl-padding-4;
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
&:nth-of-type(1) {
2017-08-17 22:00:37 +05:30
z-index: 2;
}
2018-12-13 13:39:08 +05:30
&:nth-of-type(2) {
2017-08-17 22:00:37 +05:30
z-index: 1;
}
2018-12-13 13:39:08 +05:30
}
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
.avatar {
@include media-breakpoint-down(md) {
width: $gl-padding;
height: $gl-padding;
2017-08-17 22:00:37 +05:30
}
}
2018-12-13 13:39:08 +05:30
@include media-breakpoint-down(md) {
margin-top: 0;
margin-bottom: 0;
2016-09-13 17:45:13 +05:30
}
}
2018-12-13 13:39:08 +05:30
.board-card-number {
font-size: $gl-font-size-xs;
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2016-09-13 17:45:13 +05:30
2018-12-13 13:39:08 +05:30
@include media-breakpoint-up(md) {
font-size: $label-font-size;
2016-09-13 17:45:13 +05:30
}
}
2016-09-29 09:46:39 +05:30
.board-list-count {
padding: 10px 0;
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2016-09-29 09:46:39 +05:30
font-size: 13px;
2016-09-13 17:45:13 +05:30
}
2016-11-03 12:29:30 +05:30
.board-new-issue-form {
2018-03-17 18:26:18 +05:30
z-index: 4;
2016-11-03 12:29:30 +05:30
margin: 5px;
}
2020-03-13 15:44:24 +05:30
.right-sidebar.issue-boards-sidebar {
2017-08-17 22:00:37 +05:30
.gutter-toggle {
bottom: 15px;
width: 22px;
2020-03-13 15:44:24 +05:30
padding-left: $gl-padding-32;
2017-08-17 22:00:37 +05:30
svg {
position: absolute;
top: 50%;
2020-03-13 15:44:24 +05:30
right: 0;
2017-08-17 22:00:37 +05:30
margin-top: (-11px / 2);
2020-03-13 15:44:24 +05:30
height: $gl-font-size-12;
width: $gl-font-size-12;
2017-08-17 22:00:37 +05:30
}
}
.issuable-header-text {
2018-11-08 19:23:39 +05:30
@include overflow-break-word();
2017-08-17 22:00:37 +05:30
padding-right: 35px;
}
}
.right-sidebar.right-sidebar-expanded {
&.boards-sidebar-slide-enter-active,
&.boards-sidebar-slide-leave-active {
2018-12-13 13:39:08 +05:30
transition: width $sidebar-transition-duration, padding $sidebar-transition-duration;
2017-08-17 22:00:37 +05:30
}
&.boards-sidebar-slide-enter,
&.boards-sidebar-slide-leave-active {
width: 0;
padding-left: 0;
padding-right: 0;
}
}
.add-issues-modal {
2018-05-09 12:01:36 +05:30
background-color: rgba($black, 0.3);
2017-08-17 22:00:37 +05:30
z-index: 9999;
}
.add-issues-container {
width: 90vw;
height: 85vh;
max-width: 1100px;
min-height: 500px;
padding: 25px 15px 0;
2021-01-03 14:25:43 +05:30
background-color: var(--white, $white);
box-shadow: 0 2px 12px rgba(var(--black, $black), 0.5);
2017-08-17 22:00:37 +05:30
.empty-state {
&.add-issues-empty-state-filter {
flex-direction: column;
justify-content: center;
}
.svg-content {
margin-top: -40px;
}
}
}
.add-issues-header {
margin: -25px -15px -5px;
border-bottom: 1px solid $border-color;
border-top-right-radius: $border-radius-default;
border-top-left-radius: $border-radius-default;
> h2 {
font-size: 18px;
}
}
.add-issues-list-column {
width: 100%;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2017-08-17 22:00:37 +05:30
width: 50%;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2017-08-17 22:00:37 +05:30
width: (100% / 3);
}
}
.add-issues-list {
padding-top: 3px;
margin-left: -$gl-vert-padding;
margin-right: -$gl-vert-padding;
overflow-y: scroll;
2018-11-08 19:23:39 +05:30
.board-card-parent {
2017-08-17 22:00:37 +05:30
padding: 0 5px 5px;
}
2018-11-08 19:23:39 +05:30
.board-card {
2021-01-03 14:25:43 +05:30
border: 1px solid var(--gray-900, $gray-900);
box-shadow: 0 1px 2px rgba(var(--black, $black), 0.4);
2017-08-17 22:00:37 +05:30
cursor: pointer;
}
}
.add-issues-footer {
margin: auto -15px 0;
padding-left: 15px;
padding-right: 15px;
border-bottom-right-radius: $border-radius-default;
border-bottom-left-radius: $border-radius-default;
}
.add-issues-footer-to-list {
padding-left: $gl-vert-padding;
padding-right: $gl-vert-padding;
2019-12-26 22:10:19 +05:30
line-height: $input-height;
2017-08-17 22:00:37 +05:30
}
.issue-card-selected {
position: absolute;
right: -3px;
top: -3px;
width: 17px;
2021-01-03 14:25:43 +05:30
background-color: var(--blue-500, $blue-500);
2020-04-22 19:07:51 +05:30
color: $white;
2021-01-03 14:25:43 +05:30
border: 1px solid var(--blue-600, $blue-600);
2017-08-17 22:00:37 +05:30
font-size: 9px;
line-height: 15px;
border-radius: 50%;
}
2018-12-13 13:39:08 +05:30
.board-card-info {
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2018-12-13 13:39:08 +05:30
white-space: nowrap;
margin-right: $gl-padding-8;
&:not(.board-card-weight) {
cursor: help;
}
&.board-card-weight {
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2018-12-13 13:39:08 +05:30
cursor: pointer;
&:hover {
color: initial;
text-decoration: underline;
}
}
.board-card-info-icon {
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2018-12-13 13:39:08 +05:30
margin-right: $gl-padding-4;
2020-10-24 23:57:45 +05:30
vertical-align: text-top;
2018-12-13 13:39:08 +05:30
}
@include media-breakpoint-down(md) {
font-size: $label-font-size;
}
}
2021-04-17 20:07:23 +05:30
.board-item-path.js-show-tooltip {
2018-12-13 13:39:08 +05:30
cursor: help;
}
2019-12-26 22:10:19 +05:30
2020-06-23 00:09:42 +05:30
.board-labels-toggle-wrapper,
.board-swimlanes-toggle-wrapper {
2019-12-26 22:10:19 +05:30
/**
* Make the wrapper the same height as a button so it aligns properly when the
* filtered-search-box input element increases in size on Linux smaller breakpoints
*/
height: $input-height;
}
2020-05-24 23:13:21 +05:30
.issue-boards-content.is-focused {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
2021-01-03 14:25:43 +05:30
background: var(--white, $white);
2020-05-24 23:13:21 +05:30
z-index: 9000;
@include media-breakpoint-down(sm) {
padding-top: 10px;
}
.boards-list {
height: calc(100vh - #{$issue-boards-filter-height});
overflow-x: scroll;
}
.issue-boards-sidebar {
height: 100%;
top: 0;
}
}
2020-06-23 00:09:42 +05:30
2020-07-28 23:09:34 +05:30
.board-header-collapsed-info-icon:hover {
2021-01-03 14:25:43 +05:30
color: var(--gray-900, $gray-900);
2020-06-23 00:09:42 +05:30
}