Consolidate some admin styles

Change-Id: I208ac1d8e3288cd4fb35de7628c85db247fcd1da
This commit is contained in:
Becky Siegel 2018-04-19 11:04:02 +02:00
parent 3da5da7dea
commit 6d9299ddb7
6 changed files with 53 additions and 49 deletions

View File

@ -21,6 +21,8 @@ limitations under the License.
<link rel="import" href="../../../bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
<link rel="import" href="../../../bower_components/iron-input/iron-input.html">
<link rel="import" href="../../../styles/gr-form-styles.html">
<link rel="import" href="../../../styles/gr-subpage-styles.html">
<link rel="import" href="../../../styles/gr-table-styles.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../../shared/gr-account-link/gr-account-link.html">
<link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html">
@ -32,19 +34,9 @@ limitations under the License.
<dom-module id="gr-group-members">
<template>
<style include="gr-form-styles"></style>
<style include="gr-table-styles"></style>
<style include="gr-subpage-styles"></style>
<style include="shared-styles">
main {
margin: 2em 1em;
}
.loading {
display: none;
}
#loading.loading {
display: block;
}
#loading:not(.loading) {
display: none;
}
.input {
width: 15em;
}

View File

@ -19,6 +19,7 @@ limitations under the License.
<link rel="import" href="../../../bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
<link rel="import" href="../../../bower_components/iron-input/iron-input.html">
<link rel="import" href="../../../styles/gr-form-styles.html">
<link rel="import" href="../../../styles/gr-subpage-styles.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html">
<link rel="import" href="../../shared/gr-copy-clipboard/gr-copy-clipboard.html">
@ -28,23 +29,12 @@ limitations under the License.
<dom-module id="gr-group">
<template>
<style include="shared-styles">
main {
margin: 2em 1em;
}
<style include="shared-styles"></style>
<style include="gr-subpage-styles">
h3.edited:after {
color: #444;
content: ' *';
}
.loading {
display: none;
}
#loading.loading {
display: block;
}
#loading:not(.loading) {
display: none;
}
.inputUpdateBtn {
margin-top: .3em;
}

View File

@ -22,6 +22,7 @@ limitations under the License.
<link rel="import" href="../../../behaviors/gr-url-encoding-behavior.html">
<link rel="import" href="../../../styles/gr-menu-page-styles.html">
<link rel="import" href="../../../styles/gr-subpage-styles.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../../core/gr-navigation/gr-navigation.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
@ -31,14 +32,13 @@ limitations under the License.
<dom-module id="gr-repo-access">
<template>
<style include="shared-styles">
<style include="shared-styles"></style>
<style include="gr-subpage-styles">
gr-button,
#inheritsFrom,
#editInheritFromInput,
.editing #inheritFromName,
.weblinks,
#loadingText,
.loading {
.weblinks{
display: none;
}
#inheritsFrom.show {
@ -50,7 +50,6 @@ limitations under the License.
margin-right: .2em;
}
.weblinks.show,
#loadingText.loading,
.referenceContainer {
display: block;
}
@ -69,7 +68,7 @@ limitations under the License.
</style>
<style include="gr-menu-page-styles"></style>
<main class$="[[_computeMainClass(_isAdmin, _canUpload, _editing)]]">
<div id="loadingText" class$="[[_computeLoadingClass(_loading)]]">
<div id="loading" class$="[[_computeLoadingClass(_loading)]]">
Loading...
</div>
<div id="loadedContent" class$="[[_computeLoadingClass(_loading)]]">

View File

@ -19,6 +19,7 @@ limitations under the License.
<link rel="import" href="../../../bower_components/iron-autogrow-textarea/iron-autogrow-textarea.html">
<link rel="import" href="../../../bower_components/iron-input/iron-input.html">
<link rel="import" href="../../../styles/gr-form-styles.html">
<link rel="import" href="../../../styles/gr-subpage-styles.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../../plugins/gr-endpoint-decorator/gr-endpoint-decorator.html">
<link rel="import" href="../../plugins/gr-endpoint-param/gr-endpoint-param.html">
@ -30,20 +31,8 @@ limitations under the License.
<dom-module id="gr-repo-commands">
<template>
<style include="shared-styles">
main {
margin: 2em 1em;
}
.loading {
display: none;
}
#loading.loading {
display: block;
}
#loading:not(.loading) {
display: none;
}
</style>
<style include="shared-styles"></style>
<style include="gr-subpage-styles"></style>
<style include="gr-form-styles"></style>
<main class="gr-form-styles read-only">
<h1 id="Title">Repository Commands</h1>

View File

@ -24,14 +24,14 @@ limitations under the License.
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
<link rel="import" href="../../shared/gr-select/gr-select.html">
<link rel="import" href="../../../styles/gr-form-styles.html">
<link rel="import" href="../../../styles/gr-subpage-styles.html">
<link rel="import" href="../../../styles/shared-styles.html">
<dom-module id="gr-repo">
<template>
<style include="shared-styles">
main {
margin: 2em 1em;
}
<style="shared-styles"></style>
<style include="gr-subpage-styles">
h2.edited:after {
color: #444;
content: ' *';

View File

@ -0,0 +1,34 @@
<!--
@license
Copyright (C) 2018 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-subpage-styles">
<template>
<style>
main {
margin: 1em 1em;
}
.loading {
display: none;
}
#loading.loading {
display: block;
}
#loading:not(.loading) {
display: none;
}
</style>
</template>
</dom-module>