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

374 lines
5.2 KiB
SCSS
Raw Normal View History

/**
* MR -> show: Automerge widget
2012-06-13 13:02:30 -04:00
*
*/
.mr-state-widget {
background: $background-color;
color: $gl-gray;
border: 1px solid $border-color;
@include border-radius(2px);
form {
margin-bottom: 0;
.clearfix {
margin-bottom: 0;
2012-06-13 13:02:30 -04:00
}
}
.accept-merge-holder {
.accept-action {
display: inline-block;
2015-11-02 11:27:38 -05:00
float: left;
2015-11-06 17:45:33 -05:00
.accept_merge_request {
&.ci-pending,
&.ci-running {
@include btn-orange;
}
&.ci-skipped,
&.ci-failed,
&.ci-canceled,
&.ci-error {
@include btn-red;
}
}
}
.accept-control {
display: inline-block;
2015-11-02 11:27:38 -05:00
float: left;
2015-02-19 18:02:49 -05:00
margin: 0;
margin-left: 20px;
padding: 5px;
2016-05-31 15:08:40 -04:00
padding-top: 8px;
line-height: 20px;
&.right {
float: right;
a {
color: $gl-gray;
}
}
.remove_source_checkbox {
margin: 0;
}
}
2012-06-13 13:02:30 -04:00
}
.ci_widget {
border-bottom: 1px solid #eef0f2;
2016-07-19 09:47:26 -04:00
svg {
margin-right: 4px;
2016-07-19 09:47:26 -04:00
position: relative;
top: 1px;
2016-07-21 10:28:41 -04:00
overflow: visible;
}
&.ci-success {
color: $gl-success;
}
&.ci-success_with_warnings {
color: $gl-success;
i {
color: $gl-warning;
}
}
&.ci-skipped {
background-color: #eee;
color: #888;
}
&.ci-pending {
color: $gl-warning;
}
&.ci-running {
color: $blue-normal;
}
&.ci-failed,
&.ci-error {
color: $gl-danger;
}
2015-12-08 07:04:47 -05:00
&.ci-canceled {
color: $gl-gray;
}
2015-12-08 07:04:47 -05:00
a.monospace {
color: inherit;
}
}
.mr-widget-body,
.ci_widget,
.mr-widget-footer {
padding: $gl-padding;
}
.normal {
color: #5c5d5e;
}
.mr-widget-body {
h4 {
font-weight: 600;
font-size: 17px;
margin: 5px 0;
2016-04-25 16:02:15 -04:00
color: $gl-gray-dark;
&.has-conflicts .fa-exclamation-triangle {
color: $gl-warning;
}
}
p:last-child {
margin-bottom: 0;
}
2016-05-31 15:08:40 -04:00
.btn-grouped {
margin-left: 0;
margin-right: 7px;
}
@media (max-width: $screen-xs-max) {
2016-05-31 15:08:40 -04:00
h4 {
font-size: 15px;
}
p {
font-size: 13px;
}
.btn,
.btn-group,
.accept-action {
margin-bottom: 4px;
}
.accept-action {
width: 100%;
text-align: center;
}
2016-05-31 15:08:40 -04:00
.accept-control {
width: 100%;
text-align: center;
margin: 0;
}
}
}
.mr-widget-footer {
border-top: 1px solid #eee;
}
.ci-coverage {
float: right;
}
2012-06-13 13:02:30 -04:00
}
.mr_source_commit,
.mr_target_commit {
margin-bottom: 0;
.commit {
margin: 0;
2016-07-05 11:16:49 -04:00
padding-top: 2px;
padding-bottom: 2px;
list-style: none;
&:hover {
background: none;
}
}
}
2013-04-06 08:10:24 -04:00
.label-branch {
2016-04-25 16:02:15 -04:00
color: $gl-gray-dark;
2013-04-06 08:10:24 -04:00
font-family: $monospace_font;
font-weight: bold;
overflow: hidden;
font-size: 90%;
margin: 0 3px;
2016-04-11 11:00:45 -04:00
word-break: break-all;
2013-04-06 08:10:24 -04:00
}
.mr-list {
.merge-request {
padding: 10px 15px;
2013-04-06 08:10:24 -04:00
position: relative;
.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
}
}
.merge-request-labels {
display: inline-block;
}
.merge-request-no-comments {
opacity: 0.5;
2013-04-06 08:10:24 -04:00
}
}
2013-07-17 08:48:22 -04:00
.merge-request-angle {
text-align: center;
margin: 0 auto;
font-size: 2em;
line-height: 1.1;
2013-07-17 08:48:22 -04:00
}
// hide mr close link for inline diff comment form
.diff-file .close-mr-link,
.diff-file .reopen-mr-link {
display: none;
}
2015-08-09 11:34:28 -04:00
#modal_merge_info .modal-dialog {
width: 600px;
.btn-clipboard {
@extend .pull-right;
margin-right: 20px;
margin-top: 5px;
position: absolute;
right: 0;
}
2015-08-09 11:34:28 -04:00
}
.mr-source-target {
line-height: 31px;
}
.builds {
.table-holder {
overflow-x: scroll;
}
}
.panel-new-merge-request {
.panel-heading {
padding: 5px 10px;
font-weight: 600;
line-height: 25px;
}
.panel-body {
padding: 10px 5px;
}
.panel-footer {
2016-04-06 06:08:24 -04:00
padding: 5px 10px;
.btn {
min-width: auto;
}
}
.commit {
.commit-row-title {
margin-bottom: 4px;
}
2016-06-24 07:52:48 -04:00
.item-title {
@media (min-width: $screen-sm-min) {
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;
}
.commit-row-info {
line-height: 20px;
}
}
.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;
}
@media (min-width: $screen-xs-min) {
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;
2016-04-06 11:25:38 -04:00
}
2016-04-25 16:02:15 -04:00
.table-holder {
.builds {
th {
background-color: $white-light;
color: $gl-placeholder-color;
}
}
}
.merged-buttons {
.btn {
float: left;
&:not(:last-child) {
margin-right: 10px;
}
}
}