Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
097dc726
Commit
097dc726
authored
Mar 03, 2018
by
haseeb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use sprite for icons
parent
3cd80c37
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
20 additions
and
3 deletions
+20
-3
app/assets/images/ext_snippet_icons/doc_code.png
app/assets/images/ext_snippet_icons/doc_code.png
+0
-0
app/assets/images/ext_snippet_icons/doc_text.png
app/assets/images/ext_snippet_icons/doc_text.png
+0
-0
app/assets/images/ext_snippet_icons/download.png
app/assets/images/ext_snippet_icons/download.png
+0
-0
app/assets/images/ext_snippet_icons/ext_snippet_icons.png
app/assets/images/ext_snippet_icons/ext_snippet_icons.png
+0
-0
app/assets/images/ext_snippet_icons/logo.png
app/assets/images/ext_snippet_icons/logo.png
+0
-0
app/assets/stylesheets/framework/dropdowns.scss
app/assets/stylesheets/framework/dropdowns.scss
+2
-1
app/assets/stylesheets/snippets.scss
app/assets/stylesheets/snippets.scss
+17
-1
app/helpers/icons_helper.rb
app/helpers/icons_helper.rb
+1
-1
No files found.
app/assets/images/ext_snippet_icons/doc_code.png
deleted
100644 → 0
View file @
3cd80c37
1.55 KB
app/assets/images/ext_snippet_icons/doc_text.png
deleted
100644 → 0
View file @
3cd80c37
1.42 KB
app/assets/images/ext_snippet_icons/download.png
deleted
100644 → 0
View file @
3cd80c37
1.63 KB
app/assets/images/ext_snippet_icons/ext_snippet_icons.png
0 → 100644
View file @
097dc726
1018 Bytes
app/assets/images/ext_snippet_icons/logo.png
View replaced file @
3cd80c37
View file @
097dc726
736 Bytes
|
W:
|
H:
494 Bytes
|
W:
|
H:
2-up
Swipe
Onion skin
app/assets/stylesheets/framework/dropdowns.scss
View file @
097dc726
...
@@ -481,7 +481,8 @@
...
@@ -481,7 +481,8 @@
.dropdown-menu-selectable
{
.dropdown-menu-selectable
{
li
{
li
{
a
,
button
{
a
,
button
{
padding
:
8px
40px
;
padding
:
8px
40px
;
position
:
relative
;
position
:
relative
;
...
...
app/assets/stylesheets/snippets.scss
View file @
097dc726
...
@@ -13,6 +13,21 @@
...
@@ -13,6 +13,21 @@
margin
:
20px
;
margin
:
20px
;
font-weight
:
200
;
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
{
.blob-viewer
{
background-color
:
$white-light
;
background-color
:
$white-light
;
text-align
:
left
;
text-align
:
left
;
...
@@ -108,7 +123,8 @@
...
@@ -108,7 +123,8 @@
}
}
}
}
img
{
img
,
.gl-snippet-icon
{
display
:
inline-block
;
display
:
inline-block
;
vertical-align
:
middle
;
vertical-align
:
middle
;
}
}
...
...
app/helpers/icons_helper.rb
View file @
097dc726
...
@@ -44,7 +44,7 @@ module IconsHelper
...
@@ -44,7 +44,7 @@ module IconsHelper
end
end
def
external_snippet_icon
(
name
)
def
external_snippet_icon
(
name
)
content_tag
(
:
img
,
""
,
src:
"
#{
image_url
(
'/assets/ext_snippet_icons'
)
}
/
#{
name
}
.png"
,
width:
'16px'
,
height:
'16px'
)
content_tag
(
:
span
,
""
,
class:
"gl-snippet-icon gl-snippet-icon-
#{
name
}
"
)
end
end
def
audit_icon
(
names
,
options
=
{})
def
audit_icon
(
names
,
options
=
{})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment