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

488 lines
9.5 KiB
SCSS
Raw Normal View History

2021-01-03 14:25:43 +05:30
@import 'mixins_and_variables_and_functions';
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
.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'] {
2021-04-29 21:17:54 +05:30
.filtered-search-wrapper {
display: none !important;
2021-04-17 20:07:23 +05:30
}
}
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 {
2021-10-27 15:23:28 +05:30
@include gl-focus;
2021-03-11 19:13:27 +05:30
content: '';
position: absolute;
2021-10-27 15:23:28 +05:30
top: -1px;
bottom: -1px;
left: -1px;
right: -1px;
2021-03-11 19:13:27 +05:30
pointer-events: none;
opacity: 0;
2021-10-27 15:23:28 +05:30
border-radius: $border-radius-default;
2021-03-11 19:13:27 +05:30
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;
}
25%,
75% {
opacity: 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
}
2021-11-11 11:23:49 +05:30
.confidential-icon,
.hidden-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;
}
2021-04-29 21:17:54 +05:30
.right-sidebar.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;
}
}
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
2021-11-18 22:05:49 +05:30
.issue-boards-content:not(.breadcrumbs) {
2021-11-11 11:23:49 +05:30
isolation: isolate;
}
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;
}
2021-04-29 21:17:54 +05:30
.boards-sidebar {
2020-05-24 23:13:21 +05:30
height: 100%;
top: 0;
}
}
2020-06-23 00:09:42 +05:30
2021-04-29 21:17:54 +05:30
.boards-sidebar {
.sidebar-collapsed-icon {
display: none;
}
2021-09-30 23:02:18 +05:30
.gl-drawer-header {
align-items: flex-start;
}
2021-10-27 15:23:28 +05:30
.labels-select-wrapper.is-embedded .labels-select-wrapper.is-embedded {
width: auto;
}
2021-12-11 22:18:48 +05:30
.show.dropdown .dropdown-menu {
@include gl-w-full;
}
2021-04-29 21:17:54 +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
}
2021-04-29 21:17:54 +05:30
.board-card-skeleton {
height: 110px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
.board-card-skeleton-inner {
width: 340px;
height: 100px;
}
}