summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@yahoo.com>2018-02-21 19:39:33 +0530
committerhaseeb <haseebeqx@yahoo.com>2018-02-28 18:48:26 +0530
commitbab24c2fcd54622ed09ffd076e38560b42510773 (patch)
tree2096fca263651bfff1350be2a339afe6ba7dcff9
parent4ee2f74ba05562b629f9cf5cb476c51e9e80e7be (diff)
downloadgitlab-ce-bab24c2fcd54622ed09ffd076e38560b42510773.tar.gz
embedded snippet title changes
-rw-r--r--app/assets/images/ext_snippet_icons/doc_code.pngbin1058 -> 1592 bytes
-rw-r--r--app/assets/images/ext_snippet_icons/doc_text.pngbin996 -> 1452 bytes
-rw-r--r--app/assets/images/ext_snippet_icons/download.pngbin1098 -> 1671 bytes
-rw-r--r--app/assets/stylesheets/snippets.scss9
-rw-r--r--app/views/shared/snippets/_embed.html.haml3
5 files changed, 11 insertions, 1 deletions
diff --git a/app/assets/images/ext_snippet_icons/doc_code.png b/app/assets/images/ext_snippet_icons/doc_code.png
index b1a589a848f..93a9b372f32 100644
--- a/app/assets/images/ext_snippet_icons/doc_code.png
+++ b/app/assets/images/ext_snippet_icons/doc_code.png
Binary files differ
diff --git a/app/assets/images/ext_snippet_icons/doc_text.png b/app/assets/images/ext_snippet_icons/doc_text.png
index aee32cc3620..f2357c17c90 100644
--- a/app/assets/images/ext_snippet_icons/doc_text.png
+++ b/app/assets/images/ext_snippet_icons/doc_text.png
Binary files differ
diff --git a/app/assets/images/ext_snippet_icons/download.png b/app/assets/images/ext_snippet_icons/download.png
index 045fb0f2e95..156c788509b 100644
--- a/app/assets/images/ext_snippet_icons/download.png
+++ b/app/assets/images/ext_snippet_icons/download.png
Binary files differ
diff --git a/app/assets/stylesheets/snippets.scss b/app/assets/stylesheets/snippets.scss
index 4de295629f4..b88a8158b35 100644
--- a/app/assets/stylesheets/snippets.scss
+++ b/app/assets/stylesheets/snippets.scss
@@ -84,6 +84,15 @@
font-weight: $gl-font-weight-bold;
}
+ .gitlab-embedded-snippets-title {
+ text-decoration: none;
+ color: $gl-text-color;
+
+ &:hover{
+ text-decoration: underline;
+ }
+ }
+
.gitlab-logo {
display: inline-block;
padding-left: 5px;
diff --git a/app/views/shared/snippets/_embed.html.haml b/app/views/shared/snippets/_embed.html.haml
index 9a5bf4c9f04..aacc7825534 100644
--- a/app/views/shared/snippets/_embed.html.haml
+++ b/app/views/shared/snippets/_embed.html.haml
@@ -5,7 +5,8 @@
= external_snippet_icon('doc_text')
%strong.file-title-name
- = blob.name
+ %a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
+ = blob.name
%small
= number_to_human_size(blob.raw_size)