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
8fb96ed7
Commit
8fb96ed7
authored
Jun 07, 2012
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve threading overflow and animation
parent
edc4bd30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
10 deletions
+17
-10
hypothesis.coffee
hypothesis/js/src/hypothesis.coffee
+2
-0
app.scss
hypothesis/sass/app.scss
+15
-10
No files found.
hypothesis/js/src/hypothesis.coffee
View file @
8fb96ed7
...
...
@@ -286,6 +286,7 @@ class Hypothesis extends Annotator
parent
.
classed
(
'hyp-collapsed'
,
!
collapsed
)
parent
.
select
(
'.annotator-listing'
).
selectAll
(
->
this
.
children
)
.
transition
().
duration
(
600
)
.
style
(
'overflow'
,
'hidden'
)
.
style
'height'
,
->
if
collapsed
"
#{
$
(
this
).
find
(
'.hyp-reply'
).
outerHeight
(
true
)
}
px"
...
...
@@ -295,6 +296,7 @@ class Hypothesis extends Annotator
if
collapsed
d3
.
select
(
this
)
.
style
(
'height'
,
null
)
.
style
(
'overflow'
,
null
)
when
'#reply'
d3
.
event
.
preventDefault
()
...
...
hypothesis/sass/app.scss
View file @
8fb96ed7
...
...
@@ -256,7 +256,8 @@ $threadexp-width: 1em;
height
:
$threadexp-width
;
width
:
$threadexp-width
;
position
:
absolute
;
margin-left
:
(
-
$threadexp-width
/
2
)
-
$thread-padding
;
top
:
1em
;
left
:
-
$threadexp-width
/
2
;
outline
:
1px
dotted
#aaaaaa
;
background-image
:
url("../images/minus_1.png")
;
...
...
@@ -483,15 +484,14 @@ $threadexp-width: 1em;
&
>
.hyp-reply
>
.hyp-meta
>
.hyp-user
{
font-size
:
0
.9em
;
}
&
>
.hyp-reply
>
.annotator-listing
{
overflow
:
hidden
;
}
}
.hyp-detail
{
@include
transition
(
(
max-height
.6s
ease
)
,
(
box-shadow
.1s
ease
.125s
));
overflow
:
hidden
;
&
.hyp-hover
{
&
.hyp-hover
>
.hyp-reply
{
@include
smallshadow
(
2px
,
2px
,
.2
);
z-index
:
10
;
}
...
...
@@ -500,10 +500,15 @@ $threadexp-width: 1em;
//ANNOTATION REPLY
.hyp-reply
{
background-color
:
white
;
@include
transition
(
(
max-height
.6s
ease
)
,
(
box-shadow
.1s
ease
.125s
)
,
(
z-index
.1
ease
.125s
));
border-left
:
1px
dotted
#999999
;
margin-left
:
$thread-padding
/
2
;
padding
:
.5em
0
.5em
$thread-padding
;
margin-left
:
$thread-padding
;
padding
:
1em
1em
0
1em
;
margin-right
:
-1em
;
position
:
relative
;
.hyp-body
{
margin-top
:
0
.6em
;
...
...
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