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

651 lines
11 KiB
SCSS
Raw Normal View History

2018-05-09 12:01:36 +05:30
@import './issues/issue_count_badge';
2017-09-10 17:25:29 +05:30
2016-09-13 17:45:13 +05:30
[v-cloak] {
display: none;
}
.user-can-drag {
cursor: -webkit-grab;
cursor: grab;
}
.is-dragging {
// Important because plugin sets inline CSS
2017-09-10 17:25:29 +05:30
opacity: 1 !important;
2016-09-29 09:46:39 +05:30
2016-09-13 17:45:13 +05:30
* {
2017-08-17 22:00:37 +05:30
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2016-09-13 17:45:13 +05:30
// !important to make sure no style can override this when dragging
2017-09-10 17:25:29 +05:30
cursor: -webkit-grabbing !important;
cursor: grabbing !important;
2016-09-13 17:45:13 +05:30
}
}
2016-09-29 09:46:39 +05:30
.is-ghost {
opacity: 0.3;
}
2016-09-13 17:45:13 +05:30
.dropdown-menu-issues-board-new {
width: 320px;
2018-05-09 12:01:36 +05:30
.open & {
max-height: 400px;
}
2016-09-13 17:45:13 +05:30
.dropdown-content {
2018-05-09 12:01:36 +05:30
max-height: 162px;
2017-08-17 22:00:37 +05:30
}
2016-09-13 17:45:13 +05:30
}
.issue-board-dropdown-content {
margin: 0 8px 10px;
padding-bottom: 10px;
border-bottom: 1px solid $dropdown-divider-color;
> p {
margin: 0;
font-size: 14px;
}
}
.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 {
position: relative;
2018-03-17 18:26:18 +05:30
@media (min-width: $screen-sm-min) {
transition: width $sidebar-transition-duration;
width: 100%;
&.is-compact {
width: calc(100% - #{$gutter_width});
}
}
2017-08-17 22:00:37 +05:30
}
2016-09-13 17:45:13 +05:30
.boards-app-loading {
width: 100%;
font-size: 34px;
}
.boards-list {
2018-05-09 12:01:36 +05:30
height: calc(100vh - #{$issue-board-list-difference-xs});
2016-09-29 09:46:39 +05:30
width: 100%;
2018-05-09 12:01:36 +05:30
padding: $gl-padding ($gl-padding / 2);
2016-09-13 17:45:13 +05:30
overflow-x: scroll;
2016-09-29 09:46:39 +05:30
white-space: nowrap;
2018-05-09 12:01:36 +05:30
min-height: 200px;
2016-09-13 17:45:13 +05:30
2018-03-17 18:26:18 +05:30
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
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-03-17 18:26:18 +05:30
@media (min-width: $screen-md-min) {
2018-05-09 12:01:36 +05:30
height: calc(100vh - #{$issue-board-list-difference-md});
}
.with-performance-bar & {
height: calc(
100vh - #{$issue-board-list-difference-xs} - #{$performance-bar-height}
);
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
height: calc(
100vh - #{$issue-board-list-difference-sm} - #{$performance-bar-height}
);
}
@media (min-width: $screen-md-min) {
height: calc(
100vh - #{$issue-board-list-difference-md} - #{$performance-bar-height}
);
}
2016-09-13 17:45:13 +05:30
}
}
.board {
2016-09-29 09:46:39 +05:30
display: inline-block;
width: calc(85vw - 15px);
height: 100%;
2016-09-13 17:45:13 +05:30
padding-right: ($gl-padding / 2);
padding-left: ($gl-padding / 2);
2016-09-29 09:46:39 +05:30
white-space: normal;
vertical-align: top;
2016-09-13 17:45:13 +05:30
@media (min-width: $screen-sm-min) {
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-expandable {
.board-header {
cursor: pointer;
}
}
&.is-collapsed {
width: 50px;
.board-header {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.board-title {
padding: 0;
border-bottom: 0;
> span {
display: block;
2018-03-17 18:26:18 +05:30
transform: rotate(90deg) translate(35px, 10px);
2017-09-10 17:25:29 +05:30
}
}
.board-title-expandable-toggle {
position: absolute;
top: 50%;
left: 50%;
margin-left: -10px;
}
.board-list-component,
.issue-count-badge {
display: none;
}
}
2016-09-13 17:45:13 +05:30
}
.board-inner {
2017-09-10 17:25:29 +05:30
position: relative;
2016-09-29 09:46:39 +05:30
height: 100%;
2016-09-13 17:45:13 +05:30
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;
border-radius: $border-radius-default;
}
.board-header {
2018-03-17 18:26:18 +05:30
position: relative;
2016-09-13 17:45:13 +05:30
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-inner-container {
border-bottom: 1px solid $border-color;
padding: $gl-padding;
}
.board-title {
margin: 0;
2018-03-17 18:26:18 +05:30
padding: 12px $gl-padding;
2016-09-13 17:45:13 +05:30
font-size: 1em;
border-bottom: 1px solid $border-color;
2018-03-17 18:26:18 +05:30
display: flex;
align-items: center;
}
.board-title-text {
margin-right: auto;
2016-09-13 17:45:13 +05:30
}
.board-delete {
margin-right: 10px;
padding: 0;
color: $gray-darkest;
background-color: transparent;
border: 0;
outline: 0;
&:hover {
color: $gl-link-color;
}
}
.board-blank-state {
2016-11-03 12:29:30 +05:30
height: calc(100% - 49px);
2016-09-13 17:45:13 +05:30
padding: $gl-padding;
2017-08-17 22:00:37 +05:30
background-color: $white-light;
2016-09-13 17:45:13 +05:30
}
.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;
}
}
2017-08-17 22:00:37 +05:30
.board-list-component {
2016-09-29 09:46:39 +05:30
height: calc(100% - 49px);
2017-09-10 17:25:29 +05:30
overflow: hidden;
2018-03-17 18:26:18 +05:30
position: relative;
2017-08-17 22:00:37 +05:30
}
.board-list {
height: 100%;
2017-09-10 17:25:29 +05:30
width: 100%;
2016-09-13 17:45:13 +05:30
margin-bottom: 0;
padding: 5px;
2016-09-29 09:46:39 +05:30
list-style: none;
2016-09-13 17:45:13 +05:30
overflow-y: scroll;
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
}
.card {
position: relative;
2017-08-17 22:00:37 +05:30
padding: 11px 10px 11px $gl-padding;
background: $white-light;
2016-09-13 17:45:13 +05:30
border-radius: $border-radius-default;
2017-08-17 22:00:37 +05:30
box-shadow: 0 1px 2px $issue-boards-card-shadow;
2016-09-13 17:45:13 +05:30
list-style: none;
&:not(:last-child) {
margin-bottom: 5px;
}
2017-08-17 22:00:37 +05:30
&.is-active,
&.is-active .card-assignee:hover a {
background-color: $row-hover;
&:first-child:not(:only-child) {
box-shadow: -10px 0 10px 1px $row-hover;
}
}
2016-09-13 17:45:13 +05:30
.label {
border: 0;
outline: 0;
}
.confidential-icon {
2017-08-17 22:00:37 +05:30
position: relative;
top: 1px;
2016-09-13 17:45:13 +05:30
margin-right: 5px;
}
}
.card-title {
2017-08-17 22:00:37 +05:30
margin: 0 30px 0 0;
2016-09-13 17:45:13 +05:30
font-size: 1em;
2017-08-17 22:00:37 +05:30
line-height: inherit;
2016-09-13 17:45:13 +05:30
a {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-11-03 12:29:30 +05:30
word-wrap: break-word;
2017-08-17 22:00:37 +05:30
margin-right: 2px;
}
}
.card-header {
display: flex;
min-height: 20px;
.card-assignee {
display: flex;
justify-content: flex-end;
position: absolute;
right: 15px;
height: 20px;
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;
}
}
}
}
.avatar {
margin: 0;
2016-09-13 17:45:13 +05:30
}
}
.card-footer {
2017-08-17 22:00:37 +05:30
margin: 0 0 5px;
2016-09-13 17:45:13 +05:30
.label {
2017-08-17 22:00:37 +05:30
margin-top: 5px;
margin-right: 6px;
2016-09-13 17:45:13 +05:30
}
}
.card-number {
2017-08-17 22:00:37 +05:30
font-size: 12px;
color: $gl-text-color-secondary;
2016-09-29 09:46:39 +05:30
}
.issue-boards-search {
2017-08-17 22:00:37 +05:30
width: 395px;
2016-09-29 09:46:39 +05:30
.form-control {
display: inline-block;
width: 210px;
}
}
.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;
> .fa {
margin-right: 5px;
}
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;
}
2018-03-17 18:26:18 +05:30
.page-with-contextual-sidebar.layout-page .issue-boards-sidebar {
2017-08-17 22:00:37 +05:30
.issuable-sidebar-header {
position: relative;
}
.gutter-toggle {
position: absolute;
top: 0;
bottom: 15px;
right: 0;
width: 22px;
color: $gray-darkest;
svg {
position: absolute;
top: 50%;
margin-top: (-11px / 2);
}
&:hover {
path {
fill: $gray-darkest;
}
}
}
.issuable-header-text {
padding-right: 35px;
> strong {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-08-17 22:00:37 +05:30
}
}
}
.right-sidebar.right-sidebar-expanded {
&.boards-sidebar-slide-enter-active,
&.boards-sidebar-slide-leave-active {
2018-03-17 18:26:18 +05:30
transition: width $sidebar-transition-duration,
2018-05-09 12:01:36 +05:30
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 {
display: -webkit-flex;
display: flex;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
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 {
display: -webkit-flex;
display: flex;
-webkit-flex-direction: column;
flex-direction: column;
width: 90vw;
height: 85vh;
max-width: 1100px;
min-height: 500px;
margin: auto;
padding: 25px 15px 0;
background-color: $white-light;
border-radius: $border-radius-default;
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 {
display: -webkit-flex;
display: flex;
-webkit-flex: 1;
flex: 1;
margin-top: 0;
&.add-issues-empty-state-filter {
-webkit-flex-direction: column;
flex-direction: column;
-webkit-justify-content: center;
justify-content: center;
}
> .row {
width: 100%;
margin: auto 0;
}
.svg-content {
margin-top: -40px;
}
}
}
.add-issues-header {
margin: -25px -15px -5px;
border-top: 0;
border-bottom: 1px solid $border-color;
border-top-right-radius: $border-radius-default;
border-top-left-radius: $border-radius-default;
> h2 {
margin: 0;
font-size: 18px;
}
}
.add-issues-search {
display: -webkit-flex;
display: flex;
.issues-filters {
-webkit-flex: 1;
flex: 1;
}
}
.add-issues-list-column {
width: 100%;
@media (min-width: $screen-sm-min) {
width: 50%;
}
@media (min-width: $screen-md-min) {
width: (100% / 3);
}
}
.add-issues-list {
display: -webkit-flex;
display: flex;
-webkit-flex: 1;
flex: 1;
padding-top: 3px;
margin-left: -$gl-vert-padding;
margin-right: -$gl-vert-padding;
overflow-y: scroll;
.card-parent {
padding: 0 5px 5px;
}
.card {
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-list-loading {
-webkit-align-self: center;
align-self: center;
width: 100%;
padding-left: $gl-vert-padding;
padding-right: $gl-vert-padding;
font-size: 35px;
}
.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;
line-height: 34px;
}
.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%;
}
.modal-filters {
display: flex;
> .dropdown {
display: none;
margin-right: 10px;
@media (min-width: $screen-sm-min) {
display: block;
}
}
.dropdown-menu-toggle {
width: 100px;
@media (min-width: $screen-md-min) {
width: 140px;
}
}
}