material-design-kit
Version:
Interactive web components inspired from Material Design, using vanilla CSS, JavaScript and HTML.
60 lines (53 loc) • 1.4 kB
HTML
---
title: Basic header layout
---
{% extends "layouts/default.html" %}
{% block page %}
<style>
.container {
padding-left: 2rem;
padding-right: 2rem;
}
body {
display: flex;
flex-direction: row;
position: relative;
overflow: hidden;
padding: 2rem;
height: 100vh;
background-color: #ddd;
}
#custom {
flex: 1;
height: 100%;
position: relative;
overflow: hidden;
background-color: #fff;
}
</style>
<div id="custom">
<!-- header-layout -->
<div class="mdk-header-layout js-mdk-header-layout" data-has-scrolling-region>
<!-- header -->
<div class="mdk-header js-mdk-header bg-primary"
data-effects="waterfall"
data-condenses data-fixed>
<div class="mdk-header__content">
<button class="navbar-toggler" type="button">
<span class="material-icons">menu</span>
</button>
</div>
</div>
<!-- content -->
<div class="mdk-header-layout__content mdk-header-layout__content--fullbleed mdk-header-layout__content--scrollable">
<div class="container">
<div class="content">
{% include '_header-layout.html' %}
<hr>
{% include '_sample-content.html' %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}