Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
130b79a9
Commit
130b79a9
authored
Oct 27, 2014
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the icon font for the adder
parent
6e981752
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
pen_1.png
h/static/images/pen_1.png
+0
-0
guest.coffee
h/static/scripts/guest.coffee
+3
-0
inject.scss
h/static/styles/inject.scss
+11
-7
No files found.
h/static/images/pen_1.png
deleted
100644 → 0
View file @
6e981752
3.66 KB
h/static/scripts/guest.coffee
View file @
130b79a9
...
...
@@ -27,6 +27,9 @@ class Annotator.Guest extends Annotator
tool
:
'comment'
visibleHighlights
:
false
html
:
jQuery
.
extend
{},
Annotator
::
html
,
adder
:
'<div class="annotator-adder"><button class="h-icon-pen"></button></div>'
constructor
:
(
element
,
options
,
config
=
{})
->
options
.
noScan
=
true
super
...
...
h/static/styles/inject.scss
View file @
130b79a9
...
...
@@ -39,26 +39,30 @@ $base-font-size: 14px;
width
:
6px
;
}
button
,
button
:first-child
{
button
{
@include
sweetbutton
;
background-image
:
url("../images/pen_1.png")
!
important
;
background-size
:
65%
;
background-position
:
center
;
background-repeat
:
no-repeat
;
font-family
:
h
;
border
:
none
;
cursor
:
pointer
;
height
:
100%
;
text-indent
:
-999em
;
width
:
100%
;
font-size
:
1
.2em
;
margin
:
0
;
padding
:
0
;
text-align
:
center
;
background
:
white
!
important
;
color
:
$border
!
important
;
&
:
:-
moz-focus-inner
{
border
:
0
;
}
&
:hover
{
color
:
$hoverborder
!
important
;
}
}
&
:hover
{
@include
box-shadow
(
1px
1px
6px
-2px
$gray-light
);
border-color
:
$hoverborder
;
&
:before
{
...
...
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