blob: 840b8bc194c6dd3f1139e7f676b2e7c1209a55d3 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<!DOCTYPE html>
2<html>
3<head>
4 <include src="include/_head.html"></include>
5 <title>Material Design Lite Extensions - Sticky Header</title>
6</head>
7
8<body>
9<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
10
11 <header class="mdl-layout__header mdl-layout__header--waterfall mdlext-layout__sticky-header mdlext-js-sticky-header">
12 <include src="include/_header-row.html"></include>
13
14 <div class="mdl-layout__header-row">
15 <div class="mdl-layout-spacer"></div>
16 <nav class="mdl-navigation">
17 <a class="mdl-navigation__link" href="">Link</a>
18 <a class="mdl-navigation__link" href="">Link</a>
19 <a class="mdl-navigation__link" href="">Link</a>
20 <a class="mdl-navigation__link" href="">Link</a>
21 </nav>
22 </div>
23 </header>
24
25 <main id="mount" class="mdl-layout__content">
26
27 <h5>Sticky Header, Waterfall, No Drawer</h5>
28
29 <p>A sticky header makes site navigation easily accessible anywhere on the page and saves content space at the same.</p>
30 <p>The header should auto-hide, i.e. hiding the header automatically when a user starts scrolling down the page
31 and bringing the header back when a user might need it: they reach the bottom of the page or start scrolling up.</p>
32 <p class="mdl-typography--subhead">To see how the sticky header works, click the button a few
33 times to add content. Next scroll the page up and down.</p>
34 <button id="a-button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
35 Click to add more content
36 </button>
37 </main>
38</div>
39<include src="include/_scripts.html"></include>
40<include src="include/_interactive-body-filler.html"></include>
41</body>
42</html>