diff options
author | haseeb <haseebeqx@yahoo.com> | 2018-02-21 19:39:33 +0530 |
---|---|---|
committer | haseeb <haseebeqx@yahoo.com> | 2018-02-28 18:48:26 +0530 |
commit | bab24c2fcd54622ed09ffd076e38560b42510773 (patch) | |
tree | 2096fca263651bfff1350be2a339afe6ba7dcff9 | |
parent | 4ee2f74ba05562b629f9cf5cb476c51e9e80e7be (diff) | |
download | gitlab-ce-bab24c2fcd54622ed09ffd076e38560b42510773.tar.gz |
embedded snippet title changes
-rw-r--r-- | app/assets/images/ext_snippet_icons/doc_code.png | bin | 1058 -> 1592 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/doc_text.png | bin | 996 -> 1452 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/download.png | bin | 1098 -> 1671 bytes | |||
-rw-r--r-- | app/assets/stylesheets/snippets.scss | 9 | ||||
-rw-r--r-- | app/views/shared/snippets/_embed.html.haml | 3 |
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 Binary files differindex b1a589a848f..93a9b372f32 100644 --- a/app/assets/images/ext_snippet_icons/doc_code.png +++ b/app/assets/images/ext_snippet_icons/doc_code.png diff --git a/app/assets/images/ext_snippet_icons/doc_text.png b/app/assets/images/ext_snippet_icons/doc_text.png Binary files differindex aee32cc3620..f2357c17c90 100644 --- a/app/assets/images/ext_snippet_icons/doc_text.png +++ b/app/assets/images/ext_snippet_icons/doc_text.png diff --git a/app/assets/images/ext_snippet_icons/download.png b/app/assets/images/ext_snippet_icons/download.png Binary files differindex 045fb0f2e95..156c788509b 100644 --- a/app/assets/images/ext_snippet_icons/download.png +++ b/app/assets/images/ext_snippet_icons/download.png 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) |