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

332 lines
5.1 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-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 {
.page-with-sidebar {
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
height: calc(100vh - 220px);
min-height: 475px;
&.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;
background: $background-color;
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;
.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;
background-color: #fff;
}
.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;
}
}
2016-07-22 05:59:26 -04:00
.board-list {
2016-09-15 09:47:53 -04:00
height: calc(100% - 49px);
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% - 185px);
}
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;
2016-07-22 05:59:26 -04:00
padding: 10px $gl-padding;
background: #fff;
border-radius: $border-radius-default;
box-shadow: 0 1px 2px rgba(186, 186, 186, 0.5);
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 {
background-color: $row-hover;
}
.label {
border: 0;
outline: 0;
}
.confidential-icon {
margin-right: 5px;
}
2016-07-22 05:59:26 -04:00
}
.card-title {
margin: 0;
font-size: 1em;
a {
color: inherit;
word-wrap: break-word;
}
2016-07-22 05:59:26 -04:00
}
.card-footer {
margin-top: 5px;
line-height: 25px;
2016-07-22 05:59:26 -04:00
.label {
margin-right: 5px;
font-size: (14px / $issue-boards-font-size) * 1em;
2016-07-22 05:59:26 -04:00
}
2016-10-25 12:29:00 -04:00
.avatar {
margin-left: 0;
}
2016-07-22 05:59:26 -04:00
}
.card-number {
margin-right: 5px;
2016-07-22 05:59:26 -04:00
}
.issue-boards-search {
width: 335px;
.form-control {
display: inline-block;
width: 210px;
}
}
.board-list-count {
padding: 10px 0;
color: $gl-placeholder-color;
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;
}
}
.issue-boards-sidebar {
&.right-sidebar {
top: 153px;
bottom: 0;
@media (min-width: $screen-sm-min) {
top: 220px;
}
}
.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 {
width: 100%;
padding-right: 35px;
> strong {
font-weight: 600;
}
}
}