Page MenuHomePhabricator
Authored By
Paladox
Sep 16 2019, 1:58 PM
Size
2 KB
Referenced Files
None
Subscribers
None
<!--
Copyright (C) 2019 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="wm-styles">
<script>
Gerrit.install((plugin) => {
if (!window.localStorage.getItem('dark-theme')) {
plugin.registerStyleModule('app-theme', 'opendev-style');
}
plugin.registerCustomComponent(
'header-title', 'opendev-custom-header', {replace: true});
});
</script>
</dom-module>
<dom-module id="opendev-style">
<template>
<style>
html {
--header-background: white;
--header-text-color: #001133;
--border-width: 0 0 3px 0;
--border-style: solid;
--box-shadow: 0 3px 3px 2px rgba(0,0,0,0.075), 0 0 2px rgba(0,0,0,0.2);
--header-border-bottom: 4px solid;
--header-border-image: linear-gradient(to right, #990000 15%, #006699 15%, #006699 85%, #339966 85%) 1;
}
</style>
</template>
</dom-module>
<dom-module id="opendev-custom-header">
<template>
<style>
.openDevHeader::before {
background-image: url('https://opendev.org/img/opendev-sm.png');
background-size: 1.3em 1.3em;
background-repeat: no-repeat;
content: "";
display: inline-block;
height: 1.3em;
margin-right: calc(1em / 2);
margin-left: calc(1em / 3);
margin-bottom: calc(0em / 7);
vertical-align: middle;
width: 1.3em;
}
.wmHeader::after {
content: 'OpenDev Review';
}
</style>
<span class="openDevHeader"></span>
</template>
<script>
(function() {
'use strict';
Polymer({
is: 'opendev-custom-header',
});
})();
</script>
</dom-module>

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7996226
Default Alt Text
raw.txt (2 KB)

Event Timeline