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
4405ce23
Commit
4405ce23
authored
Mar 17, 2015
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use separate icon for toolbar hide/show
parent
1c2049ea
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
148 additions
and
85 deletions
+148
-85
h.eot
h/static/fonts/h.eot
+0
-0
selection.json
h/static/fonts/selection.json
+130
-73
icomoon.css
h/static/icomoon.css
+6
-2
toolbar.coffee
h/static/scripts/annotator/plugin/toolbar.coffee
+1
-1
host.coffee
h/static/scripts/host.coffee
+11
-0
inject.scss
h/static/styles/inject.scss
+0
-9
No files found.
h/static/fonts/h.eot
View file @
4405ce23
No preview for this file type
h/static/fonts/selection.json
View file @
4405ce23
This diff is collapsed.
Click to expand it.
h/static/icomoon.css
View file @
4405ce23
This diff is collapsed.
Click to expand it.
h/static/scripts/annotator/plugin/toolbar.coffee
View file @
4405ce23
...
@@ -29,7 +29,7 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
...
@@ -29,7 +29,7 @@ class Annotator.Plugin.Toolbar extends Annotator.Plugin
items
=
[
items
=
[
"title"
:
"Toggle Sidebar"
"title"
:
"Toggle Sidebar"
"class"
:
"annotator-toolbar-toggle
h-icon-arrow-back
"
"class"
:
"annotator-toolbar-toggle"
"on"
:
"on"
:
"click"
:
(
event
)
=>
"click"
:
(
event
)
=>
event
.
preventDefault
()
event
.
preventDefault
()
...
...
h/static/scripts/host.coffee
View file @
4405ce23
...
@@ -64,11 +64,22 @@ module.exports = class Annotator.Host extends Annotator.Guest
...
@@ -64,11 +64,22 @@ module.exports = class Annotator.Host extends Annotator.Guest
@
frame
.
addClass
'annotator-no-transition'
@
frame
.
addClass
'annotator-no-transition'
@
frame
.
removeClass
'annotator-collapsed'
@
frame
.
removeClass
'annotator-collapsed'
if
@
toolbar
?
@
toolbar
.
find
(
'.annotator-toolbar-toggle'
)
.
removeClass
(
'h-icon-arrow-back'
)
.
addClass
(
'h-icon-arrow-forward'
)
hideFrame
:
->
hideFrame
:
->
@
frame
.
css
'margin-left'
:
''
@
frame
.
css
'margin-left'
:
''
@
frame
.
removeClass
'annotator-no-transition'
@
frame
.
removeClass
'annotator-no-transition'
@
frame
.
addClass
'annotator-collapsed'
@
frame
.
addClass
'annotator-collapsed'
if
@
toolbar
?
@
toolbar
.
find
(
'.annotator-toolbar-toggle'
)
.
removeClass
(
'h-icon-arrow-forward'
)
.
addClass
(
'h-icon-arrow-back'
)
_addCrossFrameListeners
:
->
_addCrossFrameListeners
:
->
@
crossframe
.
on
(
'showFrame'
,
this
.
showFrame
.
bind
(
this
,
null
))
@
crossframe
.
on
(
'showFrame'
,
this
.
showFrame
.
bind
(
this
,
null
))
@
crossframe
.
on
(
'hideFrame'
,
this
.
hideFrame
.
bind
(
this
,
null
))
@
crossframe
.
on
(
'hideFrame'
,
this
.
hideFrame
.
bind
(
this
,
null
))
...
...
h/static/styles/inject.scss
View file @
4405ce23
...
@@ -106,17 +106,8 @@ $base-font-size: 14px;
...
@@ -106,17 +106,8 @@ $base-font-size: 14px;
z-index
:
2147483638
;
z-index
:
2147483638
;
-webkit-tap-highlight-color
:
rgba
(
255
,
255
,
255
,
0
);
-webkit-tap-highlight-color
:
rgba
(
255
,
255
,
255
,
0
);
.h-icon-arrow-back
{
transform
:
rotate
(
180deg
);
font-weight
:
600
;
}
&
.annotator-collapsed
{
&
.annotator-collapsed
{
margin-left
:
0
;
margin-left
:
0
;
.h-icon-arrow-back
{
transform
:
rotate
(
0deg
);
}
}
}
*
{
*
{
...
...
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