Commit b371b6d1 authored by Douwe Maan's avatar Douwe Maan

Update style of snippet detail page

parent 1565a95d
...@@ -59,7 +59,7 @@ v 8.1.0 (unreleased) ...@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw) - Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji) - Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Persist filters when sorting on admin user page (Jerry Lukins) - Persist filters when sorting on admin user page (Jerry Lukins)
- Added last modified date to snippets#show (Han Loong Liauw) - Update style of snippet detail page (Han Loong Liauw)
- Allow dashboard and group issues/MRs to be filtered by label - Allow dashboard and group issues/MRs to be filtered by label
- Add spellcheck=false to certain input fields - Add spellcheck=false to certain input fields
- Invalidate stored service password if the endpoint URL is changed - Invalidate stored service password if the endpoint URL is changed
......
...@@ -31,28 +31,22 @@ ...@@ -31,28 +31,22 @@
} }
} }
.snippet-details { .snippet-holder {
.snippet-details {
.page-title { .page-title {
margin-top: -15px; margin-top: -15px;
padding: 10px 0; padding: 10px 0;
margin-bottom: 0; margin-bottom: 0;
color: #5c5d5e; color: #5c5d5e;
font-size: 13px; font-size: 16px;
@include clearfix();
.creator { .author {
color: $gl-gray; color: #5c5d5e;
a {
color: $gl-gray;
}
} }
.snippet-id { .snippet-id {
color: #5c5d5e; color: #5c5d5e;
} }
.btn {
padding: 10px $gl-padding;
}
} }
.snippet-title { .snippet-title {
...@@ -73,8 +67,14 @@ ...@@ -73,8 +67,14 @@
display: none; display: none;
} }
} }
}
.file-holder {
border-top: 0;
}
} }
.snippet-box { .snippet-box {
@include border-radius(2px); @include border-radius(2px);
......
- page_title @snippet.title, "Snippets" - page_title @snippet.title, "Snippets"
= render "header_title" = render "header_title"
= render 'shared/snippets/header'
.file-holder .snippet-holder
= render 'shared/snippets/header'
%article.file-holder
.file-title .file-title
%i.fa.fa-file = blob_icon 0, @snippet.file_name
%strong %strong
= @snippet.file_name = @snippet.file_name
.file-actions .file-actions.hidden-xs
.btn-group .btn-group.tree-btn-group
= link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank" = link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank"
= render 'shared/snippets/blob' = render 'shared/snippets/blob'
%div#notes= render "projects/notes/notes_with_form"
%div#notes= render "projects/notes/notes_with_form"
.snippet .snippet-details
.snippet-details
.page-title .page-title
.snippet-box{class: visibility_level_color(@snippet.visibility_level)} .snippet-box{class: visibility_level_color(@snippet.visibility_level)}
= visibility_level_icon(@snippet.visibility_level) = visibility_level_icon(@snippet.visibility_level)
......
- page_title @snippet.title, "Snippets" - page_title @snippet.title, "Snippets"
= render 'shared/snippets/header'
.file-holder .snippet-holder
= render 'shared/snippets/header'
%article.file-holder
.file-title .file-title
%i.fa.fa-file = blob_icon 0, @snippet.file_name
%strong %strong
= @snippet.file_name = @snippet.file_name
.file-actions .file-actions.hidden-xs
.btn-group .btn-group.tree-btn-group
= link_to 'Raw', raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank" = link_to 'Raw', raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
= render 'shared/snippets/blob' = render 'shared/snippets/blob'
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