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

242 lines
4.6 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
}
2017-08-17 22:00:37 +05:30
.boards-app {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2022-08-27 11:52:29 +05:30
transition: width $gl-transition-duration-medium;
2018-03-17 18:26:18 +05:30
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 {
2016-09-13 17:45:13 +05:30
overflow-x: scroll;
2018-05-09 12:01:36 +05:30
min-height: 200px;
2022-07-16 23:28:13 +05:30
border-left: 8px solid var(--gray-10, $white);
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
&.is-collapsed {
2019-09-30 21:07:59 +05:30
.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-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
}
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;
}
}
2018-11-08 19:23:39 +05:30
.board-card {
2022-07-16 23:28:13 +05:30
background: var(--gray-10, $white);
2021-01-03 14:25:43 +05:30
box-shadow: 0 1px 2px rgba(var(--black, $black), 0.1);
2022-07-16 23:28:13 +05:30
2022-10-11 01:57:18 +05:30
&:last-child {
@include gl-mb-0;
2018-12-13 13:39:08 +05:30
}
2022-10-11 01:57:18 +05:30
.move-to-position {
visibility: hidden;
2018-12-13 13:39:08 +05:30
}
2022-10-11 01:57:18 +05:30
&:hover .move-to-position {
visibility: visible;
2020-03-13 15:44:24 +05:30
}
2022-10-11 01:57:18 +05:30
@include media-breakpoint-down(sm) {
.move-to-position {
visibility: visible;
}
2016-09-13 17:45:13 +05:30
}
}
2018-11-08 19:23:39 +05:30
.board-card-title {
2022-10-11 01:57:18 +05:30
width: 95%;
2016-09-13 17:45:13 +05:30
a {
2022-10-11 01:57:18 +05:30
@include media-breakpoint-down(md) {
font-size: $gl-font-size-sm;
}
2017-08-17 22:00:37 +05:30
}
}
2018-12-13 13:39:08 +05:30
.board-card-assignee {
.avatar-counter {
min-width: $gl-padding-24;
height: $gl-padding-24;
border-radius: $gl-padding-24;
font-size: $gl-font-size-xs;
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
.user-avatar-link:not(:only-child) {
2022-10-11 01:57:18 +05:30
margin-left: -$gl-padding;
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) {
2022-10-11 01:57:18 +05:30
margin-bottom: 0 !important;
2016-09-13 17:45:13 +05:30
}
}
2018-12-13 13:39:08 +05:30
.board-card-number {
2022-10-11 01:57:18 +05:30
@include media-breakpoint-down(md) {
font-size: $gl-font-size-sm;
2016-09-13 17:45:13 +05:30
}
}
2016-09-29 09:46:39 +05:30
.board-list-count {
font-size: 13px;
2016-09-13 17:45:13 +05:30
}
2016-11-03 12:29:30 +05:30
2018-12-13 13:39:08 +05:30
.board-card-info {
2022-10-11 01:57:18 +05:30
&.board-card-weight:hover {
color: initial;
2018-12-13 13:39:08 +05:30
}
.board-card-info-icon {
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
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 {
2023-03-04 22:38:38 +05:30
$focus-mode-z-index: 9000;
2020-05-24 23:13:21 +05:30
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
2021-01-03 14:25:43 +05:30
background: var(--white, $white);
2023-03-04 22:38:38 +05:30
z-index: $focus-mode-z-index;
2020-05-24 23:13:21 +05:30
@include media-breakpoint-down(sm) {
padding-top: 10px;
}
.boards-list {
height: calc(100vh - #{$issue-boards-filter-height});
}
2023-03-04 22:38:38 +05:30
// Use !important for these as top and z-index are set on style attribute
// in gitlab-ui; https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1805
~ #js-right-sidebar-portal .boards-sidebar {
top: 0 !important;
z-index: calc(#{$focus-mode-z-index} + 1) !important;
2020-05-24 23:13:21 +05:30
}
}
2020-06-23 00:09:42 +05:30
2021-04-29 21:17:54 +05:30
.boards-sidebar {
2023-03-04 22:38:38 +05:30
top: $header-height !important;
height: auto;
bottom: 0;
padding-bottom: 0.5rem;
.with-performance-bar & {
top: calc(#{$header-height} + #{$performance-bar-height}) !important;
}
2021-04-29 21:17:54 +05:30
.sidebar-collapsed-icon {
2022-10-11 01:57:18 +05:30
@include gl-display-none;
2021-10-27 15:23:28 +05:30
}
2021-12-11 22:18:48 +05:30
.show.dropdown .dropdown-menu {
@include gl-w-full;
}
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;
}
}