Commit 8466dcaf authored by pburdette's avatar pburdette

Change blob view edit styling

parent 5d94e9d2
...@@ -387,6 +387,10 @@ span.idiff { ...@@ -387,6 +387,10 @@ span.idiff {
float: none; float: none;
} }
.file-actions .ide-edit-button {
z-index: 1;
}
@include media-breakpoint-down(xs) { @include media-breakpoint-down(xs) {
display: block; display: block;
......
...@@ -47,7 +47,7 @@ module BlobHelper ...@@ -47,7 +47,7 @@ module BlobHelper
def edit_blob_button(project = @project, ref = @ref, path = @path, options = {}) def edit_blob_button(project = @project, ref = @ref, path = @path, options = {})
return unless blob = readable_blob(options, path, project, ref) return unless blob = readable_blob(options, path, project, ref)
common_classes = "btn js-edit-blob #{options[:extra_class]}" common_classes = "btn btn-primary js-edit-blob #{options[:extra_class]}"
edit_button_tag(blob, edit_button_tag(blob,
common_classes, common_classes,
...@@ -62,7 +62,7 @@ module BlobHelper ...@@ -62,7 +62,7 @@ module BlobHelper
return unless blob = readable_blob(options, path, project, ref) return unless blob = readable_blob(options, path, project, ref)
edit_button_tag(blob, edit_button_tag(blob,
'btn btn-default', 'btn btn-inverted btn-primary ide-edit-button',
_('Web IDE'), _('Web IDE'),
ide_edit_path(project, ref, path, options), ide_edit_path(project, ref, path, options),
project, project,
...@@ -108,7 +108,7 @@ module BlobHelper ...@@ -108,7 +108,7 @@ module BlobHelper
path, path,
label: _("Delete"), label: _("Delete"),
action: "delete", action: "delete",
btn_class: "remove", btn_class: "default",
modal_type: "remove" modal_type: "remove"
) )
end end
......
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