Skip to content

Commit b5dea7f

Browse files
committed
Remove sticky menus from toc
1 parent 71d6f3d commit b5dea7f

File tree

10 files changed

+2376
-139
lines changed

10 files changed

+2376
-139
lines changed

package-lock.json

Lines changed: 1605 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/documents/elements/button.html.eco

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ themes : ['Default', 'Classic', 'Basic', 'Bootstrap3', 'Twitter', 'Raised',
1313
---
1414
<link rel="stylesheet/less" type="text/css" href="/src/definitions/elements/button.less" />
1515
<script src="/javascript/button.js"></script>
16+
<script src="/javascript/library/state.js"></script>
1617

1718
<%- @partial('header') %>
1819

server/documents/modules/nag.html.eco

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ standalone : true
77

88
title : 'Nag'
99
description : 'A nag is an important message that persists until dismissed by a user'
10-
type : 'UI Module'
10+
type : 'Future Module'
1111

1212
---
1313

@@ -75,4 +75,4 @@ type : 'UI Module'
7575

7676
</div>
7777

78-
</div>
78+
</div>

server/files/javascript/docs.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ semantic.ready = function() {
3030
$document = $(document),
3131
$sortableTables = $('.sortable.table'),
3232
$sticky = $('.ui.sticky'),
33-
$tocSticky = $('.toc .ui.sticky'),
3433

3534
$themeDropdown = $('.theme.dropdown'),
3635

@@ -1255,17 +1254,6 @@ semantic.ready = function() {
12551254
// register less files
12561255
window.less.registerStylesheets();
12571256

1258-
// create sidebar sticky
1259-
requestAnimationFrame(function() {
1260-
1261-
$tocSticky
1262-
.sticky({
1263-
silent: true,
1264-
container: $('html'),
1265-
context: $fullHeightContainer
1266-
})
1267-
;
1268-
});
12691257

12701258
// load page tabs
12711259
if( $pageTabs.length > 0 ) {
@@ -1299,9 +1287,6 @@ semantic.ready = function() {
12991287
});
13001288
},
13011289
onLoad : function() {
1302-
$tocSticky
1303-
.sticky('refresh')
1304-
;
13051290
$(this).find('.ui.sticky')
13061291
.sticky('refresh')
13071292
;

0 commit comments

Comments
 (0)