-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
89 lines (75 loc) · 2.04 KB
/
demo.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html>
<head>
<title><paper-color-picker> demo page</title>
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="../paper-styles/typography.html">
<link rel="import" href="../paper-styles/color.html">
<link rel="import" href="../paper-material/paper-material.html">
<link rel="import" href="paper-color-picker.html">
</head>
<body>
<style is="custom-style">
.paper-font-display1 {
font-weight: 300 !important;
color: teal;
margin: 20px;
@apply(--paper-font-display1);
}
.paper-font-headline {
@apply(--paper-font-headline);
}
.paper-font-title {
@apply(--paper-font-title);
}
.paper-font-subhead {
@apply(--paper-font-subhead);
}
.paper-font-button {
@apply(--paper-font-button);
color: teal;
}
paper-material.demo {
min-height: 300px;
}
paper-material {
position: relative;
padding: 10px;
margin: 10px 0;
}
paper-video.custom {
--paper-video-controls-background: var(--paper-blue-500);
--paper-video-controls-color: white;
--paper-video-slider-color: var(--paper-blue-700);
}
paper-fab-menu[position="vertical"] {
position: absolute;
right: 20px;
bottom: 20px;
}
paper-fab-menu[position="horizontal"] {
position: absolute;
right: 185px;
bottom: 20px;
}
.code-area pre {
position: relative;
left: 135px;
text-align: left;
}
</style>
<div class="paper-font-display1"><paper-color-picker></div>
<template is="dom-bind">
<paper-material elevation="1">
<div class="code-area">
<pre>
<paper-color-picker value="{{color}}"></paper-color-picker>
</pre>
</div>
<paper-color-picker value="{{color}}"></paper-color-picker>
</paper-material>
<paper-material class="demo" style="background-color: {{color}}" elevation="3">
</paper-material>
</template>
</body>
</html>