gitlab-org--gitlab-foss/app/assets/stylesheets/pages/boards.scss

600 lines
9.8 KiB
SCSS
Raw Normal View History

[v-cloak] {
display: none;
}
.user-can-drag {
cursor: -webkit-grab;
cursor: grab;
}
2016-08-05 11:19:45 -04:00
.is-dragging {
2016-08-19 05:07:51 -04:00
// Important because plugin sets inline CSS
opacity: 1!important;
2016-08-05 11:19:45 -04:00
* {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2016-08-19 05:07:51 -04:00
// !important to make sure no style can override this when dragging
cursor: -webkit-grabbing!important;
cursor: grabbing!important;
2016-08-05 11:19:45 -04:00
}
}
.is-ghost {
opacity: 0.3;
}
2016-07-29 04:43:29 -04:00
.dropdown-menu-issues-board-new {
width: 320px;
2016-08-02 05:17:33 -04:00
.dropdown-content {
2016-08-05 12:24:16 -04:00
max-height: 150px;
2016-12-02 08:28:35 -05:00
}
2016-07-29 04:43:29 -04:00
}
.issue-board-dropdown-content {
2016-08-02 05:17:33 -04:00
margin: 0 8px 10px;
padding-bottom: 10px;
border-bottom: 1px solid $dropdown-divider-color;
2016-07-29 04:43:29 -04:00
> p {
margin: 0;
2016-08-02 05:17:33 -04:00
font-size: 14px;
2016-07-29 04:43:29 -04:00
}
}
2016-07-22 05:59:26 -04:00
.issue-boards-page {
.content-wrapper {
padding-bottom: 0;
2016-07-22 05:59:26 -04:00
}
}
.boards-app {
position: relative;
2016-07-22 05:59:26 -04:00
}
2016-08-08 11:15:05 -04:00
.boards-app-loading {
width: 100%;
font-size: 34px;
}
2016-07-22 05:59:26 -04:00
.boards-list {
height: calc(100vh - 152px);
width: 100%;
2016-07-22 05:59:26 -04:00
padding-top: 25px;
padding-bottom: 25px;
2016-07-22 05:59:26 -04:00
padding-right: ($gl-padding / 2);
padding-left: ($gl-padding / 2);
overflow-x: scroll;
white-space: nowrap;
2016-08-05 12:01:34 -04:00
@media (min-width: $screen-sm-min) {
height: 475px; // Needed for PhantomJS
2017-05-26 16:31:07 -04:00
// scss-lint:disable DuplicateProperty
height: calc(100vh - 222px);
2017-05-26 16:31:07 -04:00
// scss-lint:enable DuplicateProperty
min-height: 475px;
transition: width .2s;
&.is-compact {
width: calc(100% - 290px);
}
2016-08-05 12:01:34 -04:00
}
2016-07-22 05:59:26 -04:00
}
.board {
display: inline-block;
width: calc(85vw - 15px);
height: 100%;
2016-07-22 05:59:26 -04:00
padding-right: ($gl-padding / 2);
padding-left: ($gl-padding / 2);
white-space: normal;
2016-09-15 09:47:53 -04:00
vertical-align: top;
2016-08-05 12:01:34 -04:00
@media (min-width: $screen-sm-min) {
width: 400px;
2016-08-05 12:01:34 -04:00
}
2016-07-22 05:59:26 -04:00
}
.board-inner {
height: 100%;
2016-07-22 05:59:26 -04:00
font-size: $issue-boards-font-size;
2016-12-12 17:26:21 -05:00
background: $gray-light;
2016-07-22 05:59:26 -04:00
border: 1px solid $border-color;
border-radius: $border-radius-default;
}
.board-header {
border-top-left-radius: $border-radius-default;
border-top-right-radius: $border-radius-default;
&.has-border {
border-top: 3px solid;
margin-top: -1px;
margin-right: -1px;
margin-left: -1px;
padding-top: 1px;
padding-right: 1px;
padding-left: 1px;
.board-title {
padding-top: ($gl-padding - 3px);
}
}
}
2016-07-22 05:59:26 -04:00
.board-inner-container {
border-bottom: 1px solid $border-color;
padding: $gl-padding;
}
.board-title {
2016-08-09 07:10:19 -04:00
position: relative;
2016-07-22 05:59:26 -04:00
margin: 0;
padding: $gl-padding;
2016-07-22 05:59:26 -04:00
font-size: 1em;
border-bottom: 1px solid $border-color;
2016-07-22 05:59:26 -04:00
}
.board-delete {
margin-right: 10px;
padding: 0;
color: $gray-darkest;
background-color: transparent;
border: 0;
2016-07-26 05:46:44 -04:00
outline: 0;
&:hover {
color: $gl-link-color;
}
}
2016-08-02 04:58:09 -04:00
.board-blank-state {
height: calc(100% - 49px);
2016-08-02 04:58:09 -04:00
padding: $gl-padding;
2016-11-30 08:25:25 -05:00
background-color: $white-light;
2016-08-02 04:58:09 -04:00
}
.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;
}
}
.board-list-component {
2016-09-15 09:47:53 -04:00
height: calc(100% - 49px);
}
.board-list {
height: 100%;
margin-bottom: 0;
2016-07-22 05:59:26 -04:00
padding: 5px;
list-style: none;
overflow-y: scroll;
overflow-x: hidden;
&.is-smaller {
height: calc(100% - 136px);
}
2016-07-22 05:59:26 -04:00
}
.board-list-loading {
margin-top: 10px;
font-size: (26px / $issue-boards-font-size) * 1em;
2016-07-22 15:03:39 -04:00
}
2016-07-22 05:59:26 -04:00
.card {
2016-08-09 07:10:19 -04:00
position: relative;
2017-04-06 17:38:44 -04:00
padding: 11px 10px 11px $gl-padding;
2016-11-30 08:25:25 -05:00
background: $white-light;
2016-07-22 05:59:26 -04:00
border-radius: $border-radius-default;
2016-11-30 08:25:25 -05:00
box-shadow: 0 1px 2px $issue-boards-card-shadow;
2016-07-22 15:03:39 -04:00
list-style: none;
2016-07-22 05:59:26 -04:00
&:not(:last-child) {
margin-bottom: 5px;
}
2016-08-05 11:19:45 -04:00
&.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;
}
}
.label {
border: 0;
outline: 0;
}
.confidential-icon {
2017-04-06 17:38:44 -04:00
position: relative;
top: 1px;
margin-right: 5px;
}
2016-07-22 05:59:26 -04:00
}
.card-title {
margin: 0 30px 0 0;
2016-07-22 05:59:26 -04:00
font-size: 1em;
2017-04-06 17:38:44 -04:00
line-height: inherit;
a {
2017-04-06 17:38:44 -04:00
color: $gl-text-color;
word-wrap: break-word;
2017-04-06 17:38:44 -04:00
margin-right: 2px;
}
2016-07-22 05:59:26 -04:00
}
2017-04-06 17:38:44 -04:00
.card-header {
display: flex;
min-height: 20px;
2016-10-25 12:29:00 -04:00
.card-assignee {
display: flex;
justify-content: flex-end;
position: absolute;
right: 15px;
2017-04-06 17:38:44 -04:00
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;
}
}
}
}
2016-10-25 12:29:00 -04:00
.avatar {
2017-04-06 17:38:44 -04:00
margin: 0;
}
}
.card-footer {
margin: 0 0 5px;
.label {
margin-top: 5px;
margin-right: 6px;
2016-10-25 12:29:00 -04:00
}
2016-07-22 05:59:26 -04:00
}
.card-number {
2017-04-06 17:38:44 -04:00
font-size: 12px;
color: $gl-text-color-secondary;
2016-07-22 05:59:26 -04:00
}
.issue-boards-search {
width: 395px;
.form-control {
display: inline-block;
width: 210px;
}
}
.board-list-count {
padding: 10px 0;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
font-size: 13px;
> .fa {
margin-right: 5px;
}
}
.board-new-issue-form {
margin: 5px;
}
.board-issue-count-holder {
margin-top: -3px;
.btn {
line-height: 12px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
.board-issue-count {
padding-right: 10px;
padding-left: 10px;
line-height: 21px;
border-radius: $border-radius-base;
border: 1px solid $border-color;
&.has-btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-width: 1px 0 1px 1px;
}
}
2017-03-27 12:24:19 -04:00
.page-with-layout-nav.page-with-sub-nav .issue-boards-sidebar {
&.right-sidebar {
top: 0;
bottom: 0;
}
.issuable-sidebar-header {
position: relative;
}
.gutter-toggle {
position: absolute;
top: 0;
2016-10-20 09:32:24 -04:00
bottom: 15px;
right: 0;
width: 22px;
color: $gray-darkest;
2016-10-19 17:39:57 -04:00
svg {
position: absolute;
top: 50%;
2016-10-19 17:39:57 -04:00
margin-top: (-11px / 2);
}
&:hover {
path {
fill: $gray-darkest;
}
}
}
.issuable-header-text {
padding-right: 35px;
> strong {
font-weight: 600;
}
}
}
.right-sidebar.right-sidebar-expanded {
&.boards-sidebar-slide-enter-active,
&.boards-sidebar-slide-leave-active {
transition: width .2s,
padding .2s;
}
&.boards-sidebar-slide-enter,
&.boards-sidebar-slide-leave-active {
width: 0;
padding-left: 0;
padding-right: 0;
}
}
.add-issues-modal {
2017-01-31 05:58:28 -05:00
display: -webkit-flex;
display: flex;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: rgba($black, .3);
z-index: 9999;
}
.add-issues-container {
2017-01-31 05:58:28 -05:00
display: -webkit-flex;
display: flex;
2017-01-31 05:58:28 -05:00
-webkit-flex-direction: column;
flex-direction: column;
width: 90vw;
height: 85vh;
2017-01-27 06:58:43 -05:00
max-width: 1100px;
2017-01-25 03:48:29 -05:00
min-height: 500px;
2017-01-26 05:55:40 -05:00
margin: auto;
padding: 25px 15px 0;
background-color: $white-light;
border-radius: $border-radius-default;
box-shadow: 0 2px 12px rgba($black, .5);
2017-01-26 06:29:04 -05:00
.empty-state {
2017-01-31 05:58:28 -05:00
display: -webkit-flex;
2017-01-26 06:29:04 -05:00
display: flex;
2017-01-31 05:58:28 -05:00
-webkit-flex: 1;
2017-01-26 06:29:04 -05:00
flex: 1;
margin-top: 0;
&.add-issues-empty-state-filter {
-webkit-flex-direction: column;
flex-direction: column;
2017-02-02 10:12:44 -05:00
-webkit-justify-content: center;
justify-content: center;
}
2017-01-26 06:29:04 -05:00
> .row {
width: 100%;
margin: auto 0;
}
.svg-content {
margin-top: -40px;
2017-01-26 06:29:04 -05:00
}
}
}
.add-issues-header {
margin: -25px -15px -5px;
border-top: 0;
border-bottom: 1px solid $border-color;
2017-01-27 06:58:43 -05:00
border-top-right-radius: $border-radius-default;
border-top-left-radius: $border-radius-default;
> h2 {
margin: 0;
font-size: 18px;
}
}
.add-issues-search {
2017-01-31 05:58:28 -05:00
display: -webkit-flex;
display: flex;
2017-01-31 05:53:20 -05:00
.issues-filters {
-webkit-flex: 1;
flex: 1;
2017-01-31 05:53:20 -05:00
}
}
.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 {
2017-01-31 05:58:28 -05:00
display: -webkit-flex;
display: flex;
2017-01-31 05:58:28 -05:00
-webkit-flex: 1;
flex: 1;
2017-01-26 05:55:40 -05:00
padding-top: 3px;
margin-left: -$gl-vert-padding;
margin-right: -$gl-vert-padding;
overflow-y: scroll;
.card-parent {
padding: 0 5px 5px;
}
.card {
2017-01-25 03:48:29 -05:00
border: 1px solid $border-gray-dark;
box-shadow: 0 1px 2px rgba($issue-boards-card-shadow, .3);
cursor: pointer;
}
2017-01-24 05:49:39 -05:00
}
2017-01-26 05:55:40 -05:00
.add-issues-list-loading {
2017-01-31 05:58:28 -05:00
-webkit-align-self: center;
align-self: center;
2017-01-26 05:55:40 -05:00
width: 100%;
padding-left: $gl-vert-padding;
padding-right: $gl-vert-padding;
font-size: 35px;
}
.add-issues-footer {
margin: auto -15px 0;
2017-01-26 05:55:40 -05:00
padding-left: 15px;
padding-right: 15px;
2017-01-27 06:58:43 -05:00
border-bottom-right-radius: $border-radius-default;
border-bottom-left-radius: $border-radius-default;
2017-01-26 05:55:40 -05:00
}
.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%;
}
2017-01-31 05:53:20 -05:00
.modal-filters {
display: flex;
> .dropdown {
display: none;
2017-01-31 05:53:20 -05:00
margin-right: 10px;
@media (min-width: $screen-sm-min) {
display: block;
}
2017-01-31 05:53:20 -05:00
}
.dropdown-menu-toggle {
width: 100px;
@media (min-width: $screen-md-min) {
width: 140px;
}
2017-01-31 05:53:20 -05:00
}
}