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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

385 lines
6.2 KiB
SCSS
Raw Normal View History

/**
* MR -> show: Automerge widget
2012-06-13 13:02:30 -04:00
*
*/
$tabs-holder-z-index: 250;
$comparison-empty-state-height: 62px;
2017-08-06 22:29:37 -04:00
.space-children {
@include clearfix;
> * {
float: left;
}
> *:not(:first-child) {
margin-left: 10px;
2017-08-06 22:29:37 -04:00
}
}
.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-state-widget {
.accept-merge-holder {
.accept-action {
.accept-merge-request {
&.ci-preparing,
2015-11-06 17:45:33 -05:00
&.ci-pending,
&.ci-running {
@include btn-blue;
2015-11-06 17:45:33 -05:00
}
&.ci-skipped,
&.ci-failed,
&.ci-canceled,
&.ci-error {
@include btn-red;
}
}
}
2012-06-13 13:02:30 -04:00
}
}
.mr_source_commit,
.mr_target_commit {
margin-bottom: 0;
.commit {
margin: 0;
2017-06-21 09:25:55 -04:00
padding: 10px;
list-style: none;
&:hover {
background: none;
}
}
}
.compare-commit-empty {
min-height: $comparison-empty-state-height;
}
2016-09-13 17:05:16 -04:00
.commits-empty {
text-align: center;
h4 {
padding-top: 20px;
padding-bottom: 10px;
}
2016-09-13 17:05:16 -04:00
svg {
width: 230px;
}
}
.nothing-here-block {
img {
width: 230px;
}
}
2013-04-06 08:10:24 -04:00
.mr-list {
.merge-request {
padding: 10px $gl-padding;
2017-02-08 02:04:00 -05:00
display: flex;
2013-04-06 08:10:24 -04:00
.issuable-info-container {
2017-02-08 02:04:00 -05:00
flex: 1;
2017-02-07 05:30:44 -05:00
}
2013-04-06 08:10:24 -04:00
.merge-request-title {
margin-bottom: 2px;
2016-07-19 09:47:26 -04:00
.ci-status-link {
svg {
height: 16px;
width: 16px;
position: relative;
top: 3px;
}
2016-07-21 16:55:21 -04:00
&:hover,
&:focus {
text-decoration: none;
}
2016-07-19 09:47:26 -04:00
}
2013-04-06 08:10:24 -04:00
}
}
2017-08-06 22:29:37 -04:00
}
2018-04-09 11:26:28 -04:00
.card-new-merge-request {
.card-header {
padding: 5px 10px;
font-weight: $gl-font-weight-bold;
line-height: 25px;
}
2018-04-09 11:26:28 -04:00
.card-body {
padding: 10px 5px;
}
2018-04-09 11:26:28 -04:00
.card-footer {
padding: 0;
.btn {
min-width: auto;
}
}
.commit {
.commit-row-title {
margin-bottom: 4px;
}
2016-06-24 07:52:48 -04:00
.item-title {
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(sm) {
2016-07-17 12:47:46 -04:00
width: 45%;
2016-06-24 07:52:48 -04:00
}
}
.avatar {
2016-06-24 07:52:48 -04:00
left: 0;
top: 2px;
}
}
.btn-clipboard {
margin-right: 5px;
padding: 0;
background: transparent;
}
2016-04-06 07:52:07 -04:00
.ci-status-link {
margin-right: 5px;
}
}
.merge-request-select {
padding-left: 5px;
padding-right: 5px;
2016-04-11 04:54:32 -04:00
margin-bottom: 10px;
&:last-child {
margin-bottom: 0;
}
2018-04-09 11:26:28 -04:00
@include media-breakpoint-up(xs) {
2016-04-11 04:54:32 -04:00
float: left;
width: 50%;
margin-bottom: 0;
}
2016-03-29 06:11:16 -04:00
.dropdown-menu-toggle {
width: 100%;
}
.dropdown-menu {
left: 5px;
right: 5px;
width: auto;
}
}
2016-04-06 11:25:38 -04:00
.issuable-form-select-holder {
display: inline-block;
width: 250px;
.dropdown-menu-toggle {
width: 100%;
}
2016-04-06 11:25:38 -04:00
}
2016-04-25 16:02:15 -04:00
.table-holder {
2016-10-10 17:21:08 -04:00
.ci-table {
2016-04-25 16:02:15 -04:00
th {
background-color: $white;
2016-12-30 15:18:27 -05:00
color: $gl-text-color-secondary;
2016-04-25 16:02:15 -04:00
}
}
}
.merge-request-tabs-holder {
top: $header-height;
z-index: $tabs-holder-z-index;
background-color: $body-bg;
2019-02-13 09:45:24 -05:00
border-bottom: 1px solid $border-color;
.with-system-header & {
top: calc(#{$header-height} + #{$system-header-height});
}
.with-system-header.with-performance-bar & {
top: calc(#{$header-height} + #{$system-header-height} + #{$performance-bar-height});
}
@include media-breakpoint-up(md) {
position: sticky;
}
&.affix {
left: 0;
2018-10-22 04:31:24 -04:00
transition: right 0.15s;
2016-12-29 16:04:26 -05:00
2018-04-09 11:26:28 -04:00
@include media-breakpoint-down(xs) {
2016-12-29 16:04:26 -05:00
right: 0;
}
}
.nav-links {
border: 0;
}
}
2019-04-03 07:42:34 -04:00
.with-performance-bar {
.merge-request-tabs-holder {
top: calc(#{$header-height} + #{$performance-bar-height});
2019-04-03 07:42:34 -04:00
}
}
.limit-container-width {
.merge-request-tabs-container {
max-width: $limited-layout-width;
margin-left: auto;
margin-right: auto;
.inner-page-scroll-tabs {
background-color: $white;
margin-left: -$gl-padding;
padding-left: $gl-padding;
}
}
}
.merge-request-tabs-container {
@include media-breakpoint-down(xs) {
.discussion-filter-container {
margin-bottom: $gl-padding-4;
}
}
.discussion-filter-container {
&:not(:only-child) {
margin: $gl-padding-4;
}
}
.merge-request-tabs {
height: $grid-size * 6;
}
}
.container-fluid {
// Negative margins for mobile/tablet screen
.diffs.tab-pane {
margin: 0 (-$gl-padding);
}
}
// Wrap MR tabs/buttons so you don't have to scroll on desktop
@include media-breakpoint-down(md) {
.merge-request-tabs-container {
flex-direction: column-reverse;
}
}
@include media-breakpoint-down(lg) {
.right-sidebar-expanded {
.merge-request-tabs-container {
flex-direction: column-reverse;
align-items: flex-start;
}
}
}
.limit-container-width:not(.container-limited) {
.merge-request-tabs-holder .merge-request-tabs-container {
2019-04-03 07:42:34 -04:00
max-width: $limited-layout-width - ($gl-padding * 2);
}
}
2017-05-09 00:15:34 -04:00
.fork-sprite {
margin-right: -5px;
}
// 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`
2018-04-17 04:51:33 -04:00
// 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-10-22 04:31:24 -04:00
opacity: 0.65;
&:hover {
color: $gray-500;
text-decoration: none;
}
}
2018-04-16 13:48:53 -04:00
}
.merge-request-details .file-finder-overlay.diff-file-finder {
position: fixed;
z-index: 99999;
background: $black-transparent;
}
2019-02-14 03:41:38 -05:00
.mr-compare {
.diff-file .file-title-flex-parent {
top: calc(#{$header-height} + #{$mr-tabs-height} + 36px);
.with-performance-bar & {
top: calc(#{$performance-bar-height} + #{$header-height} + #{$mr-tabs-height} + 36px);
}
}
}
.mr-experience-survey-wrapper {
// setting this explicitly because:
// diff-files-holder has z-index 203
// z-index 9999 utility class breaks tooltips
z-index: 210;
}
.mr-experience-survey-body {
width: 300px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.mr-experience-survey-legal {
order: 1;
}
.mr-experience-survey-logo {
width: 16px;
svg {
max-width: 100%;
}
}
.survey-slide-up-enter {
transform: translateY(10px);
opacity: 0;
}
.survey-slide-up-enter-active {
@include gl-transition-slow;
}