blob: 5fa21e4031778972382b5ad31d74e894ba5c264a [file] [log] [blame]
Becky Siegele5191a52017-06-13 15:19:28 -07001<!--
2Copyright (C) 2017 The Android Open Source Project
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15-->
16
17<link rel="import" href="../../../bower_components/polymer/polymer.html">
18<link rel="import" href="../../../behaviors/gr-tooltip-behavior/gr-tooltip-behavior.html">
19<link rel="import" href="../../../styles/shared-styles.html">
20
21<dom-module id="gr-page-nav">
22 <template>
23 <style include="shared-styles">
24 #nav {
25 border: 1px solid #eee;
26 border-top: none;
27 position: absolute;
28 top: 0;
29 width: 14em;
30 }
31 #nav.pinned {
32 position: fixed;
33 }
34 #nav ::content ul {
35 margin: 1em 2em;
36 }
37 #nav ::content a {
38 color: black;
39 display: inline-block;
40 margin: .4em 0;
41 }
42 @media only screen and (max-width: 53em) {
43 #nav {
44 display: none;
45 }
46 }
47 </style>
48 <nav id="nav">
49 <content></content>
50 </nav>
51 </template>
52 <script src="gr-page-nav.js"></script>
53</dom-module>