-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoo-toolbar.html
53 lines (45 loc) · 1.28 KB
/
oo-toolbar.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<link rel="import" href="../app-layout/app-toolbar/app-toolbar.html">
<link rel="import" href="../paper-styles/paper-styles-classes.html">
<link rel="import" href="../paper-styles/paper-styles.html">
<link rel="import" href="../polymer/polymer.html">
<dom-module id="oo-toolbar">
<template>
<style>
:host {
display: block;
}
app-toolbar {
background: var(--oo-toolbar-background);
color: var(--oo-toolbar-color);
@apply --shadow-elevation-3dp;
@apply --oo-toolbar-toolbar;
}
app-toolbar ::slotted([main-title][spacer]) {
margin-left: 24px;
}
app-toolbar ::slotted([main-title][no-flex]) {
flex: inherit;
}
app-toolbar ::slotted(paper-progress) {
display: block;
width: 100%;
--paper-progress-active-color: rgba(0, 0, 0, 0.3);
--paper-progress-container-color: transparent;
@apply --oo-toolbar-toolbar-progress;
}
</style>
<app-toolbar>
<slot></slot>
</app-toolbar>
</template>
<script>
(function () {
class OoToolbar extends Polymer.Element {
static get is() {
return "oo-toolbar"
}
}
window.customElements.define(OoToolbar.is, OoToolbar)
}())
</script>
</dom-module>