Dmitrii Filippov | daf0ec9 | 2020-03-17 11:27:28 +0100 | [diff] [blame^] | 1 | /** |
| 2 | * @license |
| 3 | * Copyright (C) 2020 The Android Open Source Project |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | import {html} from '@polymer/polymer/lib/utils/html-tag.js'; |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 18 | |
Dmitrii Filippov | daf0ec9 | 2020-03-17 11:27:28 +0100 | [diff] [blame^] | 19 | export const htmlTemplate = html` |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 20 | <style include="shared-styles"> |
| 21 | #nav { |
Kasper Nilsson | 8add673 | 2018-04-16 11:52:50 +0200 | [diff] [blame] | 22 | background-color: var(--table-header-background-color); |
Kasper Nilsson | c828098 | 2018-04-11 15:32:06 -0700 | [diff] [blame] | 23 | border: 1px solid var(--border-color); |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 24 | border-top: none; |
Becky Siegel | 9aeb616 | 2017-06-20 16:43:11 -0700 | [diff] [blame] | 25 | height: 100%; |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 26 | position: absolute; |
| 27 | top: 0; |
| 28 | width: 14em; |
| 29 | } |
| 30 | #nav.pinned { |
| 31 | position: fixed; |
| 32 | } |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 33 | @media only screen and (max-width: 53em) { |
| 34 | #nav { |
| 35 | display: none; |
| 36 | } |
| 37 | } |
| 38 | </style> |
| 39 | <nav id="nav"> |
Paladox none | d6a6a8b | 2017-11-10 18:57:08 +0000 | [diff] [blame] | 40 | <slot></slot> |
Becky Siegel | e5191a5 | 2017-06-13 15:19:28 -0700 | [diff] [blame] | 41 | </nav> |
Dmitrii Filippov | daf0ec9 | 2020-03-17 11:27:28 +0100 | [diff] [blame^] | 42 | `; |