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
Boxiang Sun
gitlab-ce
Commits
618b5491
Commit
618b5491
authored
Nov 19, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve UI for emoji awards
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
a2912074
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
21 deletions
+36
-21
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+33
-18
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+1
-1
app/views/votes/_votes_block.html.haml
app/views/votes/_votes_block.html.haml
+2
-2
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
618b5491
...
@@ -103,19 +103,23 @@
...
@@ -103,19 +103,23 @@
}
}
.awards
{
.awards
{
@include
clearfix
;
line-height
:
32px
;
margin
:
5px
0
;
.award
{
.award
{
@include
border-radius
(
5px
);
border
:
1px
solid
;
border
:
1px
solid
;
padding
:
1px
3px
;
padding
:
0px
10px
;
width
:
50px
;
float
:
left
;
border-radius
:
5px
;
margin
:
0
5px
;
float
:left
;
border-color
:
$border-color
;
margin
:
0
3px
;
border-color
:
#ccc
;
cursor
:
pointer
;
cursor
:
pointer
;
&
.active
{
&
.active
{
border-color
:
rgba
(
79
,
176
,
252
,
0
.4
)
;
border-color
:
$border-gray-light
;
background-color
:
rgba
(
79
,
176
,
252
,
0
.1
)
;
background-color
:
$gray-light
;
.counter
{
.counter
{
font-weight
:
bold
;
font-weight
:
bold
;
...
@@ -126,26 +130,37 @@
...
@@ -126,26 +130,37 @@
float
:
left
;
float
:
left
;
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.counter
{
float
:
left
;
}
}
}
.awards-controls
{
.awards-controls
{
height
:
25
px
;
line-height
:
32
px
;
width
:
28
px
;
margin-left
:
10
px
;
float
:
left
;
float
:
left
;
padding
:
0
0
5px
5px
;
line-height
:
1
;
.add-award
{
.add-award
{
font-size
:
27px
;
font-size
:
24px
;
color
:
#ccc
;
color
:
$gl-gray
;
position
:
relative
;
top
:
2px
;
&
:hover
{
&
:hover
,
text-decoration
:
none
;
}
&
:link
{
&
:link
{
text-decoration
:
none
;
text-decoration
:
none
;
}
}
}
}
.awards-menu
{
padding
:
$gl-padding
;
min-width
:
214px
;
>
li
{
margin
:
5px
;
}
}
}
}
.awards-menu
{
.awards-menu
{
...
...
app/views/projects/issues/_discussion.html.haml
View file @
618b5491
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
=
render
'shared/show_aside'
=
render
'shared/show_aside'
.gray-content-block.second-block
.gray-content-block.second-block
.oneline-block
.row
.row
.col-md-9
.col-md-9
.votes-holder.pull-right
.votes-holder.pull-right
...
...
app/views/votes/_votes_block.html.haml
View file @
618b5491
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
.dropdown.awards-controls
.dropdown.awards-controls
%a
.add-award
{
"data-toggle"
=>
"dropdown"
,
"data-target"
=>
"#"
,
"href"
=>
"#"
}
%a
.add-award
{
"data-toggle"
=>
"dropdown"
,
"data-target"
=>
"#"
,
"href"
=>
"#"
}
=
icon
(
'plus-
circle
'
)
=
icon
(
'plus-
square-o
'
)
%ul
.dropdown-menu.awards-menu
%ul
.dropdown-menu.awards-menu
-
emoji_list
.
each
do
|
emoji
|
-
emoji_list
.
each
do
|
emoji
|
%li
{
"data-emoji"
=>
"#{emoji}"
}=
image_tag
url_to_emoji
(
emoji
),
height:
"20px"
,
width:
"20px"
%li
{
"data-emoji"
=>
"#{emoji}"
}=
image_tag
url_to_emoji
(
emoji
),
height:
"20px"
,
width:
"20px"
...
...
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