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

551 lines
10 KiB
SCSS
Raw Normal View History

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;
color: $gl-text-color-secondary;
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;
}
}
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
}
2016-09-13 17:45:13 +05:30
.boards-list {
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});
}
.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
}
2016-09-13 17:45:13 +05:30
}
}
.board {
2019-12-04 20:38:33 +05:30
// the next line cannot be replaced with .d-inline-block because it breaks display: none of SortableJS
// see https://gitlab.com/gitlab-org/gitlab-foss/issues/64828
display: inline-block;
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 {
cursor: pointer;
border-radius: $border-radius-default;
padding: 4px;
&:hover {
background-color: $gray-dark;
transition: background-color 0.1s linear;
}
}
&:not(.is-collapsed) {
.board-title-caret {
margin: 0 $gl-padding-4 0 -10px;
2017-09-10 17:25:29 +05:30
}
}
&.is-collapsed {
width: 50px;
.board-title {
2019-09-30 21:07:59 +05:30
flex-direction: column;
height: 100%;
padding: $gl-padding-8 0;
}
.board-title-caret {
margin-top: 1px;
}
.user-avatar-link,
.milestone-icon {
margin-top: $gl-padding-8;
transform: rotate(90deg);
}
.board-title-text {
flex-grow: 0;
margin: $gl-padding-8 0;
.board-title-main-text {
2017-09-10 17:25:29 +05:30
display: block;
2019-09-30 21:07:59 +05:30
}
.board-title-sub-text {
display: none;
2017-09-10 17:25:29 +05:30
}
}
2019-09-30 21:07:59 +05:30
.issue-count-badge {
border: 0;
white-space: nowrap;
2020-03-09 13:42:32 +05:30
padding: 0;
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: 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;
2017-08-17 22:00:37 +05:30
background: $gray-light;
2016-09-13 17:45:13 +05:30
border: 1px solid $border-color;
}
.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 {
2019-09-30 21:07:59 +05:30
align-items: center;
2016-09-13 17:45:13 +05:30
font-size: 1em;
border-bottom: 1px solid $border-color;
2019-09-30 21:07:59 +05:30
padding: $gl-padding-8 $gl-padding;
2020-01-01 13:55:28 +05:30
.js-max-issue-size::before {
content: '/';
}
2018-03-17 18:26:18 +05:30
}
.board-title-text {
2019-09-30 21:07:59 +05:30
flex-grow: 1;
2016-09-13 17:45:13 +05:30
}
.board-delete {
margin-right: 10px;
color: $gray-darkest;
background-color: transparent;
outline: 0;
&:hover {
2018-11-20 20:47:30 +05:30
color: $blue-600;
2016-09-13 17:45:13 +05:30
}
}
2019-07-07 11:18:12 +05:30
.board-blank-state,
.board-promotion-state {
2017-08-17 22:00:37 +05:30
background-color: $white-light;
2019-03-02 22:35:43 +05:30
flex: 1;
overflow-y: auto;
overflow-x: hidden;
2016-09-13 17:45:13 +05:30
}
.board-blank-state-list {
> li:not(:last-child) {
margin-bottom: 8px;
}
.label-color {
top: 2px;
width: 16px;
height: 16px;
margin-right: 3px;
}
}
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 {
2017-08-17 22:00:37 +05:30
background: $white-light;
2019-03-02 22:35:43 +05:30
border: 1px solid $gray-200;
2017-08-17 22:00:37 +05:30
box-shadow: 0 1px 2px $issue-boards-card-shadow;
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 {
2018-11-20 20:47:30 +05:30
background-color: $blue-50;
2017-08-17 22:00:37 +05:30
}
2019-12-21 20:55:43 +05:30
&.multi-select {
border-color: $blue-200;
background-color: $blue-50;
}
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 {
2018-12-13 13:39:08 +05:30
color: $orange-600;
cursor: help;
}
2020-03-09 13:42:32 +05:30
.issue-blocked-icon {
color: $red-500;
}
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 {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
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-11-08 19:23:39 +05:30
.board-card-header {
2019-07-31 22:56:46 +05:30
text-align: initial;
2018-12-13 13:39:08 +05:30
}
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;
background-color: $gl-text-color-tertiary;
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 {
margin: 0;
2017-08-17 22:00:37 +05:30
2018-12-13 13:39:08 +05:30
@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;
color: $gl-text-color-secondary;
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;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
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-09 13:42:32 +05:30
.right-sidebar.issue-boards-sidebar {
2017-08-17 22:00:37 +05:30
.gutter-toggle {
bottom: 15px;
width: 22px;
2020-03-09 13:42:32 +05:30
padding-left: $gl-padding-32;
2017-08-17 22:00:37 +05:30
svg {
position: absolute;
top: 50%;
2020-03-09 13:42:32 +05:30
right: 0;
2017-08-17 22:00:37 +05:30
margin-top: (-11px / 2);
2020-03-09 13:42:32 +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;
background-color: $white-light;
2018-05-09 12:01:36 +05:30
box-shadow: 0 2px 12px rgba($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 {
2017-08-17 22:00:37 +05:30
border: 1px solid $border-gray-dark;
2018-05-09 12:01:36 +05:30
box-shadow: 0 1px 2px rgba($issue-boards-card-shadow, 0.3);
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;
background-color: $blue-500;
color: $white-light;
border: 1px solid $blue-600;
font-size: 9px;
line-height: 15px;
border-radius: 50%;
}
2018-12-13 13:39:08 +05:30
.board-card-info {
color: $gl-text-color-secondary;
white-space: nowrap;
margin-right: $gl-padding-8;
&:not(.board-card-weight) {
cursor: help;
}
&.board-card-weight {
color: $gl-text-color;
cursor: pointer;
&:hover {
color: initial;
text-decoration: underline;
}
}
.board-card-info-icon {
2019-03-02 22:35:43 +05:30
color: $gray-600;
2018-12-13 13:39:08 +05:30
margin-right: $gl-padding-4;
}
@include media-breakpoint-down(md) {
font-size: $label-font-size;
}
}
.board-issue-path.js-show-tooltip {
cursor: help;
}
2019-12-26 22:10:19 +05:30
.board-labels-toggle-wrapper {
/**
* 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;
}