-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathxenon-header.html
33 lines (31 loc) · 1.3 KB
/
xenon-header.html
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
<link rel="import" href="../polymer/polymer.html" />
<dom-module id="xenon-header">
<template>
<style is="custom-style">
#heading { display:flex; align-items:center; }
#headerText { font-size: 18pt; @apply(--paper-card-header-text); }
#subheading { color: grey; @apply(--xenon-subheading-theme); }
#actionarea ::content actions { color: gray; cursor: pointer; }
@media (max-width: 600px) {
:host { flex-direction: column-reverse; }
}
</style>
<div id="heading">
<div id="headerText">[[heading]]</div>
<div style="flex:1 1 auto"></div>
<div id="actionarea"><content select="actions"></content></div>
</div>
<div id="subheading">[[subHeading]]</div>
</template>
<script>
Polymer({
is: "xenon-header",
properties: {
/* Sets a heading for the card. This heading will have appropriate style. */
heading: String,
/* Sets a subHeading for the card. The subHeading is 50% grey and smaller by spec. It is not visible unless a heading is provided also. */
subHeading: String
}
});
</script>
</dom-module>