Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright (C) 2017 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations 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> |