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 { |
Becky Siegel | 9aeb616 | 2017-06-20 16:43:11 -0700 | [diff] [blame^] | 25 | background-color: #f5f5f5; |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 26 | border: 1px solid #eee; |
| 27 | border-top: none; |
Becky Siegel | 9aeb616 | 2017-06-20 16:43:11 -0700 | [diff] [blame^] | 28 | height: 100%; |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 29 | position: absolute; |
| 30 | top: 0; |
| 31 | width: 14em; |
| 32 | } |
| 33 | #nav.pinned { |
| 34 | position: fixed; |
| 35 | } |
| 36 | #nav ::content ul { |
Becky Siegel | 9aeb616 | 2017-06-20 16:43:11 -0700 | [diff] [blame^] | 37 | padding: 1em 0; |
| 38 | } |
| 39 | #nav ::content li { |
| 40 | border-bottom: 1px solid transparent; |
| 41 | border-top: 1px solid transparent; |
| 42 | padding: 0 2em; |
| 43 | } |
| 44 | #nav ::content li.sectionTitle { |
| 45 | padding: 0 2em 0 1.5em; |
| 46 | } |
| 47 | #nav ::content li.sectionTitle:not(:first-child) { |
| 48 | padding-top: 1em; |
| 49 | } |
| 50 | #nav ::content .title { |
| 51 | display: flex; |
| 52 | font-weight: bold; |
| 53 | margin: .4em 0; |
| 54 | } |
| 55 | #nav ::content .selected { |
| 56 | background-color: #fff; |
| 57 | border-bottom: 1px dotted #808080; |
| 58 | border-top: 1px dotted #808080; |
| 59 | font-weight: bold; |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 60 | } |
| 61 | #nav ::content a { |
| 62 | color: black; |
| 63 | display: inline-block; |
| 64 | margin: .4em 0; |
| 65 | } |
| 66 | @media only screen and (max-width: 53em) { |
| 67 | #nav { |
| 68 | display: none; |
| 69 | } |
| 70 | } |
| 71 | </style> |
| 72 | <nav id="nav"> |
| 73 | <content></content> |
| 74 | </nav> |
| 75 | </template> |
| 76 | <script src="gr-page-nav.js"></script> |
| 77 | </dom-module> |