Page MenuHomePhabricator
Paste P9105

(An Untitled Masterwork)
ActivePublic

Authored by Paladox on Sep 13 2019, 8:45 PM.
Tags
None
Referenced Files
F30371958: raw.txt
Sep 16 2019, 2:02 PM
F30371940: raw.txt
Sep 16 2019, 1:58 PM
F30320330: raw.txt
Sep 13 2019, 8:45 PM
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, #ee265e 100%, #ee265e 100%) 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>