blob: 3209590f0a17962f0ef26c243f1fe28e05dbec02 [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 {
Becky Siegel9aeb6162017-06-20 16:43:11 -070025 background-color: #f5f5f5;
Becky Siegele5191a52017-06-13 15:19:28 -070026 border: 1px solid #eee;
27 border-top: none;
Becky Siegel9aeb6162017-06-20 16:43:11 -070028 height: 100%;
Becky Siegele5191a52017-06-13 15:19:28 -070029 position: absolute;
30 top: 0;
31 width: 14em;
32 }
33 #nav.pinned {
34 position: fixed;
35 }
36 #nav ::content ul {
Becky Siegel9aeb6162017-06-20 16:43:11 -070037 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 Siegele5191a52017-06-13 15:19:28 -070060 }
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>