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
Kazuhiko Shiozaki
gitlab-ce
Commits
d5fd9b26
Commit
d5fd9b26
authored
Dec 02, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove style duplication between snippet and issue detail pages
parent
ba4bf27f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
42 deletions
+9
-42
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+5
-39
app/views/shared/snippets/_header.html.haml
app/views/shared/snippets/_header.html.haml
+4
-3
No files found.
app/assets/stylesheets/pages/snippets.scss
View file @
d5fd9b26
...
...
@@ -27,56 +27,22 @@
}
.snippet-holder
{
.snippet-details
{
.page-title
{
margin-top
:
-15px
;
padding
:
10px
0
;
margin-bottom
:
0
;
color
:
#5c5d5e
;
font-size
:
16px
;
.author
{
color
:
#5c5d5e
;
}
.snippet-id
{
color
:
#5c5d5e
;
}
}
.snippet-title
{
margin
:
0
;
font-size
:
23px
;
color
:
#313236
;
}
@media
(
max-width
:
$screen-md-max
)
{
.new-snippet-link
{
display
:
none
;
}
}
@media
(
max-width
:
$screen-sm-max
)
{
.creator
,
.page-title
.btn-close
{
display
:
none
;
}
}
}
margin-bottom
:
-
$gl-padding
;
.file-holder
{
border-top
:
0
;
}
}
.snippet-box
{
@include
border-radius
(
2px
);
display
:
inline-block
;
padding
:
10px
$gl-padding
;
display
:
block
;
float
:
left
;
padding
:
0
$gl-padding
;
font-weight
:
normal
;
margin-right
:
10px
;
font-size
:
$gl-font-size
;
border
:
1px
solid
;
line-height
:
40px
;
}
app/views/shared/snippets/_header.html.haml
View file @
d5fd9b26
.
snippet
-details
.
issuable
-details
.page-title
.snippet-box
{
class:
visibility_level_color
(
@snippet
.
visibility_level
)}
=
visibility_level_icon
(
@snippet
.
visibility_level
)
=
visibility_level_label
(
@snippet
.
visibility_level
)
%span
.snippet-id
Snippet ##{@snippet.id}
Snippet ##{@snippet.id}
%span
.creator
·
created by
#{
link_to_member
(
@project
,
@snippet
.
author
,
size:
24
)
}
·
...
...
@@ -19,6 +19,7 @@
=
render
"projects/snippets/actions"
-
else
=
render
"snippets/actions"
.gray-content-block.middle-block
%h2
.
snippet
-title
%h2
.
issue
-title
=
gfm
escape_once
(
@snippet
.
title
)
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