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

369 lines
5.1 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 {
background: $background-color;
2015-09-25 12:07:36 +05:30
color: $gl-gray;
border: 1px solid $border-color;
2015-10-24 18:46:33 +05:30
@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;
2015-12-23 02:04:40 +05:30
float: left;
2015-11-26 14:37:03 +05:30
.accept_merge_request {
&.ci-pending,
&.ci-running {
@include btn-orange;
}
&.ci-skipped,
&.ci-failed,
&.ci-canceled,
&.ci-error {
@include btn-red;
}
}
2015-04-26 12:48:37 +05:30
}
.accept-control {
display: inline-block;
2015-12-23 02:04:40 +05:30
float: left;
2015-04-26 12:48:37 +05:30
margin: 0;
margin-left: 20px;
2015-09-11 14:41:01 +05:30
padding: 5px;
padding-top: 8px;
2015-04-26 12:48:37 +05:30
line-height: 20px;
2015-09-25 12:07:36 +05:30
&.right {
float: right;
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
2016-08-24 12:49:21 +05:30
svg {
2015-09-11 14:41:01 +05:30
margin-right: 4px;
2016-08-24 12:49:21 +05:30
position: relative;
top: 1px;
overflow: visible;
2015-09-11 14:41:01 +05:30
}
&.ci-success {
color: $gl-success;
}
2016-08-24 12:49:21 +05:30
&.ci-success_with_warnings {
color: $gl-success;
i {
color: $gl-warning;
}
}
2015-09-11 14:41:01 +05:30
&.ci-skipped {
background-color: #eee;
color: #888;
}
2016-08-24 12:49:21 +05:30
&.ci-pending {
2015-09-11 14:41:01 +05:30
color: $gl-warning;
}
2016-08-24 12:49:21 +05:30
&.ci-running {
color: $blue-normal;
}
2015-09-11 14:41:01 +05:30
&.ci-failed,
&.ci-error {
color: $gl-danger;
}
2015-12-23 02:04:40 +05:30
&.ci-canceled {
color: $gl-gray;
}
2015-12-23 02:04:40 +05:30
a.monospace {
color: inherit;
}
2015-09-11 14:41:01 +05:30
}
.mr-widget-body,
.ci_widget,
.mr-widget-footer {
2015-12-23 02:04:40 +05:30
padding: $gl-padding;
2015-09-11 14:41:01 +05:30
}
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;
2016-06-02 11:05:42 +05:30
color: $gl-gray-dark;
&.has-conflicts .fa-exclamation-triangle {
color: $gl-warning;
}
2015-09-11 14:41:01 +05:30
}
p:last-child {
margin-bottom: 0;
}
2016-06-22 15:30:34 +05:30
.btn-grouped {
margin-left: 0;
margin-right: 7px;
}
@media (max-width: $screen-xs-max) {
h4 {
font-size: 15px;
}
p {
font-size: 13px;
}
.btn,
.btn-group,
.accept-action {
margin-bottom: 4px;
}
2016-06-22 15:30:34 +05:30
.accept-action {
width: 100%;
text-align: center;
}
.accept-control {
width: 100%;
text-align: center;
margin: 0;
}
}
2015-09-11 14:41:01 +05:30
}
.mr-widget-footer {
2016-06-02 11:05:42 +05:30
border-top: 1px solid #eee;
2015-09-11 14:41:01 +05:30
}
.ci-coverage {
float: right;
}
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;
2016-08-24 12:49:21 +05:30
padding-top: 2px;
padding-bottom: 2px;
2015-04-26 12:48:37 +05:30
list-style: none;
&:hover {
background: none;
}
}
}
.label-branch {
2016-06-02 11:05:42 +05:30
color: $gl-gray-dark;
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-12-23 02:04:40 +05:30
font-size: 90%;
2015-10-24 18:46:33 +05:30
margin: 0 3px;
2016-06-02 11:05:42 +05:30
word-break: break-all;
2015-04-26 12:48:37 +05:30
}
.mr-list {
.merge-request {
padding: 10px 15px;
position: relative;
.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;
}
}
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;
}
// 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 {
width: 600px;
2015-11-26 14:37:03 +05:30
.btn-clipboard {
@extend .pull-right;
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
}
.mr-source-target {
line-height: 31px;
}
2016-04-02 18:10:28 +05:30
2016-06-02 11:05:42 +05:30
.builds {
.table-holder {
overflow-x: scroll;
}
}
2016-04-02 18:10:28 +05:30
2016-06-02 11:05:42 +05:30
.panel-new-merge-request {
.panel-heading {
padding: 5px 10px;
font-weight: 600;
line-height: 25px;
2016-04-02 18:10:28 +05:30
}
2016-06-02 11:05:42 +05:30
.panel-body {
padding: 10px 5px;
}
2016-04-02 18:10:28 +05:30
2016-06-02 11:05:42 +05:30
.panel-footer {
padding: 5px 10px;
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 {
@media (min-width: $screen-sm-min) {
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
}
.commit-row-info {
line-height: 20px;
}
}
.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;
}
2016-06-22 15:30:34 +05:30
@media (min-width: $screen-xs-min) {
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;
}
.table-holder {
.builds {
th {
background-color: $white-light;
color: $gl-placeholder-color;
}
}
}
2016-06-02 11:05:42 +05:30
.merged-buttons {
.btn {
float: left;
&:not(:last-child) {
margin-right: 10px;
2016-04-02 18:10:28 +05:30
}
}
}