app-logo.html
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<style is="custom-style">
* {
--app-logo-color: var(--primary-text-color);
--app-logo-font-size: 20px;
}
</style>
<dom-module id="app-logo">
<style>
:host {
font-size: var(--app-logo-font-size);
}
a {
max-width: 125px;
color: var(--app-logo-color);
text-transform: none;
text-decoration: none;
}
:host([full]) a {
max-width: 200px;
}
h1 {
font-size: 18px;
padding: 0 0 0 16px;
font-weight: 500;
color: #606060;
margin: 0;
}
img {
min-width: 36px;
padding: 2px;
box-sizing: border-box;
margin: 6px;
}
</style>
<template>
<a href="/" is="pushstate-anchor" class="horizontal layout center">
<img src="/images/polymer.svg" width="36" alt="Polymer Logo">
<h1 hidden$="[[!full]]">Polymer Catalog</h1>
<h1 hidden$="[[full]]">Catalog</h1>
</a>
</template>
</dom-module>
<script>
Polymer({
is: 'app-logo',
enableCustomStyleProperties: true,
properties: {
full: {
type: Boolean,
value: false
}
}
});
</script>