
Diff header scrolls with content and sticks to the top. Implemented custom gr-header wrapper to accomodate this. Bug: Issue 4491 Change-Id: I451ecd4f6c454fd9ab3085ad8f9c5bdd27cb9269
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<!--
|
|
Copyright (C) 2016 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<link rel="import" href="../../../bower_components/polymer/polymer.html">
|
|
|
|
<dom-module id="gr-header">
|
|
<template>
|
|
<style>
|
|
:host {
|
|
height: var(--header-height);
|
|
}
|
|
header {
|
|
background: inherit;
|
|
border: inherit;
|
|
left: 0;
|
|
position: fixed;
|
|
width: 100%;
|
|
will-change: top;
|
|
z-index: 1;
|
|
}
|
|
.spacer {
|
|
height: var(--header-height);
|
|
}
|
|
</style>
|
|
<header id="header">
|
|
<div class="contentWrapper">
|
|
<content></content>
|
|
</div>
|
|
</header>
|
|
<div class="spacer"></div>
|
|
</template>
|
|
<script src="gr-header.js"></script>
|
|
</dom-module>
|