Files
gerrit/polygerrit-ui/app/styles/gr-change-metadata-shared-styles.html
Tao Zhou 55e440b47d Fix styles for plugins on change-metadata-item endpoint in p2
Created a shared style for change-metadata endpoint,
for plugins that are polymer component, can just include it in template.

Bug: Issue 11297
Change-Id: I64e2ad4c575a3129454ed9936749887a5b40a682
2019-08-19 10:42:48 +02:00

52 lines
1.3 KiB
HTML

<!--
@license
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.
-->
<dom-module id="gr-change-metadata-shared-styles">
<template>
<style>
section {
display: table-row;
}
section:not(:first-of-type) .title,
section:not(:first-of-type) .value {
padding-top: .5em;
}
section:not(:first-of-type) {
margin-top: 1em;
}
.title,
.value {
display: table-cell;
}
.title {
color: var(--deemphasized-text-color);
font-weight: var(--font-weight-bold);
max-width: 20em;
padding-left: var(--metadata-horizontal-padding);
padding-right: .5em;
word-break: break-word;
}
.value {
padding-right: var(--metadata-horizontal-padding);
}
</style>
</template>
</dom-module>