summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@yahoo.com>2018-03-03 14:53:42 +0530
committerhaseeb <haseebeqx@yahoo.com>2018-03-03 14:53:42 +0530
commit097dc726d6ed8f8cfe1e55e47e60d7c813882402 (patch)
tree451af5f692b48bba346d0bee030d854aba637fef /app/assets/stylesheets
parent3cd80c37647ca8587bc46ac47d1a628d5e4e5446 (diff)
downloadgitlab-ce-097dc726d6ed8f8cfe1e55e47e60d7c813882402.tar.gz
use sprite for icons
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/framework/dropdowns.scss3
-rw-r--r--app/assets/stylesheets/snippets.scss18
2 files changed, 19 insertions, 2 deletions
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;
}