Files
gerrit/polygerrit-ui/app/elements/shared/gr-page-nav/gr-page-nav.html
Becky Siegel e783359ff3 Change gr-page-nav styles to be in a css template
Previously, gr-page-nav styled <content> passed from a parent element.
Because Polymer2 does not allow for reaching into <slot> to style
content as was done before, the styles have to be imported to the
element that originally creates the content.

Change-Id: I6b12a90545482254df259a5b438f19153a947569
2017-07-14 16:50:08 -07:00

47 lines
1.4 KiB
HTML

<!--
Copyright (C) 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="../../../behaviors/gr-tooltip-behavior/gr-tooltip-behavior.html">
<link rel="import" href="../../../bower_components/polymer/polymer.html">
<link rel="import" href="../../../styles/shared-styles.html">
<dom-module id="gr-page-nav">
<template>
<style include="shared-styles">
#nav {
background-color: #f5f5f5;
border: 1px solid #eee;
border-top: none;
height: 100%;
position: absolute;
top: 0;
width: 14em;
}
#nav.pinned {
position: fixed;
}
@media only screen and (max-width: 53em) {
#nav {
display: none;
}
}
</style>
<nav id="nav">
<content></content>
</nav>
</template>
<script src="gr-page-nav.js"></script>
</dom-module>