Transparent Navigation
.demo-layout-transparent{
background: url('https://getmdl.io/assets/demos/transparent.jpg') center/cover;
}
</style>
</head>
</body>
<div class="demo-layout-transparent mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout__header--transparent">
<div class="mdl-layout__header-row">
<!--Title-->
<span class="mdl-layout-title">Title</span>
<!--Add spacer, to align navigation to the right-->
<div class="mdl-layout-spacer"></div>
<!--Navigation-->
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<nav class="mdl-navigation__link" href="#">Link</nav>
<nav class="mdl-navigation__link" href="#">Link</nav>
<nav class="mdl-navigation__link" href="#">Link</nav>
<nav class="mdl-navigation__link" href="#">Link</nav>
</nav>
</div>
</div>
`</pre>
### Fixed Drawer without Header(The drawer will open automatically in large screen)
![Fixed Drawer](http://7xu8mu.com1.z0.glb.clouddn.com/wp-content/uploads/FixedDrawer1.png)
<pre>` <div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer">
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</div>
`</pre>
### Fixed Header(The Header shows always, even in small screen)
![Fixed Header](http://7xu8mu.com1.z0.glb.clouddn.com/wp-content/uploads/FixedHeader.png)
<pre>` <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Title</span>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation mdl-navigation--large-screen-only">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">
Title
</span>
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</div>
`</pre>
### Fixed Header and Drawer
![Fixed Header and Drawer](http://7xu8mu.com1.z0.glb.clouddn.com/wp-content/uploads/FixedHeader&Drawer.png)
<pre>`<div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<div class="mdl-layout-spacer"></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable mdl-textfield--floating-label mdl-text--align-right">
<label for="fixed-header-drawer-exp" class="mdl-button mdl-js-button mdl-button--icon">S</label>
<div class="mdl-textfield__expandable-holder">
<input type="text" class="mdl-textfield__input" name="sample" id="fixed-header-drawer-exp">
</div>
</div>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</div>
`</pre>
### Scrolling Header
<pre>`<div class="mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout__header--scroll">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Title</span>
</div>
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
<a href="#" class="mdl-navigation__link">Link</a>
</nav>
</div>
</div>
`</pre>
### Waterfall Header
<pre>` <div class="demo-layout-water mdl-layout mdl-js-layout">
<header class="mdl-layout__header mdl-layout--water">
<!-- Top Row Always Visible -->
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">Title</span>
<div class="mdl-layout-spacer"></div>
<div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable mdl-textfield--floating-label mdl-textfield--align-right">
<label for="waterfall-exp" class="mdl-button mdl-js-button mdl-button--icon">
<i class="material-icons">Search</i>
</label>
<div class="mdl-textfield__expandable-holder">
<input type="text" name="sample" id="waterfall-exp" class="mdl-textfield__input">
</div>
</div>
</div>
<!-- Bottom Row, Invisible on Scroll -->
<div class="mdl-layout__header-row">
<div class="mdl-layout-spacer"></div>
<nav class="mdl-navigation">
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
</nav>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
<nav class="mdl-navigation">
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
<a href="" class="mdl-navigation__link">Link</a>
</nav>
</div>
</div>
`</pre>
### Scrollable Tabs
<pre>`<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Title</span>
</div>
<!-- Tab -->
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a href="#scroll-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
<a href="#scroll-tab-2" class="mdl-layout__tab">Tab 2</a>
<a href="#scroll-tab-3" class="mdl-layout__tab">Tab 3</a>
<a href="#scroll-tab-4" class="mdl-layout__tab">Tab 4</a>
<a href="#scroll-tab-5" class="mdl-layout__tab">Tab 5</a>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
</div>
<main class="mdl-layout__content">
<section class="mdl-layout__tab-panel is-active" id="scroll-tab-1">
<div class="page-content" style="height:500px">Tab 1</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-2">
<div class="page-content" style="height:500px">Tab 2</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-3">
<div class="page-content" style="height:500px">Tab 3</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-4">
<div class="page-content" style="height:500px">Tab 4</div>
</section>
<section class="mdl-layout__tab-panel" id="scroll-tab-5">
<div class="page-content" style="height:500px">Tab 5</div>
</section>
</main>
</div>
`</pre>
### Fixed Tabs
<pre>`<div class="mdl-layout mdl-js-layout mdl-layout--fixed-header mdl-layout--fixed-tabs">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<span class="mdl-layout-title">Title</span>
</div>
<div class="mdl-layout__tab-bar mdl-js-ripple-effect">
<a href="#fixed-tab-1" class="mdl-layout__tab is-active">Tab 1</a>
<a href="#fixed-tab-2" class="mdl-layout__tab">Tab 2</a>
<a href="#fixed-tab-3" class="mdl-layout__tab">Tab 3</a>
</div>
</header>
<div class="mdl-layout__drawer">
<span class="mdl-layout-title">Title</span>
</div>
<main class="mdl-layout__content">
<section class="mdl-layout__tab-panel" id="fixed-tab-1">
<div class="page-content" style="height:500px">Tab 1</div>
</section>
<section class="mdl-layout__tab-panel" id="fixed-tab-2">
<div class="page-content" style="height:500px">Tab 2</div>
</section>
<section class="mdl-layout__tab-panel" id="fixed-tab-3">
<div class="page-content" style="height:500px">Tab 3</div>
</section>
</main>
</div>
</div>