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

797 lines
12 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 {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
border: 1px solid $border-color;
2016-11-03 12:29:30 +05:30
border-radius: 2px;
2015-09-11 14:41:01 +05:30
2015-04-26 12:48:37 +05:30
form {
margin-bottom: 0;
2016-11-03 12:29:30 +05:30
2015-04-26 12:48:37 +05:30
.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
2017-08-17 22:00:37 +05:30
.btn-success.dropdown-toggle .fa {
color: inherit;
}
.accept-merge-request {
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
}
.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;
2017-08-17 22:00:37 +05:30
padding-right: 0;
}
.modify-merge-commit-link {
padding: 0;
background-color: transparent;
border: 0;
2016-11-03 12:29:30 +05:30
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
&:hover,
&:focus {
text-decoration: underline;
2015-09-25 12:07:36 +05:30
}
}
2017-08-17 22:00:37 +05:30
.merge-param-checkbox {
2015-04-26 12:48:37 +05:30
margin: 0;
}
2017-08-17 22:00:37 +05:30
a .fa-question-circle {
color: $gl-text-color-secondary;
&:hover,
&:focus {
color: $link-hover-color;
}
}
2015-04-26 12:48:37 +05:30
}
}
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
.ci-widget {
color: $gl-text-color;
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
padding: $gl-padding-top $gl-padding 0;
2015-09-11 14:41:01 +05:30
2016-08-24 12:49:21 +05:30
svg {
position: relative;
top: 1px;
overflow: visible;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
& > span {
padding-right: 4px;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
@media (max-width: $screen-xs-max) {
flex-wrap: wrap;
2016-08-24 12:49:21 +05:30
}
2017-08-17 22:00:37 +05:30
.icon-link > .ci-status-icon > svg {
width: 22px;
height: 22px;
margin-right: 8px;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
.ci-error {
margin-right: $btn-side-margin;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
}
.mr-widget-body,
.mr-widget-footer {
margin: 16px;
}
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
.mr-widget-pipeline-graph {
flex-shrink: 0;
.dropdown-menu {
margin-top: 11px;
z-index: 200;
2016-08-24 12:49:21 +05:30
}
2017-08-17 22:00:37 +05:30
.ci-action-icon-wrapper {
line-height: 16px;
2015-09-11 14:41:01 +05:30
}
2015-12-23 02:04:40 +05:30
2017-08-17 22:00:37 +05:30
@media (min-width: $screen-sm-min) {
.stage-cell {
padding: 0 4px;
}
}
2017-08-17 22:00:37 +05:30
@media (max-width: $screen-xs-max) {
order: 1;
margin-top: $gl-padding-top;
border-radius: 3px;
background-color: $white-light;
border: 1px solid $gray-darker;
width: 100%;
text-align: center;
.dropdown-menu {
margin-left: -97.5px;
}
.arrow-up::before,
.arrow-up::after, {
margin-left: 97.5px;
}
2015-12-23 02:04:40 +05:30
}
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
.normal {
color: $gl-text-color;
font-size: 15px;
2015-09-11 14:41:01 +05:30
}
2017-08-17 22:00:37 +05:30
.capitalize {
text-transform: capitalize;
2015-10-24 18:46:33 +05:30
}
2016-11-03 12:29:30 +05:30
.js-deployment-link {
display: inline-block;
}
2017-08-17 22:00:37 +05:30
.mr-widget-help {
margin: $gl-padding;
color: $ci-skipped-color;
}
.mr-info-list {
&.mr-links {
margin-left: 28px;
}
&.mr-memory-usage {
margin: 5px 0 10px 25px;
}
}
.mr-widget-heading {
.btn-default.btn-xs {
margin-left: 5px;
}
}
.mr-widget-body {
.btn {
font-size: 15px;
}
.btn-group .btn {
padding: 5px 10px;
&.dropdown-toggle {
padding: 5px 7px;
}
}
}
2015-09-11 14:41:01 +05:30
.mr-widget-body {
h4 {
2017-08-17 22:00:37 +05:30
font-weight: bold;
font-size: 15px;
2015-09-11 14:41:01 +05:30
margin: 5px 0;
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
&.has-conflicts .fa-exclamation-triangle {
color: $gl-warning;
}
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
time {
font-weight: normal;
}
2015-09-11 14:41:01 +05:30
}
2016-06-22 15:30:34 +05:30
.btn-grouped {
margin-left: 0;
margin-right: 7px;
}
2017-08-17 22:00:37 +05:30
label {
font-weight: normal;
}
.spacing {
margin: 0 $gl-padding;
}
.bold {
font-weight: bold;
font-size: 15px;
color: $gl-gray-light;
}
.state-label {
font-size: 16px;
font-weight: bold;
padding-right: 10px;
}
.danger {
color: $gl-danger;
}
.mr-widget-help {
margin: $gl-padding 0;
}
.with-button {
position: relative;
top: 6px;
margin-bottom: 24px;
}
.spacing,
.bold {
vertical-align: middle;
}
.dropdown-menu {
li a {
padding: 5px;
}
.merge-opt-icon,
.merge-opt-title {
display: inline-block;
float: left;
}
.merge-opt-icon svg {
height: 15px;
width: 15px;
}
.merge-opt-title {
margin-left: 8px;
}
}
.dropdown-toggle {
.fa {
color: inherit;
}
}
.has-error-message + .has-custom-error {
margin-left: 0;
}
.has-custom-error {
display: inline-block;
margin-left: 70px;
}
.merge-error-text {
margin-left: 70px;
}
2016-06-22 15:30:34 +05:30
@media (max-width: $screen-xs-max) {
h4 {
2017-08-17 22:00:37 +05:30
font-size: 14px;
}
p {
font-size: 13px;
}
.btn,
.btn-group,
.accept-action {
margin-bottom: 4px;
}
2017-08-17 22:00:37 +05:30
.btn-grouped {
float: none;
margin-right: 0;
}
2016-06-22 15:30:34 +05:30
.accept-action {
width: 100%;
text-align: center;
}
.accept-control {
width: 100%;
text-align: center;
margin: 0;
}
}
2017-08-17 22:00:37 +05:30
.commit-message-editor {
label {
padding: 0;
}
}
&.mr-state-locked .mr-info-list {
margin-top: 10px;
margin-left: 12px;
}
2015-09-11 14:41:01 +05:30
}
.mr-widget-footer {
2017-08-17 22:00:37 +05:30
border-top: 1px solid $gray-darker;
2015-09-11 14:41:01 +05:30
}
.ci-coverage {
float: right;
}
2016-11-03 12:29:30 +05:30
.stop-env-container {
color: $gl-text-color;
float: right;
a {
color: $gl-text-color;
}
}
2015-04-26 12:48:37 +05:30
}
2017-08-17 22:00:37 +05:30
.mr-state-widget .mr-widget-body {
.approve-btn {
margin-right: 5px;
}
}
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-08-17 22:00:37 +05:30
padding: 10px 0;
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;
}
}
}
.label-branch {
2017-08-17 22:00:37 +05:30
color: $gl-text-color;
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;
2017-08-17 22:00:37 +05:30
&.label-truncated {
position: relative;
display: inline-block;
width: 250px;
margin-bottom: -3px;
white-space: nowrap;
text-overflow: clip;
line-height: 14px;
&::after {
position: absolute;
content: '...';
right: 0;
font-family: $regular_font;
background-color: $gray-light;
}
}
2015-04-26 12:48:37 +05:30
}
2016-11-03 12:29:30 +05:30
.commits-empty {
text-align: center;
h4 {
padding-top: 20px;
padding-bottom: 10px;
}
svg {
width: 230px;
}
}
2015-04-26 12:48:37 +05:30
.mr-list {
.merge-request {
2017-08-17 22:00:37 +05:30
padding: 10px 0 10px 15px;
2015-04-26 12:48:37 +05:30
position: relative;
2017-08-17 22:00:37 +05:30
display: -webkit-flex;
display: flex;
.issue-info-container {
-webkit-flex: 1;
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
}
.merge-request-labels {
display: inline-block;
}
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 {
2017-08-17 22:00:37 +05:30
.dark {
margin-right: 40px;
}
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
}
2017-08-17 22:00:37 +05:30
.mr-info-list {
position: relative;
margin: 10px 0 $gl-padding 12px;
p {
margin: 6px 0;
position: relative;
padding-left: 15px;
&::before {
content: '';
position: absolute;
border-top: 2px solid $border-color;
height: 1px;
top: 9px;
width: 8px;
left: 0;
}
&:last-child {
margin-bottom: 0;
}
}
.legend {
height: 100%;
width: 2px;
background: $border-color;
position: absolute;
top: -9px;
}
}
.mr-info-list.mr-memory-usage {
.legend {
height: 65%;
top: 0;
@media (max-width: $screen-xs-max) {
height: 20px;
}
}
p {
float: left;
padding-left: 21px;
&::before {
top: 13px;
}
}
.memory-graph-container {
float: left;
margin-left: 5px;
}
}
2015-09-11 14:41:01 +05:30
.mr-source-target {
2017-08-17 22:00:37 +05:30
background-color: $gray-light;
border-radius: 3px 3px 0 0;
border-bottom: 1px solid $border-color;
padding: 0 $gl-padding;
margin-bottom: 6px;
line-height: 44px;
.dropdown-toggle .fa {
color: $gl-text-color;
}
2015-09-11 14:41:01 +05:30
}
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 {
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 {
@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
}
}
.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;
2016-11-03 12:29:30 +05:30
.dropdown-menu-toggle {
width: 100%;
}
2016-06-02 11:05:42 +05:30
}
2017-08-17 22:00:37 +05:30
.target-branch-select-dropdown-container {
position: relative;
}
.assign-to-me-link {
padding-left: 12px;
white-space: nowrap;
}
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 {
background-color: $white-light;
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
.merged-buttons {
2017-08-17 22:00:37 +05:30
margin-top: 20px;
.btn {
float: left;
&:not(:last-child) {
margin-right: 10px;
2016-04-02 18:10:28 +05:30
}
}
}
2016-09-13 17:45:13 +05:30
2016-09-29 09:46:39 +05:30
.mr-version-controls {
2017-08-17 22:00:37 +05:30
background: $gray-light;
2016-09-29 09:46:39 +05:30
color: $gl-text-color;
.mr-version-menus-container {
display: -webkit-flex;
display: flex;
-webkit-align-items: center;
align-items: center;
padding: 16px;
}
2016-11-03 12:29:30 +05:30
.content-block {
padding: $gl-padding-top $gl-padding;
}
2016-09-29 09:46:39 +05:30
.comments-disabled-notif {
2017-08-17 22:00:37 +05:30
line-height: 28px;
2016-09-29 09:46:39 +05:30
.btn {
margin-left: 5px;
}
}
.mr-version-dropdown,
.mr-version-compare-dropdown {
margin: 0 7px;
}
.dropdown-title {
color: $gl-text-color;
}
.fa-info-circle {
2017-08-17 22:00:37 +05:30
color: $orange-500;
2016-09-29 09:46:39 +05:30
padding-right: 5px;
}
}
2016-11-03 12:29:30 +05:30
.merge-request-tabs-holder {
2017-08-17 22:00:37 +05:30
z-index: 100;
2016-11-03 12:29:30 +05:30
background-color: $white-light;
2017-08-17 22:00:37 +05:30
border-bottom: 1px solid $border-color;
2016-11-03 12:29:30 +05:30
&.affix {
2017-08-17 22:00:37 +05:30
top: 0;
2016-11-03 12:29:30 +05:30
left: 0;
z-index: 10;
transition: right .15s;
2017-08-17 22:00:37 +05:30
@media (max-width: $screen-xs-max) {
right: 0;
}
.merge-request-tabs-container {
padding-left: $gl-padding;
padding-right: $gl-padding;
}
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;
}
}
.merge-request-tabs {
display: flex;
margin-bottom: 0;
padding: 0;
}
.limit-container-width {
.merge-request-tabs-container {
max-width: $limited-layout-width;
margin-left: auto;
margin-right: auto;
}
}
.merge-request-tabs-container {
display: flex;
justify-content: space-between;
@media (max-width: $screen-xs-max) {
flex-direction: column-reverse;
}
}
.limit-container-width:not(.container-limited) {
.merge-request-tabs-holder:not(.affix) {
.merge-request-tabs-container {
max-width: $limited-layout-width - ($gl-padding * 2);
}
}
}
.mr-memory-usage {
p.usage-info-loading,
p.usage-info-unavailable,
p.usage-info-failed {
margin-bottom: 5px;
}
p.usage-info-loading .usage-info-load-spinner {
margin-right: 10px;
font-size: 16px;
}
@media (max-width: $screen-md-min) {
.mr-info-list.mr-memory-usage .legend {
height: 80%;
}
2016-09-13 17:45:13 +05:30
}
}