diff options
author | haseeb <haseebeqx@yahoo.com> | 2018-03-03 14:53:42 +0530 |
---|---|---|
committer | haseeb <haseebeqx@yahoo.com> | 2018-03-03 14:53:42 +0530 |
commit | 097dc726d6ed8f8cfe1e55e47e60d7c813882402 (patch) | |
tree | 451af5f692b48bba346d0bee030d854aba637fef /app/assets | |
parent | 3cd80c37647ca8587bc46ac47d1a628d5e4e5446 (diff) | |
download | gitlab-ce-097dc726d6ed8f8cfe1e55e47e60d7c813882402.tar.gz |
use sprite for icons
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/images/ext_snippet_icons/doc_code.png | bin | 1592 -> 0 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/doc_text.png | bin | 1452 -> 0 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/download.png | bin | 1671 -> 0 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/ext_snippet_icons.png | bin | 0 -> 1018 bytes | |||
-rw-r--r-- | app/assets/images/ext_snippet_icons/logo.png | bin | 736 -> 494 bytes | |||
-rw-r--r-- | app/assets/stylesheets/framework/dropdowns.scss | 3 | ||||
-rw-r--r-- | app/assets/stylesheets/snippets.scss | 18 |
7 files changed, 19 insertions, 2 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 differdeleted file mode 100644 index 93a9b372f32..00000000000 --- a/app/assets/images/ext_snippet_icons/doc_code.png +++ /dev/null diff --git a/app/assets/images/ext_snippet_icons/doc_text.png b/app/assets/images/ext_snippet_icons/doc_text.png Binary files differdeleted file mode 100644 index f2357c17c90..00000000000 --- a/app/assets/images/ext_snippet_icons/doc_text.png +++ /dev/null diff --git a/app/assets/images/ext_snippet_icons/download.png b/app/assets/images/ext_snippet_icons/download.png Binary files differdeleted file mode 100644 index 156c788509b..00000000000 --- a/app/assets/images/ext_snippet_icons/download.png +++ /dev/null diff --git a/app/assets/images/ext_snippet_icons/ext_snippet_icons.png b/app/assets/images/ext_snippet_icons/ext_snippet_icons.png Binary files differnew file mode 100644 index 00000000000..20380adc4e5 --- /dev/null +++ b/app/assets/images/ext_snippet_icons/ext_snippet_icons.png diff --git a/app/assets/images/ext_snippet_icons/logo.png b/app/assets/images/ext_snippet_icons/logo.png Binary files differindex 12f8315cad8..794c9cc2dbc 100644 --- a/app/assets/images/ext_snippet_icons/logo.png +++ b/app/assets/images/ext_snippet_icons/logo.png diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss index 8dc3519a394..5d2b8ab6651 100644 --- a/app/assets/stylesheets/framework/dropdowns.scss +++ b/app/assets/stylesheets/framework/dropdowns.scss @@ -481,7 +481,8 @@ .dropdown-menu-selectable { li { - a, button { + a, + button { padding: 8px 40px; position: relative; diff --git a/app/assets/stylesheets/snippets.scss b/app/assets/stylesheets/snippets.scss index 7d271d25fd9..e39ee13be8d 100644 --- a/app/assets/stylesheets/snippets.scss +++ b/app/assets/stylesheets/snippets.scss @@ -13,6 +13,21 @@ margin: 20px; font-weight: 200; + .gl-snippet-icon { + display: inline-block; + background: url(asset_path('ext_snippet_icons/ext_snippet_icons.png')) no-repeat; + overflow: hidden; + text-indent: -9999px; + text-align: left; + width: 16px; + height: 16px; + background-size: cover; + + &.gl-snippet-icon-doc_code { background-position: -0 -0; } + &.gl-snippet-icon-doc_text { background-position: -0 -16px; } + &.gl-snippet-icon-download { background-position: -0 -32px; } + } + .blob-viewer { background-color: $white-light; text-align: left; @@ -108,7 +123,8 @@ } } - img { + img, + .gl-snippet-icon { display: inline-block; vertical-align: middle; } |