File tree 11 files changed +23
-17
lines changed
11 files changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -585,9 +585,10 @@ footer .tsd-legend { display: inline-block; width: 25%; padding: 0; font-size: 1
585
585
586
586
.tsd-flag { display : inline-block; padding : 1px 5px ; border-radius : 4px ; color : white; background-color : gray; text-indent : 0 ; font-size : 14px ; font-weight : normal; }
587
587
588
+ .tsd-anchor { position : absolute; top : -100px ; }
589
+
588
590
.tsd-member { position : relative; }
589
- .tsd-member .anchor { position : absolute; top : -100px ; }
590
- .tsd-member .anchor + h3 { margin-top : 0 ; margin-bottom : 0 ; border-bottom : none; }
591
+ .tsd-member .tsd-anchor + h3 { margin-top : 0 ; margin-bottom : 0 ; border-bottom : none; }
591
592
592
593
.tsd-navigation { padding : 0 0 0 40px ; }
593
594
.tsd-navigation a { display : block; padding-top : 2px ; padding-bottom : 2px ; border-left : 2px solid transparent; color : # 222222 ; text-decoration : none; -webkit-transition : border-left-color 0.1s ; transition : border-left-color 0.1s ; }
Original file line number Diff line number Diff line change 1
1
<section class =" tsd-panel tsd-member {{ cssClasses }} " >
2
- <a name =" {{ anchor }} " class =" anchor" ></a >
2
+ <a name =" {{ anchor }} " class =" tsd- anchor" ></a >
3
3
{{ #if name }}
4
4
<h3 >{{ #each flagsArray }} <span class =" tsd-flag ts-flag{{ this }} " >{{ this }} </span > {{ /each }} {{{ wbr name }}} </h3 >
5
5
{{ /if }}
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 24
24
<label class =" tsd-widget" for =" tsd-filter-only-exported" >Only exported</label >
25
25
</div >
26
26
</div >
27
+ <a href =" #typedoc-main-index" class =" tsd-widget menu no-caption" >Menu</a >
27
28
</div >
28
29
</div >
29
30
</div >
Original file line number Diff line number Diff line change 1
1
<section class =" tsd-panel tsd-member {{ cssClasses }} " >
2
- <a name =" {{ anchor }} " class =" anchor" ></a >
2
+ <a name =" {{ anchor }} " class =" tsd- anchor" ></a >
3
3
{{ #if name }}
4
4
<h3 >{{ #each flagsArray }} <span class =" tsd-flag ts-flag{{ this }} " >{{ this }} </span > {{ /each }} {{{ wbr name }}} </h3 >
5
5
{{ /if }}
Original file line number Diff line number Diff line change 10
10
{{ /if }}
11
11
12
12
{{ #with model }}
13
+ <div style =" position:relative;" ><a name =" typedoc-main-index" class =" tsd-anchor" ></a ></div >
13
14
{{> index }}
14
15
{{> members }}
15
16
{{ /with }}
Original file line number Diff line number Diff line change 8
8
font-size : $FONT_SIZE_MONO
9
9
font-weight : normal
10
10
11
+ .tsd-anchor
12
+ position : absolute
13
+ top : -100px
14
+
11
15
.tsd-member
12
16
position : relative
13
17
14
- .anchor
15
- position : absolute
16
- top : -100px
17
-
18
- .anchor + h3
18
+ .tsd-anchor + h3
19
19
margin-top : 0
20
20
margin-bottom : 0
21
21
border-bottom : none
Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ var typedoc;
184
184
var base = window . location . href ;
185
185
if ( base . indexOf ( '#' ) != - 1 ) {
186
186
base = base . substr ( 0 , base . indexOf ( '#' ) ) ;
187
- console . log ( base ) ;
188
187
}
189
188
190
189
this . $el . find ( 'a' ) . each ( function ( index , el ) {
@@ -195,7 +194,7 @@ var typedoc;
195
194
return ;
196
195
197
196
var hash = href . substr ( href . indexOf ( '#' ) + 1 ) ;
198
- var $anchor = $ ( 'a.anchor[name=' + hash + ']' ) ;
197
+ var $anchor = $ ( 'a.tsd- anchor[name=' + hash + ']' ) ;
199
198
if ( $anchor . length == 0 )
200
199
return ;
201
200
@@ -659,6 +658,9 @@ var typedoc;
659
658
this . $el . on ( typedoc . pointerUp , function ( e ) {
660
659
return _this . onPointerUp ( e ) ;
661
660
} ) ;
661
+ this . $el . on ( 'click' , function ( e ) {
662
+ return e . preventDefault ( ) ;
663
+ } ) ;
662
664
typedoc . $document . on ( typedoc . pointerDown , function ( e ) {
663
665
return _this . onDocumentPointerDown ( e ) ;
664
666
} ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ module typedoc
66
66
var base = window . location . href ;
67
67
if ( base . indexOf ( '#' ) != - 1 ) {
68
68
base = base . substr ( 0 , base . indexOf ( '#' ) ) ;
69
- console . log ( base ) ;
70
69
}
71
70
72
71
this . $el . find ( 'a' ) . each ( ( index , el :HTMLAnchorElement ) => {
@@ -75,7 +74,7 @@ module typedoc
75
74
if ( href . substr ( 0 , base . length ) != base ) return ;
76
75
77
76
var hash = href . substr ( href . indexOf ( '#' ) + 1 ) ;
78
- var $anchor = $ ( 'a.anchor[name=' + hash + ']' ) ;
77
+ var $anchor = $ ( 'a.tsd- anchor[name=' + hash + ']' ) ;
79
78
if ( $anchor . length == 0 ) return ;
80
79
81
80
this . anchors . push ( {
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ module typedoc
15
15
16
16
this . className = this . $el . attr ( 'data-toggle' ) ;
17
17
this . $el . on ( pointerUp , ( e ) => this . onPointerUp ( e ) ) ;
18
+ this . $el . on ( 'click' , ( e ) => e . preventDefault ( ) ) ;
18
19
$document . on ( pointerDown , ( e ) => this . onDocumentPointerDown ( e ) ) ;
19
20
$document . on ( pointerUp , ( e ) => this . onDocumentPointerUp ( e ) ) ;
20
21
}
You can’t perform that action at this time.
0 commit comments