api-console-assets
Version:
This repo only exists to publish api console components to npm
88 lines (71 loc) • 2.54 kB
HTML
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>app-header-layout demo</title>
<script src="../../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../../../font-roboto/roboto.html">
<link rel="import" href="../../../iron-icons/iron-icons.html">
<link rel="import" href="../../../paper-icon-button/paper-icon-button.html">
<link rel="import" href="../../app-header/app-header.html">
<link rel="import" href="../../app-scroll-effects/app-scroll-effects.html">
<link rel="import" href="../../app-toolbar/app-toolbar.html">
<link rel="import" href="../../demo/sample-content.html">
<link rel="import" href="../app-header-layout.html">
<style is="custom-style">
html, body {
height: 100%;
}
body {
margin: 0;
font-family: 'Roboto', 'Noto', sans-serif;
background-color: #666;
}
app-header-layout {
position: absolute;
top: 100px;
right: 100px;
bottom: 100px;
left: 100px;
height: calc(100% - 200px);
background-color: #eee;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
app-header {
background-color: #4285f4;
color: #fff;
}
app-header paper-icon-button {
--paper-icon-button-ink-color: white;
}
</style>
</head>
<body>
<!-- app-header-layout provides a scroller -->
<app-header-layout has-scrolling-region>
<app-header effects="waterfall" condenses reveals>
<app-toolbar>
<paper-icon-button icon="menu"></paper-icon-button>
<div main-title></div>
<paper-icon-button icon="search"></paper-icon-button>
</app-toolbar>
<app-toolbar></app-toolbar>
<app-toolbar>
<div spacer main-title>My Drive</div>
</app-toolbar>
</app-header>
<sample-content size="100"></sample-content>
</app-header-layout>
</body>
</html>