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
e3d84498
Commit
e3d84498
authored
Mar 02, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved SCSS values into variables
parent
a7e76a61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
11 deletions
+28
-11
app/assets/javascripts/awards_handler.coffee
app/assets/javascripts/awards_handler.coffee
+10
-4
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+11
-0
app/assets/stylesheets/pages/awards.scss
app/assets/stylesheets/pages/awards.scss
+7
-7
No files found.
app/assets/javascripts/awards_handler.coffee
View file @
e3d84498
class
@
AwardsHandler
constructor
:
(
@
post_emoji_url
,
@
noteable_type
,
@
noteable_id
,
@
aliases
)
->
$
(
".js-add-award"
).
click
(
event
)
=>
$
(
".js-add-award"
).
on
"click"
,
(
event
)
=>
event
.
stopPropagation
()
event
.
preventDefault
()
...
...
@@ -18,7 +18,9 @@ class @AwardsHandler
handleClick
:
(
e
)
->
e
.
preventDefault
()
emoji
=
$
(
this
).
find
(
".icon"
).
data
"emoji"
emoji
=
$
(
this
)
.
find
(
".icon"
)
.
data
"emoji"
awards_handler
.
addAward
emoji
showEmojiMenu
:
->
...
...
@@ -80,9 +82,13 @@ class @AwardsHandler
removeMeFromAuthorList
:
(
emoji
)
->
award_block
=
@
findEmojiIcon
(
emoji
).
parent
()
authors
=
award_block
.
attr
(
"data-original-title"
).
split
(
", "
)
authors
=
award_block
.
attr
(
"data-original-title"
)
.
split
(
", "
)
authors
.
splice
(
authors
.
indexOf
(
"me"
),
1
)
award_block
.
closest
(
".js-emoji-btn"
).
attr
(
"data-original-title"
,
authors
.
join
(
", "
))
award_block
.
closest
(
".js-emoji-btn"
)
.
attr
(
"data-original-title"
,
authors
.
join
(
", "
))
@
resetTooltip
(
award_block
)
addMeToAuthorList
:
(
emoji
)
->
...
...
app/assets/stylesheets/framework/variables.scss
View file @
e3d84498
...
...
@@ -150,3 +150,14 @@ $dropdown-toggle-border-color: #EAEAEA;
$dropdown-toggle-hover-border-color
:
darken
(
$dropdown-toggle-border-color
,
15%
);
$dropdown-toggle-icon-color
:
#C4C4C4
;
$dropdown-toggle-hover-icon-color
:
$dropdown-toggle-hover-border-color
;
/*
* Award emoji
*/
$award-emoji-menu-bg
:
#FFF
;
$award-emoji-menu-border
:
#F1F2F4
;
$award-emoji-menu-radius
:
3px
;
$award-emoji-menu-btn-radius
:
4px
;
$award-emoji-menu-btn-hover-bg
:
#EDEDED
;
$award-emoji-control-active-bg
:
$award-emoji-menu-btn-hover-bg
;
$award-emoji-new-btn-color
:
#DCDCDC
;
app/assets/stylesheets/pages/awards.scss
View file @
e3d84498
...
...
@@ -15,9 +15,9 @@
display
:
none
;
min-width
:
160px
;
font-size
:
14px
;
background-color
:
#fff
;
border
:
1px
solid
#F1F2F4
;
border-radius
:
2px
;
background-color
:
$award-emoji-menu-bg
;
border
:
1px
solid
$award-emoji-menu-border
;
border-radius
:
$award-emoji-menu-radius
;
box-shadow
:
0
6px
12px
rgba
(
0
,
0
,
0
,.
175
);
.emoji-menu-content
{
...
...
@@ -55,10 +55,10 @@
padding
:
0
;
background
:
none
;
border
:
0
;
border-radius
:
4px
;
border-radius
:
$award-emoji-menu-btn-radius
;
&
:hover
{
background-color
:
#ededed
;
background-color
:
$award-emoji-menu-btn-hover-bg
;
}
.emoji-icon
{
...
...
@@ -80,7 +80,7 @@
&
.active
,
&
:active
{
background-color
:
#ededed
;
background-color
:
$award-emoji-control-active-bg
;
box-shadow
:
none
;
outline
:
0
;
}
...
...
@@ -107,6 +107,6 @@
}
.award-control-icon
{
color
:
#DCDCDC
;
color
:
$award-emoji-new-btn-color
;
}
}
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