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

213 lines
3 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
*
*/
2015-09-11 14:41:01 +05:30
.mr-state-widget {
2015-10-24 18:46:33 +05:30
background: #F7F8FA;
2015-09-11 14:41:01 +05:30
margin-bottom: 20px;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2015-10-24 18:46:33 +05:30
border: 1px solid #dce0e6;
@include border-radius(2px);
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
form {
margin-bottom: 0;
.clearfix {
margin-bottom: 0;
}
}
.accept-merge-holder {
.accept-action {
display: inline-block;
}
.accept-control {
display: inline-block;
margin: 0;
margin-left: 20px;
2015-09-11 14:41:01 +05:30
padding: 5px;
2015-04-26 12:48:37 +05:30
line-height: 20px;
2015-09-25 12:07:36 +05:30
&.right {
float: right;
padding-top: 12px;
a {
color: $gl-gray;
}
}
2015-04-26 12:48:37 +05:30
.remove_source_checkbox {
margin: 0;
}
}
}
2015-09-11 14:41:01 +05:30
.ci_widget {
2015-09-25 12:07:36 +05:30
border-bottom: 1px solid #eef0f2;
2015-09-11 14:41:01 +05:30
i {
margin-right: 4px;
}
&.ci-success {
color: $gl-success;
}
&.ci-skipped {
background-color: #eee;
color: #888;
}
&.ci-pending,
&.ci-running {
color: $gl-warning;
}
&.ci-failed,
&.ci-canceled,
&.ci-error {
color: $gl-danger;
}
}
.mr-widget-body,
.ci_widget,
.mr-widget-footer {
padding: 15px;
}
2015-10-24 18:46:33 +05:30
.normal {
color: #5c5d5e;
}
2015-09-11 14:41:01 +05:30
.mr-widget-body {
h4 {
2015-10-24 18:46:33 +05:30
font-weight: 600;
font-size: 17px;
2015-09-11 14:41:01 +05:30
margin: 5px 0;
2015-10-24 18:46:33 +05:30
color: #313236;
2015-09-11 14:41:01 +05:30
}
p:last-child {
margin-bottom: 0;
}
}
.mr-widget-footer {
border-top: 1px solid #EEE;
}
.ci-coverage {
float: right;
}
2015-04-26 12:48:37 +05:30
}
2015-10-24 18:46:33 +05:30
.merge-request .merge-request-tabs {
2015-09-25 12:07:36 +05:30
@include nav-menu;
margin: -$gl-padding;
padding: $gl-padding;
text-align: center;
2015-10-24 18:46:33 +05:30
margin-bottom: 1px;
}
// Mobile
@media (max-width: 480px) {
.merge-request .merge-request-tabs {
margin: 0;
padding: 0;
li {
a {
padding: 0;
}
}
}
2015-09-11 14:41:01 +05:30
}
2015-04-26 12:48:37 +05:30
.mr_source_commit,
.mr_target_commit {
.commit {
margin: 0;
padding: 2px 0;
list-style: none;
&:hover {
background: none;
}
}
}
.label-branch {
2015-10-24 18:46:33 +05:30
color: #313236;
2015-04-26 12:48:37 +05:30
font-family: $monospace_font;
2015-09-11 14:41:01 +05:30
font-weight: bold;
2015-04-26 12:48:37 +05:30
overflow: hidden;
2015-10-24 18:46:33 +05:30
font-size: 14px;
margin: 0 3px;
2015-04-26 12:48:37 +05:30
}
.mr-list {
.merge-request {
padding: 10px 15px;
position: relative;
.merge-request-title {
margin-bottom: 5px;
font-size: $list-font-size;
font-weight: bold;
}
.merge-request-info {
2015-09-25 12:07:36 +05:30
color: $gl-gray;
2015-04-26 12:48:37 +05:30
}
2015-09-11 14:41:01 +05:30
}
.merge-request-labels {
display: inline-block;
}
.merge-request-no-comments {
opacity: 0.5;
2015-04-26 12:48:37 +05:30
}
}
.merge-request-angle {
text-align: center;
margin: 0 auto;
font-size: 2em;
line-height: 1.1;
}
.merge-request-form-info {
padding-top: 15px;
}
// hide mr close link for inline diff comment form
.diff-file .close-mr-link,
.diff-file .reopen-mr-link {
display: none;
}
.merge-request-show-labels {
a {
margin-right: 5px;
margin-bottom: 5px;
display: inline-block;
.color-label {
padding: 6px 10px;
}
}
}
.merge-request-form .select2-container {
width: 250px !important;
}
2015-09-11 14:41:01 +05:30
#modal_merge_info .modal-dialog {
width: 600px;
}
.mr-source-target {
line-height: 31px;
}