Commit b9e9b11b authored by Filipa Lacerda's avatar Filipa Lacerda

Improve CSS for treeview with pipelines to make it responsible

parent 578b2b2f
...@@ -178,10 +178,6 @@ ...@@ -178,10 +178,6 @@
} }
} }
p:last-child {
margin-bottom: 0;
}
.btn-grouped { .btn-grouped {
margin-left: 0; margin-left: 0;
margin-right: 7px; margin-right: 7px;
...@@ -346,41 +342,45 @@ ...@@ -346,41 +342,45 @@
.remove-message-pipes { .remove-message-pipes {
ul { ul {
margin-left: 6px; margin: 10px 0 0 12px;
margin-bottom: 20px; padding: 0;
padding-left: 0;
list-style: none; list-style: none;
border-left: 3px solid $border-color; border-left: 2px solid $border-color;
} display: inline-block;
ul li:last-child {
margin-bottom: 0;
} }
li { li {
height: 30px;
position: relative; position: relative;
margin: -3px; margin: 0;
padding-bottom: 3px; padding: 0;
display: block;
span {
margin-left: 15px;
max-height: 20px;
}
} }
li span { li:before {
width: 20px; content: '';
display: inline-block; position: absolute;
height: 3px; border-top: 2px solid #e5e5e5;
background: $border-color; height: 1px;
margin-right: 5px; top: 8px;
top: 16px; width: 8px;
position: relative;
} }
li p { li:last-child {
display: inline-block; &:before {
margin: 0; top: 18px;
margin-bottom: -3px; }
padding: 0;
span {
display: block;
position: relative; position: relative;
top: 20px; top: 5px;
margin-top: 5px;
}
} }
} }
...@@ -390,8 +390,7 @@ ...@@ -390,8 +390,7 @@
border-style: solid; border-style: solid;
border-width: 1px; border-width: 1px;
border-color: $border-color; border-color: $border-color;
border-top-right-radius: 10px; border-radius: 3px;
border-top-left-radius: 10px;
padding: 10px; padding: 10px;
margin-bottom: -1px; margin-bottom: -1px;
} }
...@@ -489,6 +488,8 @@ ...@@ -489,6 +488,8 @@
} }
.merged-buttons { .merged-buttons {
margin-top: 20px;
.btn { .btn {
float: left; float: left;
......
...@@ -11,12 +11,10 @@ ...@@ -11,12 +11,10 @@
%ul %ul
%li %li
%span %span
%p
The changes were merged into The changes were merged into
#{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}. #{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}.
%li %li
%span %span
%p
The source branch has been removed. The source branch has been removed.
= render 'projects/merge_requests/widget/merged_buttons' = render 'projects/merge_requests/widget/merged_buttons'
- elsif @merge_request.can_remove_source_branch?(current_user) - elsif @merge_request.can_remove_source_branch?(current_user)
...@@ -24,37 +22,31 @@ ...@@ -24,37 +22,31 @@
%ul %ul
%li %li
%span %span
%p
The changes were merged into The changes were merged into
#{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}. #{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}.
%li %li
%span %span
%p
You can remove the source branch now. You can remove the source branch now.
= render 'projects/merge_requests/widget/merged_buttons', source_branch_exists: true = render 'projects/merge_requests/widget/merged_buttons', source_branch_exists: true
.remove_source_branch_widget.failed.remove-message-pipes.hide .remove_source_branch_widget.failed.remove-message-pipes.hide
%ul %ul
%li %li
%span %span
%p
Failed to remove source branch '#{@merge_request.source_branch}'. Failed to remove source branch '#{@merge_request.source_branch}'.
.remove_source_branch_in_progress.remove-message-pipes.hide .remove_source_branch_in_progress.remove-message-pipes.hide
%ul %ul
%li %li
%span %span
%p
= icon('spinner spin') = icon('spinner spin')
Removing source branch '#{@merge_request.source_branch}'. Removing source branch '#{@merge_request.source_branch}'.
%li %li
%span %span
%p
Please wait, this page will be automatically reloaded. Please wait, this page will be automatically reloaded.
- else - else
.remove-message-pipes .remove-message-pipes
%ul %ul
%li %li
%span %span
%p
The changes were merged into The changes were merged into
#{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}. #{link_to @merge_request.target_branch, namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch"}.
= render 'projects/merge_requests/widget/merged_buttons' = render 'projects/merge_requests/widget/merged_buttons'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment