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

921 lines
15 KiB
SCSS
Raw Normal View History

2017-08-17 22:00:37 +05:30
// Limit MR description for side-by-side diff view
.fixed-width-container {
max-width: $limited-layout-width - ($gl-padding * 2);
margin-left: auto;
margin-right: auto;
}
2018-03-17 18:26:18 +05:30
.issuable-warning-icon {
background-color: $orange-100;
2017-09-10 17:25:29 +05:30
border-radius: $border-radius-default;
2018-03-17 18:26:18 +05:30
margin: 0 $btn-side-margin 0 0;
width: $issuable-warning-size;
height: $issuable-warning-size;
text-align: center;
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.icon {
fill: $orange-600;
vertical-align: text-bottom;
2017-09-10 17:25:29 +05:30
}
2018-03-17 18:26:18 +05:30
&:first-of-type {
margin-right: $issuable-warning-icon-margin;
2017-09-10 17:25:29 +05:30
}
}
2017-08-17 22:00:37 +05:30
.limit-container-width {
.detail-page-header,
.page-content-header,
.commit-box,
.info-well,
.commit-ci-menu,
2017-09-10 17:25:29 +05:30
.files-changed-inner,
.limited-header-width,
.limited-width-notes {
2017-08-17 22:00:37 +05:30
@extend .fixed-width-container;
}
.issuable-details {
.detail-page-description,
.mr-source-target,
.mr-state-widget,
.merge-manually {
@extend .fixed-width-container;
}
}
.merge-request-details {
.emoji-list-container {
@extend .fixed-width-container;
}
}
.diffs {
.mr-version-controls {
@extend .fixed-width-container;
}
}
}
2015-09-11 14:41:01 +05:30
.issuable-details {
2015-12-23 02:04:40 +05:30
section {
.issuable-discussion {
margin-right: 1px;
2015-09-25 12:07:36 +05:30
}
2015-09-11 14:41:01 +05:30
}
2016-06-22 15:30:34 +05:30
2018-03-17 18:26:18 +05:30
.title-container {
display: flex;
}
2017-08-17 22:00:37 +05:30
.title {
padding: 0;
2018-03-17 18:26:18 +05:30
margin-bottom: $gl-padding;
border-bottom: 0;
}
.btn-edit {
margin-left: auto;
height: $gl-padding * 2;
2017-08-17 22:00:37 +05:30
}
2016-06-22 15:30:34 +05:30
// Border around images in issue and MR descriptions.
.description img:not(.emoji) {
2017-08-17 22:00:37 +05:30
border: 1px solid $white-normal;
2016-06-22 15:30:34 +05:30
padding: 5px;
2016-08-24 12:49:21 +05:30
max-height: calc(100vh - 100px);
2017-09-10 17:25:29 +05:30
max-width: 100%;
2016-06-22 15:30:34 +05:30
}
2017-08-17 22:00:37 +05:30
.emoji-block {
2017-09-10 17:25:29 +05:30
padding: 10px 0;
2017-08-17 22:00:37 +05:30
}
2015-09-11 14:41:01 +05:30
}
2015-11-26 14:37:03 +05:30
.issuable-filter-count {
span {
display: block;
margin-bottom: -16px;
padding: 13px 0;
}
}
2015-12-23 02:04:40 +05:30
.issuable-show-labels {
a {
margin-bottom: 5px;
2018-03-27 19:54:05 +05:30
margin-right: 5px;
2015-12-23 02:04:40 +05:30
display: inline-block;
2016-11-03 12:29:30 +05:30
2015-12-23 02:04:40 +05:30
.color-label {
2018-03-27 19:54:05 +05:30
padding: 4px $grid-size;
2017-08-17 22:00:37 +05:30
border-radius: $label-border-radius;
2015-12-23 02:04:40 +05:30
}
2018-03-17 18:26:18 +05:30
&:hover .color-label {
text-decoration: underline;
}
2015-11-26 14:37:03 +05:30
}
2016-06-02 11:05:42 +05:30
&.has-labels {
2018-03-27 19:54:05 +05:30
// this font size is a fix to
// prevent unintended spacing between labels
// which shows up when rendering markup has white-space
// characters present.
// see: https://css-tricks.com/fighting-the-space-between-inline-block-elements/#article-header-id-3
font-size: 0;
2016-06-02 11:05:42 +05:30
margin-bottom: -5px;
}
2015-11-26 14:37:03 +05:30
}
.right-sidebar {
2018-03-17 18:26:18 +05:30
position: fixed;
top: $header-height;
bottom: 0;
right: 0;
transition: width $sidebar-transition-duration;
background: $gray-light;
z-index: 200;
overflow: hidden;
2018-05-09 12:01:36 +05:30
a:not(.btn) {
2016-06-02 11:05:42 +05:30
color: inherit;
2018-05-09 12:01:36 +05:30
&:hover {
color: $gl-link-hover-color;
.avatar {
border-color: rgba($avatar-border, .2);
}
}
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
.btn-link {
2018-05-09 12:01:36 +05:30
color: inherit;
2017-08-17 22:00:37 +05:30
outline: none;
}
.issuable-header-text {
margin-top: 7px;
}
2015-12-23 02:04:40 +05:30
.block {
@include clearfix;
2016-06-02 11:05:42 +05:30
padding: $gl-padding 0;
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $border-gray-normal;
2016-04-02 18:10:28 +05:30
// This prevents the mess when resizing the sidebar
// of elements repositioning themselves..
width: $gutter_inner_width;
// --
2016-06-02 11:05:42 +05:30
&.issuable-sidebar-header {
padding-top: 0;
padding-bottom: 10px;
2016-04-02 18:10:28 +05:30
}
2015-11-26 14:37:03 +05:30
2015-12-23 02:04:40 +05:30
&:last-child {
2018-03-17 18:26:18 +05:30
border: 0;
2016-04-02 18:10:28 +05:30
}
.select2-container span {
margin-top: 0;
}
.gutter-toggle {
margin-left: 20px;
padding-left: 10px;
&:hover {
color: $gray-darkest;
}
}
2018-03-17 18:26:18 +05:30
&.assignee {
.author_link:hover {
.author {
text-decoration: underline;
}
}
}
2015-12-23 02:04:40 +05:30
}
2015-11-26 14:37:03 +05:30
.block-first {
padding-top: 0;
}
2015-12-23 02:04:40 +05:30
.title {
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
margin-bottom: 10px;
line-height: 1;
2015-11-26 14:37:03 +05:30
2015-12-23 02:04:40 +05:30
.avatar {
margin-left: 0;
2015-11-26 14:37:03 +05:30
}
2018-03-27 19:54:05 +05:30
a.edit-link:not([href]):hover {
color: rgba($avatar-border, .2);
}
.lock-edit, // uses same style, different js behaviour
2015-12-23 02:04:40 +05:30
.edit-link {
2018-03-27 19:54:05 +05:30
@extend .btn-blank;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-06-02 11:05:42 +05:30
2018-03-27 19:54:05 +05:30
&:hover {
text-decoration: underline;
2018-05-09 12:01:36 +05:30
color: $gl-link-hover-color;
2016-06-02 11:05:42 +05:30
}
2015-11-26 14:37:03 +05:30
}
}
2015-12-23 02:04:40 +05:30
.cross-project-reference {
2016-06-02 11:05:42 +05:30
color: inherit;
span {
white-space: nowrap;
width: 85%;
overflow: hidden;
position: relative;
display: inline-block;
text-overflow: ellipsis;
}
2015-11-26 14:37:03 +05:30
cite {
font-style: normal;
}
2015-12-23 02:04:40 +05:30
button {
float: right;
2016-08-24 12:49:21 +05:30
padding: 1px 5px;
background-color: $gray-light;
2015-11-26 14:37:03 +05:30
}
2015-12-23 02:04:40 +05:30
}
2015-11-26 14:37:03 +05:30
2015-12-23 02:04:40 +05:30
.selectbox {
2016-11-03 12:29:30 +05:30
display: none;
2015-12-23 02:04:40 +05:30
}
2015-11-26 14:37:03 +05:30
2017-08-17 22:00:37 +05:30
.btn-clipboard:hover {
color: $gl-text-color;
2015-11-26 14:37:03 +05:30
}
2017-09-10 17:25:29 +05:30
.issuable-sidebar {
width: calc(100% + 100px);
2018-03-17 18:26:18 +05:30
height: 100%;
2017-09-10 17:25:29 +05:30
overflow-y: scroll;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
&.affix-top .issuable-sidebar {
height: 100%;
}
2016-04-02 18:10:28 +05:30
&.right-sidebar-expanded {
width: $gutter_width;
2016-06-02 11:05:42 +05:30
.value {
line-height: 1;
.assign-yourself {
margin-top: 10px;
display: block;
}
}
2017-09-10 17:25:29 +05:30
.issuable-sidebar {
padding: 0 20px;
}
.issuable-sidebar-header {
padding-top: 10px;
}
&:not(.issue-boards-sidebar):not([data-signed-in]):not([data-always-show-toggle]) {
.issuable-sidebar-header {
display: none;
}
}
2017-08-17 22:00:37 +05:30
.assign-yourself .btn-link {
padding-left: 0;
2016-06-02 11:05:42 +05:30
}
.light {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2016-04-02 18:10:28 +05:30
}
2018-03-17 18:26:18 +05:30
.no-value,
.btn-secondary-hover-link {
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2016-06-22 15:30:34 +05:30
}
2018-03-17 18:26:18 +05:30
.btn-secondary-hover-link:hover {
color: $gl-link-color;
}
2016-04-02 18:10:28 +05:30
.sidebar-collapsed-icon {
display: none;
}
.gutter-toggle {
2016-06-02 11:05:42 +05:30
margin-top: 7px;
2017-08-17 22:00:37 +05:30
border-left: 1px solid $border-gray-normal;
2018-03-17 18:26:18 +05:30
text-align: center;
2016-04-02 18:10:28 +05:30
}
2017-09-10 17:25:29 +05:30
.title .gutter-toggle {
margin-top: 0;
}
2016-06-02 11:05:42 +05:30
.assignee .avatar {
float: left;
margin-right: 10px;
margin-bottom: 0;
margin-left: 0;
}
2017-08-17 22:00:37 +05:30
.assignee .user-list .avatar {
margin: 0;
}
2016-06-02 11:05:42 +05:30
.username {
display: block;
margin-top: 4px;
font-size: 13px;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2016-04-02 18:10:28 +05:30
}
2017-08-17 22:00:37 +05:30
.hide-expanded {
display: none;
}
2016-04-02 18:10:28 +05:30
}
&.right-sidebar-collapsed {
2016-06-02 11:05:42 +05:30
/* Extra small devices (phones, less than 768px) */
display: none;
/* Small devices (tablets, 768px and up) */
@media (min-width: $screen-sm-min) {
2016-11-03 12:29:30 +05:30
display: block;
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
width: $gutter_collapsed_width;
2017-09-10 17:25:29 +05:30
padding: 0;
2016-04-02 18:10:28 +05:30
.block {
2017-08-17 22:00:37 +05:30
width: $gutter_collapsed_width - 2px;
2016-06-02 11:05:42 +05:30
padding: 15px 0 0;
2018-03-17 18:26:18 +05:30
border-bottom: 0;
2016-04-02 18:10:28 +05:30
overflow: hidden;
}
2016-06-02 11:05:42 +05:30
.participants {
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $border-gray-normal;
2016-06-02 11:05:42 +05:30
}
2016-04-02 18:10:28 +05:30
.hide-collapsed {
display: none;
}
.gutter-toggle {
2016-06-02 11:05:42 +05:30
width: 100%;
margin-left: 0;
padding-left: 25px;
2016-04-02 18:10:28 +05:30
}
.sidebar-collapsed-icon {
display: block;
width: 100%;
text-align: center;
2017-08-17 22:00:37 +05:30
margin-bottom: 10px;
color: $issuable-sidebar-color;
2017-09-10 17:25:29 +05:30
svg {
fill: $issuable-sidebar-color;
}
2018-03-17 18:26:18 +05:30
&:hover:not(.disabled),
2017-08-17 22:00:37 +05:30
&:hover .todo-undone {
color: $gl-text-color;
2017-09-10 17:25:29 +05:30
svg {
fill: $gl-text-color;
}
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
span {
display: block;
margin-top: 0;
}
2017-08-17 22:00:37 +05:30
.sidebar-avatar-counter {
padding-top: 2px;
}
.todo-undone {
color: $gl-link-color;
}
2016-06-02 11:05:42 +05:30
.author {
display: none;
}
2017-08-17 22:00:37 +05:30
.avatar-counter:hover {
color: $issuable-sidebar-color;
2017-09-10 17:25:29 +05:30
border-color: $issuable-sidebar-color;
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
.btn-clipboard {
2018-03-17 18:26:18 +05:30
border: 0;
2017-08-17 22:00:37 +05:30
color: $issuable-sidebar-color;
2016-04-02 18:10:28 +05:30
&:hover {
background: transparent;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2016-04-02 18:10:28 +05:30
}
2017-08-17 22:00:37 +05:30
}
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
&.multiple-users {
display: flex;
justify-content: center;
2016-04-02 18:10:28 +05:30
}
}
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
.sidebar-avatar-counter {
width: 24px;
height: 24px;
border-radius: 12px;
}
2016-06-02 11:05:42 +05:30
.sidebar-collapsed-user {
padding-bottom: 0;
margin-bottom: 10px;
}
2016-06-22 15:30:34 +05:30
.issuable-header-btn {
display: none;
}
2016-04-02 18:10:28 +05:30
2017-08-17 22:00:37 +05:30
.multiple-users {
height: 24px;
margin-bottom: 17px;
margin-top: 4px;
padding-bottom: 4px;
2016-08-24 12:49:21 +05:30
2017-08-17 22:00:37 +05:30
.btn-link {
padding: 0;
border: 0;
.avatar {
margin: 0;
}
}
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
.btn-link:first-child {
position: absolute;
left: 10px;
z-index: 1;
}
.btn-link:last-child {
position: absolute;
right: 10px;
&:hover {
text-decoration: none;
}
}
2016-06-02 11:05:42 +05:30
}
2018-03-17 18:26:18 +05:30
.milestone-title span,
.collapse-truncated-title {
@include str-truncated(100%);
display: block;
margin: 0 4px;
}
2016-06-02 11:05:42 +05:30
}
.dropdown-menu-toggle {
width: 100%;
padding-top: 6px;
}
2018-03-17 18:26:18 +05:30
.dropdown-menu {
2016-06-02 11:05:42 +05:30
width: 100%;
2018-05-09 12:01:36 +05:30
/*
* Overwrite hover style for dropdown items, so that they are not blue
* This should be removed during dev of https://gitlab.com/gitlab-org/gitlab-ce/issues/44040
*/
li a {
&:hover,
&:active,
&:focus,
&.is-focused {
@include dropdown-item-hover;
}
}
2016-04-02 18:10:28 +05:30
}
}
2017-09-10 17:25:29 +05:30
.with-performance-bar .right-sidebar {
top: $header-height + $performance-bar-height;
}
2018-03-17 18:26:18 +05:30
.sidebar-move-issue-confirmation-button {
width: 100%;
&.is-loading {
.sidebar-move-issue-confirmation-loading-icon {
display: inline-block;
}
}
}
.sidebar-move-issue-confirmation-loading-icon {
display: none;
}
2016-04-02 18:10:28 +05:30
.detail-page-description {
2017-09-10 17:25:29 +05:30
padding: 16px 0;
2017-08-17 22:00:37 +05:30
2016-04-02 18:10:28 +05:30
small {
color: $gray-darkest;
}
}
2016-06-02 11:05:42 +05:30
.edited-text {
color: $gray-darkest;
2017-08-17 22:00:37 +05:30
display: block;
2017-09-10 17:25:29 +05:30
margin: 16px 0 0;
2018-03-17 18:26:18 +05:30
font-size: 85%;
2016-06-02 11:05:42 +05:30
.author_link {
color: $gray-darkest;
}
}
.participants-list {
2018-03-17 18:26:18 +05:30
display: flex;
flex-wrap: wrap;
margin: -7px;
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
.user-list {
display: flex;
flex-wrap: wrap;
}
2016-06-02 11:05:42 +05:30
.participants-author {
display: inline-block;
2018-03-17 18:26:18 +05:30
padding: 7px;
2016-06-02 11:05:42 +05:30
2017-08-17 22:00:37 +05:30
&:nth-of-type(7n) {
padding-right: 0;
}
2016-06-02 11:05:42 +05:30
.author_link {
display: block;
}
.avatar.avatar-inline {
margin: 0;
}
}
2017-08-17 22:00:37 +05:30
.user-item {
display: inline-block;
padding: 5px;
flex-basis: 20%;
.user-link {
display: inline-block;
}
}
.participants-more,
.user-list-more {
2016-06-02 11:05:42 +05:30
margin-top: 5px;
margin-left: 5px;
2017-08-17 22:00:37 +05:30
a,
.btn-link {
color: $gl-text-color-secondary;
}
.btn-link {
outline: none;
padding: 0;
}
.btn-link:hover {
@extend a:hover;
text-decoration: none;
}
.btn-link:focus {
text-decoration: none;
2016-06-02 11:05:42 +05:30
}
}
.issuable-form-padding-top {
@media (min-width: $screen-sm-min) {
padding-top: 7px;
}
}
.issuable-status-box {
2018-03-17 18:26:18 +05:30
align-self: stretch;
display: flex;
justify-content: center;
align-items: center;
2016-06-02 11:05:42 +05:30
margin-top: 0;
2018-03-17 18:26:18 +05:30
padding-left: 9px;
padding-right: 9px;
2016-06-02 11:05:42 +05:30
@media (min-width: $screen-sm-min) {
2018-03-17 18:26:18 +05:30
display: inline-block;
height: auto;
align-self: center;
2016-06-02 11:05:42 +05:30
}
}
.issuable-gutter-toggle {
@media (max-width: $screen-sm-max) {
2018-03-17 18:26:18 +05:30
margin-left: $btn-side-margin;
2016-06-02 11:05:42 +05:30
}
}
.issuable-meta {
2018-03-17 18:26:18 +05:30
flex: 1;
2016-06-02 11:05:42 +05:30
display: inline-block;
2017-08-17 22:00:37 +05:30
font-size: 14px;
2018-03-17 18:26:18 +05:30
line-height: 24px;
align-self: center;
2016-06-02 11:05:42 +05:30
}
2016-09-13 17:45:13 +05:30
.js-issuable-selector-wrap {
.js-issuable-selector {
width: 100%;
}
2016-11-03 12:29:30 +05:30
2016-09-13 17:45:13 +05:30
@media (max-width: $screen-sm-max) {
margin-bottom: $gl-padding;
}
}
2016-09-29 09:46:39 +05:30
.issuable-list {
li {
2017-08-17 22:00:37 +05:30
.issue-box {
display: -webkit-flex;
display: flex;
}
.issue-info-container {
-webkit-flex: 1;
flex: 1;
2017-09-10 17:25:29 +05:30
display: flex;
2017-08-17 22:00:37 +05:30
padding-right: $gl-padding;
2017-09-10 17:25:29 +05:30
.issue-main-info {
flex: 1 auto;
margin-right: 10px;
}
.issuable-meta {
display: flex;
flex-direction: column;
align-items: flex-end;
flex: 1 0 auto;
.controls {
margin-bottom: 2px;
line-height: 20px;
padding: 0;
}
.issue-updated-at {
line-height: 20px;
}
}
@media(max-width: $screen-xs-max) {
.issuable-meta {
.controls li {
margin-right: 0;
}
}
}
2017-08-17 22:00:37 +05:30
}
2016-09-29 09:46:39 +05:30
.issue-check {
padding-right: $gl-padding;
margin-bottom: 10px;
min-width: 15px;
.selected_issue {
vertical-align: text-top;
}
}
2017-09-10 17:25:29 +05:30
.issuable-milestone,
.issuable-info,
.task-status,
.issuable-updated-at {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-09-10 17:25:29 +05:30
color: $gl-text-color-secondary;
a {
color: $gl-text-color;
.fa {
color: $gl-text-color-secondary;
}
}
}
@media(max-width: $screen-md-max) {
.task-status,
.issuable-due-date,
.project-ref-path {
display: none;
}
}
2016-09-29 09:46:39 +05:30
}
}
2017-08-17 22:00:37 +05:30
.issuable-list li,
.issue-info-container .controls {
.avatar-counter {
display: inline-block;
vertical-align: middle;
min-width: 16px;
line-height: 14px;
height: 16px;
padding-left: 2px;
padding-right: 2px;
}
}
.time_tracker {
padding-bottom: 0;
border-bottom: 0;
.sidebar-collapsed-icon {
> .stopwatch-svg {
display: inline-block;
}
svg {
width: 16px;
height: 16px;
fill: $issuable-sidebar-color;
}
&:hover svg {
fill: $gl-text-color;
}
}
.help-button,
.close-help-button {
cursor: pointer;
}
.compare-meter {
&.within_estimate {
.meter-fill {
background: $gl-primary;
}
}
&.over_estimate {
.meter-fill {
background: $red-500;
}
.time-remaining,
.compare-value.spent {
color: $red-500;
}
}
}
.meter-container {
background: $border-gray-light;
border-radius: 3px;
.meter-fill {
max-width: 100%;
height: 5px;
border-radius: 3px;
background: $gl-primary;
}
}
.compare-display-container {
display: flex;
justify-content: space-between;
margin-top: 5px;
.compare-display {
font-size: 13px;
color: $compare-display-color;
.compare-value {
color: $gl-text-color;
}
}
}
.time-tracking-help-state {
background: $white-light;
margin: 16px -20px 0;
padding: 16px 20px;
border-top: 1px solid $border-gray-light;
border-bottom: 1px solid $border-gray-light;
a:hover {
color: $btn-white-active;
}
}
.help-state-toggle-enter-active {
transition: all .8s ease;
}
.help-state-toggle-leave-active {
transition: all .5s ease;
}
.help-state-toggle-enter,
.help-state-toggle-leave-active {
opacity: 0;
}
}
.issuable-todo-btn {
.fa-spinner {
display: none;
}
&.is-loading {
.fa-spinner {
display: inline-block;
}
&.sidebar-collapsed-icon {
.issuable-todo-inner {
display: none;
}
}
}
}
2017-09-10 17:25:29 +05:30
.issuable-close-button,
.issuable-close-toggle {
@include transition(border-color, color);
}
.issuable-close-dropdown {
.dropdown-menu {
min-width: 270px;
left: auto;
right: 0;
}
.description {
.text {
margin: 0;
}
}
.dropdown-toggle > .icon {
margin: 0 3px;
}
}
2018-03-17 18:26:18 +05:30
.right-sidebar-collapsed {
.sidebar-grouped-item {
.sidebar-collapsed-icon {
margin-bottom: 0;
}
.sidebar-collapsed-divider {
line-height: 5px;
font-size: 12px;
color: $theme-gray-700;
+ .sidebar-collapsed-icon {
padding-top: 0;
}
}
}
}