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

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

352 lines
5.7 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
*
*/
2021-04-17 20:07:23 +05:30
$tabs-holder-z-index: 250;
2022-07-23 23:45:48 +05:30
$comparison-empty-state-height: 62px;
2020-03-13 15:44:24 +05:30
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
.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;
}
}
}
2015-09-11 14:41:01 +05:30
.mr-state-widget {
2015-04-26 12:48:37 +05:30
.accept-merge-holder {
.accept-action {
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
}
}
}
.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;
}
}
}
2022-07-23 23:45:48 +05:30
.compare-commit-empty {
min-height: $comparison-empty-state-height;
}
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
}
2017-09-10 17:25:29 +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
}
.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
2022-07-23 23:45:48 +05:30
.merge-request-tabs-holder {
2017-09-10 17:25:29 +05:30
top: $header-height;
2021-04-17 20:07:23 +05:30
z-index: $tabs-holder-z-index;
2021-02-22 17:27:13 +05:30
background-color: $body-bg;
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 & {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$system-header-height});
2021-01-03 14:25:43 +05:30
}
.with-system-header.with-performance-bar & {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$system-header-height} + #{$performance-bar-height});
2021-01-03 14:25:43 +05:30
}
2022-07-16 23:28:13 +05:30
@include media-breakpoint-up(md) {
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
.with-performance-bar {
2022-07-23 23:45:48 +05:30
.merge-request-tabs-holder {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$performance-bar-height});
2019-07-07 11:18:12 +05:30
}
2017-09-10 17:25:29 +05:30
}
2017-08-17 22:00:37 +05:30
.limit-container-width {
2022-07-23 23:45:48 +05:30
.merge-request-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
}
}
2022-07-23 23:45:48 +05:30
.merge-request-tabs-container {
2019-09-04 21:01:54 +05:30
@include media-breakpoint-down(xs) {
2022-07-16 23:28:13 +05:30
.discussion-filter-container {
2019-09-04 21:01:54 +05:30
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) {
2022-07-23 23:45:48 +05:30
.merge-request-tabs-container {
2019-09-04 21:01:54 +05:30
flex-direction: column-reverse;
}
}
@include media-breakpoint-down(lg) {
.right-sidebar-expanded {
2022-07-23 23:45:48 +05:30
.merge-request-tabs-container {
2019-09-04 21:01:54 +05:30
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) {
2022-07-23 23:45:48 +05:30
.merge-request-tabs-holder .merge-request-tabs-container {
2019-07-07 11:18:12 +05:30
max-width: $limited-layout-width - ($gl-padding * 2);
2017-08-17 22:00:37 +05:30
}
}
2018-03-17 18:26:18 +05:30
.fork-sprite {
margin-right: -5px;
}
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
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 {
2022-03-02 08:16:31 +05:30
top: calc(#{$header-height} + #{$mr-tabs-height} + 36px);
2019-07-07 11:18:12 +05:30
.with-performance-bar & {
2022-03-02 08:16:31 +05:30
top: calc(#{$performance-bar-height} + #{$header-height} + #{$mr-tabs-height} + 36px);
2019-07-07 11:18:12 +05:30
}
}
}