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

1042 lines
17 KiB
SCSS
Raw Normal View History

2015-09-11 14:41:01 +05:30
/**
* MR -> show: Automerge widget
2015-04-26 12:48:37 +05:30
*
*/
2017-09-10 17:25:29 +05:30
2020-03-13 15:44:24 +05:30
$mr-widget-min-height: 69px;
2017-09-10 17:25:29 +05:30
.space-children {
@include clearfix;
> * {
float: left;
}
2019-09-30 21:07:59 +05:30
> *:not(:first-child) {
margin-left: 10px;
2017-09-10 17:25:29 +05:30
}
}
2018-11-18 11:00:15 +05:30
.mr-widget-border-top {
border-top: 1px solid $border-color;
}
2019-12-21 20:55:43 +05:30
.mr-widget-margin-left { margin-left: $mr-widget-margin-left; }
2018-11-18 11:00:15 +05:30
.media-section {
@include media-breakpoint-down(md) {
align-items: flex-start;
.media-body {
flex-direction: column;
align-items: flex-start;
}
}
.code-text {
@include media-breakpoint-up(lg) {
align-self: center;
flex: 1;
}
}
}
.mr-widget-section {
2019-03-02 22:35:43 +05:30
border-radius: $border-radius-default $border-radius-default 0 0;
2018-11-18 11:00:15 +05:30
.code-text {
flex: 1;
}
}
2018-11-08 19:23:39 +05:30
.mr-widget-heading {
position: relative;
border: 1px solid $border-color;
2019-02-15 15:39:39 +05:30
border-radius: $border-radius-default;
2020-01-01 13:55:28 +05:30
.gl-skeleton-loader {
display: block;
}
2019-02-15 15:39:39 +05:30
}
2018-11-08 19:23:39 +05:30
2019-02-15 15:39:39 +05:30
.mr-widget-extension {
border-top: 1px solid $border-color;
background-color: $gray-light;
2019-03-02 22:35:43 +05:30
&.clickable:hover {
2020-11-24 15:15:51 +05:30
background-color: $gray-100;
2019-03-02 22:35:43 +05:30
cursor: pointer;
}
2019-02-15 15:39:39 +05:30
}
.mr-widget-workflow {
margin-top: $gl-padding;
position: relative;
&::before {
2018-11-08 19:23:39 +05:30
content: '';
2020-07-28 23:09:34 +05:30
border-left: 1px solid $gray-100;
2018-11-08 19:23:39 +05:30
position: absolute;
2019-09-30 21:07:59 +05:30
left: 28px;
2018-11-08 19:23:39 +05:30
top: -17px;
height: 16px;
}
}
.mr-section-container {
border: 1px solid $border-color;
border-radius: $border-radius-default;
border-top: 0;
}
2019-03-02 22:35:43 +05:30
.mr-widget-body,
2019-02-15 15:39:39 +05:30
.mr-widget-content,
2018-11-08 19:23:39 +05:30
.mr-widget-footer {
padding: $gl-padding;
}
2019-09-04 21:01:54 +05:30
.mr-widget-info {
2019-10-12 21:52:04 +05:30
padding-left: $gl-padding;
2019-09-04 21:01:54 +05:30
padding-right: $gl-padding;
}
2015-09-11 14:41:01 +05:30
.mr-state-widget {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
2017-09-10 17:25:29 +05:30
2019-03-02 22:35:43 +05:30
.commit-message-edit {
border-radius: $border-radius-default;
}
2017-09-10 17:25:29 +05:30
.mr-widget-section,
.mr-widget-footer {
border-top: solid 1px $border-color;
}
2019-03-02 22:35:43 +05:30
.mr-fast-forward-message {
padding-left: $gl-padding-50;
padding-bottom: $gl-padding;
}
.commits-list {
> li {
padding: $gl-padding;
@include media-breakpoint-up(md) {
2019-09-30 21:07:59 +05:30
padding-left: $gl-padding-8 * 7;
2019-03-02 22:35:43 +05:30
}
}
}
.mr-commit-dropdown {
.dropdown-menu {
@include media-breakpoint-up(md) {
width: 150%;
}
}
}
2017-09-10 17:25:29 +05:30
.mr-widget-footer {
padding: 0;
}
2015-09-11 14:41:01 +05:30
2018-11-18 11:00:15 +05:30
.mr-report {
padding: 0;
> .media {
padding: $gl-padding;
}
}
2015-04-26 12:48:37 +05:30
form {
margin-bottom: 0;
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
.clearfix {
margin-bottom: 0;
}
}
2017-09-10 17:25:29 +05:30
label {
margin-bottom: 0;
}
.btn {
font-size: $gl-font-size;
&.dropdown-toggle {
.fa {
color: inherit;
}
}
}
2015-04-26 12:48:37 +05:30
.accept-merge-holder {
.accept-action {
display: inline-block;
2015-12-23 02:04:40 +05:30
float: left;
2015-11-26 14:37:03 +05:30
2017-08-17 22:00:37 +05:30
.accept-merge-request {
2019-07-07 11:18:12 +05:30
&.ci-preparing,
2015-11-26 14:37:03 +05:30
&.ci-pending,
&.ci-running {
2017-08-17 22:00:37 +05:30
@include btn-blue;
2015-11-26 14:37:03 +05:30
}
&.ci-skipped,
&.ci-failed,
&.ci-canceled,
&.ci-error {
@include btn-red;
}
}
2015-04-26 12:48:37 +05:30
}
}
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
.ci-widget {
color: $gl-text-color;
display: flex;
2018-11-08 19:23:39 +05:30
align-items: center;
justify-content: space-between;
2015-09-11 14:41:01 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-08-17 22:00:37 +05:30
flex-wrap: wrap;
2016-08-24 12:49:21 +05:30
}
2018-11-08 19:23:39 +05:30
.ci-widget-content {
display: flex;
align-items: center;
2018-11-20 20:47:30 +05:30
flex: 1;
2018-11-08 19:23:39 +05:30
}
2017-09-10 17:25:29 +05:30
}
2016-08-24 12:49:21 +05:30
2017-09-10 17:25:29 +05:30
.mr-widget-icon {
font-size: 22px;
}
2015-09-11 14:41:01 +05:30
2019-10-12 21:52:04 +05:30
.mr-loading-icon {
margin: 3px 0;
}
2017-09-10 17:25:29 +05:30
.ci-status-icon svg {
margin: 3px 0;
position: relative;
overflow: visible;
display: block;
2017-08-17 22:00:37 +05:30
}
.mr-widget-pipeline-graph {
.dropdown-menu {
2017-09-10 17:25:29 +05:30
z-index: 300;
2016-08-24 12:49:21 +05:30
}
2017-09-10 17:25:29 +05:30
}
2015-12-23 02:04:40 +05:30
2017-09-10 17:25:29 +05:30
.mini-pipeline-graph-dropdown-toggle {
vertical-align: top;
}
2017-08-17 22:00:37 +05:30
.normal {
2018-11-08 19:23:39 +05:30
flex: 1;
2018-11-20 20:47:30 +05:30
flex-basis: auto;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
.capitalize {
text-transform: capitalize;
2015-10-24 18:46:33 +05:30
}
2017-09-10 17:25:29 +05:30
.label-branch {
@extend .ref-name;
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
color: $gl-text-color;
2018-11-08 19:23:39 +05:30
font-weight: normal;
2017-09-10 17:25:29 +05:30
overflow: hidden;
word-break: break-all;
2018-11-20 20:47:30 +05:30
}
2017-08-17 22:00:37 +05:30
2018-11-20 20:47:30 +05:30
.deploy-link,
.label-branch {
&.label-truncate {
// NOTE: This selector targets its children because some of the HTML comes from
// 'source_branch_link'. Once this external HTML is no longer used, we could
// simplify this.
> a,
> span {
display: inline-block;
max-width: 12.5em;
margin-bottom: -3px;
white-space: nowrap;
text-overflow: ellipsis;
line-height: 14px;
overflow: hidden;
2017-09-10 17:25:29 +05:30
}
2017-08-17 22:00:37 +05:30
}
}
2015-09-11 14:41:01 +05:30
.mr-widget-body {
2018-11-08 19:23:39 +05:30
line-height: 28px;
2018-03-17 18:26:18 +05:30
@include clearfix;
.approve-btn {
margin-right: 5px;
}
2015-09-11 14:41:01 +05:30
h4 {
2017-09-10 17:25:29 +05:30
float: left;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-09-10 17:25:29 +05:30
font-size: 14px;
line-height: inherit;
margin-top: 0;
margin-bottom: 0;
&.has-conflicts .fa-exclamation-triangle {
2018-11-20 20:47:30 +05:30
color: $orange-500;
}
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
time {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-08-17 22:00:37 +05:30
}
2015-09-11 14:41:01 +05:30
}
2016-06-22 15:30:34 +05:30
.btn-grouped {
margin-left: 0;
margin-right: 7px;
}
2017-08-17 22:00:37 +05:30
label {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-08-17 22:00:37 +05:30
}
.spacing {
2017-09-10 17:25:29 +05:30
margin: 0 0 0 10px;
2017-08-17 22:00:37 +05:30
}
.bold {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2020-11-24 15:15:51 +05:30
color: $gray-600;
2019-09-30 21:07:59 +05:30
margin-left: 10px;
2017-08-17 22:00:37 +05:30
}
.state-label {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-08-17 22:00:37 +05:30
padding-right: 10px;
}
.danger {
2018-11-20 20:47:30 +05:30
color: $red-500;
2017-08-17 22:00:37 +05:30
}
.spacing,
.bold {
vertical-align: middle;
}
.dropdown-menu {
li a {
padding: 5px;
}
2017-09-10 17:25:29 +05:30
.merge-opt-icon {
line-height: 1.5;
2017-08-17 22:00:37 +05:30
}
.merge-opt-title {
margin-left: 8px;
}
}
.dropdown-toggle {
.fa {
2017-09-10 17:25:29 +05:30
margin-left: 0;
2017-08-17 22:00:37 +05:30
color: inherit;
}
}
.has-custom-error {
display: inline-block;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
p {
font-size: 13px;
}
2017-08-17 22:00:37 +05:30
.btn-grouped {
float: none;
margin-right: 0;
}
2016-06-22 15:30:34 +05:30
.accept-action {
width: 100%;
text-align: center;
}
}
2017-08-17 22:00:37 +05:30
.commit-message-editor {
label {
padding: 0;
}
}
2017-09-10 17:25:29 +05:30
&.mr-widget-empty-state {
line-height: 20px;
2019-09-30 21:07:59 +05:30
padding: $gl-padding;
2015-09-11 14:41:01 +05:30
2017-09-10 17:25:29 +05:30
.artwork {
2019-09-30 21:07:59 +05:30
@include media-breakpoint-down(md) {
margin-bottom: $gl-padding;
}
2017-09-10 17:25:29 +05:30
}
.text {
span {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2017-09-10 17:25:29 +05:30
}
p {
margin-top: $gl-padding;
}
}
}
2020-07-28 23:09:34 +05:30
&.mr-pipeline-suggest {
border-radius: $border-radius-default;
line-height: 20px;
border: 1px solid $border-color;
.circle-icon-container {
color: $gl-text-color-quaternary;
}
}
2015-09-11 14:41:01 +05:30
}
2018-03-17 18:26:18 +05:30
.mr-widget-help {
2019-09-30 21:07:59 +05:30
padding: 10px 16px 10px ($gl-padding-8 * 7);
2018-03-17 18:26:18 +05:30
}
2015-09-11 14:41:01 +05:30
.ci-coverage {
float: right;
}
2016-11-03 12:29:30 +05:30
.stop-env-container {
color: $gl-text-color;
float: right;
a {
color: $gl-text-color;
}
}
2015-04-26 12:48:37 +05:30
}
.mr_source_commit,
.mr_target_commit {
2016-06-02 11:05:42 +05:30
margin-bottom: 0;
2015-04-26 12:48:37 +05:30
.commit {
margin: 0;
2017-09-10 17:25:29 +05:30
padding: 10px;
2015-04-26 12:48:37 +05:30
list-style: none;
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
&:hover {
background: none;
}
}
}
2016-11-03 12:29:30 +05:30
.commits-empty {
text-align: center;
h4 {
padding-top: 20px;
padding-bottom: 10px;
}
svg {
width: 230px;
}
}
2018-03-17 18:26:18 +05:30
.nothing-here-block {
img {
width: 230px;
}
}
2015-04-26 12:48:37 +05:30
.mr-list {
.merge-request {
2021-01-29 00:20:46 +05:30
padding: 10px $gl-padding;
2017-08-17 22:00:37 +05:30
display: flex;
2018-12-05 23:21:45 +05:30
.issuable-info-container {
2017-08-17 22:00:37 +05:30
flex: 1;
}
2015-04-26 12:48:37 +05:30
.merge-request-title {
2016-06-02 11:05:42 +05:30
margin-bottom: 2px;
2016-08-24 12:49:21 +05:30
.ci-status-link {
svg {
height: 16px;
width: 16px;
position: relative;
top: 3px;
}
2016-09-13 17:45:13 +05:30
&:hover,
&:focus {
text-decoration: none;
}
2016-08-24 12:49:21 +05:30
}
2015-04-26 12:48:37 +05:30
}
2015-09-11 14:41:01 +05:30
}
.merge-request-labels {
display: inline-block;
}
2015-04-26 12:48:37 +05:30
}
.merge-request-angle {
text-align: center;
margin: 0 auto;
font-size: 2em;
line-height: 1.1;
}
// hide mr close link for inline diff comment form
.diff-file .close-mr-link,
.diff-file .reopen-mr-link {
display: none;
}
2015-09-11 14:41:01 +05:30
#modal_merge_info .modal-dialog {
2017-08-17 22:00:37 +05:30
.dark {
margin-right: 40px;
}
2015-11-26 14:37:03 +05:30
.btn-clipboard {
2015-12-23 02:04:40 +05:30
margin-right: 20px;
2015-11-26 14:37:03 +05:30
margin-top: 5px;
position: absolute;
right: 0;
}
2015-09-11 14:41:01 +05:30
}
2017-09-10 17:25:29 +05:30
.mr-links {
2019-10-12 21:52:04 +05:30
padding-left: $gl-padding-8 + $status-icon-size + $gl-btn-padding;
2019-09-04 21:01:54 +05:30
&:last-child {
padding-bottom: $gl-padding;
}
2017-09-10 17:25:29 +05:30
}
2017-08-17 22:00:37 +05:30
.mr-info-list {
2017-09-10 17:25:29 +05:30
clear: left;
2017-08-17 22:00:37 +05:30
position: relative;
2017-09-10 17:25:29 +05:30
padding-top: 4px;
2017-08-17 22:00:37 +05:30
p {
2017-09-10 17:25:29 +05:30
margin: 0;
2017-08-17 22:00:37 +05:30
position: relative;
2017-09-10 17:25:29 +05:30
padding: 4px 0;
2017-08-17 22:00:37 +05:30
&:last-child {
2017-09-10 17:25:29 +05:30
padding-bottom: 0;
2017-08-17 22:00:37 +05:30
}
}
2018-03-17 18:26:18 +05:30
&.mr-memory-usage {
p {
float: left;
}
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
.memory-graph-container {
float: left;
margin-left: 5px;
}
2017-08-17 22:00:37 +05:30
}
}
2015-09-11 14:41:01 +05:30
.mr-source-target {
2017-09-10 17:25:29 +05:30
flex-wrap: wrap;
2018-11-08 19:23:39 +05:30
border-radius: $border-radius-default;
padding: $gl-padding;
border: 1px solid $border-color;
2020-03-13 15:44:24 +05:30
min-height: $mr-widget-min-height;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
align-items: center;
}
2017-08-17 22:00:37 +05:30
.dropdown-toggle .fa {
color: $gl-text-color;
}
2018-11-08 19:23:39 +05:30
.git-merge-container {
justify-content: space-between;
flex: 1;
flex-direction: row;
align-items: center;
@include media-breakpoint-down(md) {
flex-direction: column;
2018-11-20 20:47:30 +05:30
align-items: stretch;
2018-11-08 19:23:39 +05:30
.branch-actions {
margin-top: 16px;
}
}
@include media-breakpoint-up(lg) {
.branch-actions {
align-self: center;
2018-11-18 11:00:15 +05:30
margin-left: $gl-padding;
2018-11-20 20:47:30 +05:30
white-space: nowrap;
2018-11-08 19:23:39 +05:30
}
}
}
.diverged-commits-count {
color: $gl-text-color-secondary;
}
2015-09-11 14:41:01 +05:30
}
2016-04-02 18:10:28 +05:30
2018-11-08 19:23:39 +05:30
.card-new-merge-request {
.card-header {
2016-06-02 11:05:42 +05:30
padding: 5px 10px;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
2016-06-02 11:05:42 +05:30
line-height: 25px;
2016-04-02 18:10:28 +05:30
}
2018-11-08 19:23:39 +05:30
.card-body {
2016-06-02 11:05:42 +05:30
padding: 10px 5px;
}
2016-04-02 18:10:28 +05:30
2018-11-08 19:23:39 +05:30
.card-footer {
2017-08-17 22:00:37 +05:30
padding: 0;
2016-06-22 15:30:34 +05:30
.btn {
min-width: auto;
}
2016-06-02 11:05:42 +05:30
}
2016-04-02 18:10:28 +05:30
2016-06-02 11:05:42 +05:30
.commit {
.commit-row-title {
margin-bottom: 4px;
}
2016-08-24 12:49:21 +05:30
.item-title {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2016-08-24 12:49:21 +05:30
width: 45%;
}
}
2016-06-02 11:05:42 +05:30
.avatar {
2016-08-24 12:49:21 +05:30
left: 0;
top: 2px;
2016-06-02 11:05:42 +05:30
}
}
.btn-clipboard {
margin-right: 5px;
padding: 0;
background: transparent;
}
.ci-status-link {
margin-right: 5px;
}
}
.merge-request-select {
padding-left: 5px;
padding-right: 5px;
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(xs) {
2016-06-02 11:05:42 +05:30
float: left;
width: 50%;
margin-bottom: 0;
}
.dropdown-menu-toggle {
width: 100%;
}
.dropdown-menu {
left: 5px;
right: 5px;
width: auto;
}
}
.issuable-form-select-holder {
display: inline-block;
width: 250px;
2016-11-03 12:29:30 +05:30
.dropdown-menu-toggle {
width: 100%;
}
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
.target-branch-select-dropdown-container {
position: relative;
}
.assign-to-me-link {
padding-left: 12px;
white-space: nowrap;
}
2016-06-02 11:05:42 +05:30
.table-holder {
2016-11-03 12:29:30 +05:30
.ci-table {
2016-06-02 11:05:42 +05:30
th {
2020-04-22 19:07:51 +05:30
background-color: $white;
2017-08-17 22:00:37 +05:30
color: $gl-text-color-secondary;
2016-06-02 11:05:42 +05:30
}
}
}
2016-06-02 11:05:42 +05:30
.merged-buttons {
.btn {
float: left;
2016-04-02 18:10:28 +05:30
}
}
2016-09-13 17:45:13 +05:30
2016-09-29 09:46:39 +05:30
.mr-version-controls {
2017-09-10 17:25:29 +05:30
position: relative;
2019-07-07 11:18:12 +05:30
z-index: 203;
2020-04-22 19:07:51 +05:30
background: $white;
2016-09-29 09:46:39 +05:30
color: $gl-text-color;
2019-03-02 22:35:43 +05:30
margin-top: -1px;
2016-09-29 09:46:39 +05:30
.mr-version-menus-container {
display: flex;
align-items: center;
2019-02-15 15:39:39 +05:30
flex-wrap: wrap;
2016-09-29 09:46:39 +05:30
padding: 16px;
2018-11-08 19:23:39 +05:30
z-index: 199;
2018-12-05 23:21:45 +05:30
white-space: nowrap;
.dropdown-menu-toggle {
width: auto;
max-width: 170px;
svg {
top: 10px;
right: 8px;
}
}
2016-09-29 09:46:39 +05:30
}
2016-11-03 12:29:30 +05:30
.content-block {
2020-03-13 15:44:24 +05:30
padding: $gl-padding;
2019-07-07 11:18:12 +05:30
border-bottom: 0;
2016-11-03 12:29:30 +05:30
}
2016-09-29 09:46:39 +05:30
.mr-version-dropdown,
.mr-version-compare-dropdown {
margin: 0 7px;
}
.dropdown-title {
color: $gl-text-color;
}
2019-07-07 11:18:12 +05:30
// Shortening button height by 1px to make compare-versions
// header 56px and fit into our 8px design grid
button {
height: 34px;
}
2019-03-02 22:35:43 +05:30
@include media-breakpoint-up(md) {
position: -webkit-sticky;
position: sticky;
top: $header-height + $mr-tabs-height;
2021-01-03 14:25:43 +05:30
.with-system-header & {
top: $header-height + $mr-tabs-height + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $header-height + $mr-tabs-height + $system-header-height + $performance-bar-height;
}
2019-03-02 22:35:43 +05:30
.mr-version-menus-container {
flex-wrap: nowrap;
}
.with-performance-bar & {
top: $header-height + $performance-bar-height + $mr-tabs-height;
}
}
2016-09-29 09:46:39 +05:30
}
2019-07-07 11:18:12 +05:30
.merge-request-tabs-holder,
.epic-tabs-holder {
2017-09-10 17:25:29 +05:30
top: $header-height;
2019-07-07 11:18:12 +05:30
z-index: 250;
2020-04-22 19:07:51 +05:30
background-color: $white;
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $border-color;
2016-11-03 12:29:30 +05:30
2021-01-03 14:25:43 +05:30
.with-system-header & {
top: $header-height + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $header-height + $system-header-height + $performance-bar-height;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2019-05-30 16:15:17 +05:30
position: -webkit-sticky;
2019-07-07 11:18:12 +05:30
position: sticky;
2017-09-10 17:25:29 +05:30
}
2016-11-03 12:29:30 +05:30
&.affix {
left: 0;
2018-12-13 13:39:08 +05:30
transition: right 0.15s;
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2017-08-17 22:00:37 +05:30
right: 0;
}
2016-11-03 12:29:30 +05:30
}
2016-09-13 17:45:13 +05:30
2017-08-17 22:00:37 +05:30
.nav-links {
border: 0;
}
}
2019-07-07 11:18:12 +05:30
.merge-request-tabs-holder.affix .merge-request-tabs-container,
.epic-tabs-holder.affix .epic-tabs-container {
padding-left: $gl-padding;
padding-right: $gl-padding;
}
.with-performance-bar {
.merge-request-tabs-holder,
.epic-tabs-holder {
top: $header-height + $performance-bar-height;
}
2017-09-10 17:25:29 +05:30
}
2019-07-07 11:18:12 +05:30
.merge-request-tabs,
.epic-tabs {
2017-08-17 22:00:37 +05:30
display: flex;
2018-11-08 19:23:39 +05:30
flex-wrap: nowrap;
2017-08-17 22:00:37 +05:30
margin-bottom: 0;
padding: 0;
}
.limit-container-width {
2019-07-07 11:18:12 +05:30
.merge-request-tabs-container,
.epic-tabs-container {
2017-08-17 22:00:37 +05:30
max-width: $limited-layout-width;
margin-left: auto;
margin-right: auto;
2017-09-10 17:25:29 +05:30
.inner-page-scroll-tabs {
2020-04-22 19:07:51 +05:30
background-color: $white;
2017-09-10 17:25:29 +05:30
margin-left: -$gl-padding;
padding-left: $gl-padding;
}
2017-08-17 22:00:37 +05:30
}
}
2019-07-07 11:18:12 +05:30
.merge-request-tabs-container,
.epic-tabs-container {
2017-08-17 22:00:37 +05:30
display: flex;
justify-content: space-between;
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(xs) {
.discussion-filter-container,
.line-resolve-all-container {
margin-bottom: $gl-padding-4;
}
2017-08-17 22:00:37 +05:30
}
2018-12-13 13:39:08 +05:30
.discussion-filter-container {
&:not(:only-child) {
2019-09-04 21:01:54 +05:30
margin: $gl-padding-4;
}
}
.merge-request-tabs {
height: $grid-size * 6;
}
}
2021-01-03 14:25:43 +05:30
.container-fluid {
// Negative margins for mobile/tablet screen
.diffs.tab-pane {
margin: 0 (-$gl-padding);
}
}
2019-09-04 21:01:54 +05:30
// Wrap MR tabs/buttons so you don't have to scroll on desktop
@include media-breakpoint-down(md) {
.merge-request-tabs-container,
.epic-tabs-container {
flex-direction: column-reverse;
}
}
@include media-breakpoint-down(lg) {
.right-sidebar-expanded {
.merge-request-tabs-container,
.epic-tabs-container {
flex-direction: column-reverse;
align-items: flex-start;
2018-12-13 13:39:08 +05:30
}
}
2017-08-17 22:00:37 +05:30
}
.limit-container-width:not(.container-limited) {
2019-07-07 11:18:12 +05:30
.merge-request-tabs-holder:not(.affix) .merge-request-tabs-container,
.epic-tabs-holder:not(.affix) .epic-tabs-container {
max-width: $limited-layout-width - ($gl-padding * 2);
2017-08-17 22:00:37 +05:30
}
}
.mr-memory-usage {
2018-05-09 12:01:36 +05:30
width: 100%;
2017-08-17 22:00:37 +05:30
p.usage-info-loading .usage-info-load-spinner {
margin-right: 10px;
font-size: 16px;
}
2016-09-13 17:45:13 +05:30
}
2018-03-17 18:26:18 +05:30
.fork-sprite {
margin-right: -5px;
}
2018-05-09 12:01:36 +05:30
2019-09-04 21:01:54 +05:30
.deploy-heading,
2019-10-12 21:52:04 +05:30
.merge-train-position-indicator {
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
padding: $gl-padding-8 $gl-padding;
}
2018-05-09 12:01:36 +05:30
.media-body {
min-width: 0;
2018-11-08 19:23:39 +05:30
font-size: 12px;
2019-09-30 21:07:59 +05:30
margin-left: 40px;
2018-05-09 12:01:36 +05:30
}
2019-02-15 15:39:39 +05:30
&:not(:last-child) {
border-bottom: 1px solid $border-color;
}
2018-05-09 12:01:36 +05:30
}
.deploy-body {
display: flex;
2018-11-08 19:23:39 +05:30
align-items: center;
2018-05-09 12:01:36 +05:30
flex-wrap: wrap;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(xs) {
2018-05-09 12:01:36 +05:30
flex-wrap: nowrap;
white-space: nowrap;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(md) {
flex-direction: column;
align-items: flex-start;
.deployment-info {
margin-bottom: $gl-padding;
}
}
2018-05-09 12:01:36 +05:30
> *:not(:last-child) {
2018-12-13 13:39:08 +05:30
margin-right: 0.3em;
2018-05-09 12:01:36 +05:30
}
2018-11-08 19:23:39 +05:30
svg {
vertical-align: text-top;
}
2018-05-09 12:01:36 +05:30
2018-11-08 19:23:39 +05:30
.deployment-info {
flex: 1;
white-space: nowrap;
text-overflow: ellipsis;
min-width: 100px;
@include media-breakpoint-up(xs) {
min-width: 0;
max-width: 100%;
}
}
2018-12-13 13:39:08 +05:30
.dropdown-menu {
width: 400px;
}
2018-05-09 12:01:36 +05:30
}
// Hack alert: we've rewritten `btn` class in a way that
// we've broken it and it is not possible to use with `btn-link`
// which causes a blank button when it's disabled and hovering
// The css in here is the boostrap one
.btn-link-retry {
&[disabled] {
cursor: not-allowed;
box-shadow: none;
2018-12-13 13:39:08 +05:30
opacity: 0.65;
2018-05-09 12:01:36 +05:30
&:hover {
2020-11-24 15:15:51 +05:30
color: $gray-500;
2018-05-09 12:01:36 +05:30
text-decoration: none;
}
}
}
2018-11-08 19:23:39 +05:30
.ci-widget-container {
justify-content: space-between;
flex: 1;
flex-direction: row;
2018-11-20 20:47:30 +05:30
@include media-breakpoint-down(sm) {
2018-11-08 19:23:39 +05:30
flex-direction: column;
.stage-cell .stage-container {
margin-top: 16px;
}
.dropdown .mini-pipeline-graph-dropdown-menu.dropdown-menu {
transform: initial;
}
}
.coverage {
font-size: 12px;
2020-10-24 23:57:45 +05:30
color: $gray-500;
2018-11-08 19:23:39 +05:30
line-height: initial;
}
.mini-pipeline-graph-dropdown-toggle,
.stage-cell .mini-pipeline-graph-dropdown-toggle svg {
height: $ci-action-icon-size-lg;
width: $ci-action-icon-size-lg;
}
}
2019-03-02 22:35:43 +05:30
.merge-request-details .file-finder-overlay.diff-file-finder {
position: fixed;
z-index: 99999;
background: $black-transparent;
}
2019-07-07 11:18:12 +05:30
.mr-compare {
.diff-file .file-title-flex-parent {
top: $header-height + 51px;
.with-performance-bar & {
top: $performance-bar-height + $header-height + 51px;
}
}
}
2020-07-28 23:09:34 +05:30
.diff-file-row.is-active {
background-color: $gray-50;
}