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
32539f27
Commit
32539f27
authored
Jun 05, 2012
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working thread collapse -- fixes #19
parent
60bd047c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
hypothesis.coffee
hypothesis/js/src/hypothesis.coffee
+5
-0
app.scss
hypothesis/sass/app.scss
+14
-11
No files found.
hypothesis/js/src/hypothesis.coffee
View file @
32539f27
...
...
@@ -282,6 +282,11 @@ class Hypothesis extends Annotator
event
.
stopPropagation
()
switch
d3
.
event
.
target
.
getAttribute
(
'href'
)
when
'#collapse'
d3
.
event
.
preventDefault
()
parent
=
d3
.
select
(
event
.
currentTarget
)
parent
.
classed
(
'hyp-collapsed'
,
!
parent
.
classed
(
'hyp-collapsed'
))
when
'#reply'
d3
.
event
.
preventDefault
()
parent
=
d3
.
select
(
event
.
currentTarget
).
datum
()
...
...
hypothesis/sass/app.scss
View file @
32539f27
...
...
@@ -261,14 +261,9 @@ $threadexp-width: 1em;
background-image
:
url("../images/minus_1.png")
;
background-size
:
100%
100%
;
background-position
:
center
;
&
.hyp-closed
{
background-image
:
url("../images/plus_1.png")
;
background-size
:
100%
100%
;
background-position
:
center
;
}
&
.hyp-dot
{
background-image
:
url("../images/dot_2.png")
;
background-size
:
100%
100%
;
background-position
:
center
;
}
}
.hyp-collapsed
&
{
background-image
:
url("../images/plus_1.png")
;
}
}
//CONTROLS
.annotator-controls
{
...
...
@@ -536,8 +531,7 @@ $threadexp-width: 1em;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
white-space
:
nowrap
;
position
:
relative
;
bottom
:
-0
.3em
;
}
}
.hyp-body
{
@include
pie-clearfix
;
margin-top
:
0
.5em
;
...
...
@@ -551,7 +545,16 @@ $threadexp-width: 1em;
position
:
absolute
;
left
:
-
$score-width
/
2
;
}
.hyp-tag
{
padding
:
0
.1em
0
.3em
;
}
}
}
padding
:
0
.1em
0
.3em
;
}
.hyp-time
{
display
:
none
;
}
.hyp-detail
{
display
:
none
;
}
.hyp-body
,
.hyp-meta
{
float
:
left
;
margin
:
0
;
}
}
}
// Remove the expander from the top level annotation
.hyp-widget
>
.hyp-reply
{
...
...
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