
Whenever an 'admin' route is detected, show gr-admin-view, with a sub-view in the main content area. This allows a single sidebar to be shared amongst all admin pages, and allow easy navigation between sections. The 'more' dropdown is now just a link that goes to the first admin item (project list). Design was concerned that there were too many ways to navigate between sections otherwise. Future changes will include: - Mobile consideration - Dynamically Updating project/group specific pages when viewing a project or a group Change-Id: I3d8622f5bf960235c1feddb602cc7b3edfabd998
63 lines
1.5 KiB
HTML
63 lines
1.5 KiB
HTML
<!--
|
|
Copyright (C) 2016 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.
|
|
-->
|
|
<dom-module id="gr-menu-page-styles">
|
|
<template>
|
|
<style>
|
|
:host {
|
|
background-color: var(--view-background-color);
|
|
display: block;
|
|
}
|
|
main {
|
|
margin: 2em auto;
|
|
max-width: 46em;
|
|
}
|
|
main.table {
|
|
margin-top: 0;
|
|
margin-right: 0;
|
|
margin-left: 14em;
|
|
max-width: none;
|
|
}
|
|
h2.edited:after {
|
|
color: #444;
|
|
content: ' *';
|
|
}
|
|
.loading {
|
|
color: #666;
|
|
padding: 1em var(--default-horizontal-margin);
|
|
}
|
|
@media only screen and (max-width: 67em) {
|
|
main {
|
|
margin: 2em 0 2em 15em;
|
|
}
|
|
main.table {
|
|
margin-left: 14em;
|
|
}
|
|
}
|
|
@media only screen and (max-width: 53em) {
|
|
.loading {
|
|
padding: 0 var(--default-horizontal-margin);
|
|
}
|
|
main {
|
|
margin: 2em 1em;
|
|
}
|
|
main.table {
|
|
margin: 0;
|
|
}
|
|
}
|
|
</style>
|
|
</template>
|
|
</dom-module>
|