summaryrefslogtreecommitdiffstats
path: root/third_party/polymer/components/core-menu-button/demo.html
blob: 6235b314c37c680053f4488704ef209f457a8486 (plain)
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
90

<!doctype html>
<!--
Copyright 2013 The Polymer Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
<html>
<head>
  <title>core-menu-button</title>
  <script src="../platform/platform.js"></script>
  <link rel="import" href="core-menu-button.html">
	<link rel="import" href="../core-item/core-item.html">
  <link rel="import" href="../core-toolbar/core-toolbar.html">
  <style>
    body {
			margin: 0;
			font-family: sans-serif;
    }

    core-toolbar {
      background-color: #cfa0e9;
      overflow: hidden;
    }

		.small::shadow core-icon-button {
			padding: 12px;
		}

		.small::shadow core-icon-button::shadow core-icon {
			display: block;
			height: 14px;
			width: 14px;
		}

  </style>
</head>
<body class="core-body-text" unresolved>

	
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<br>
	<core-toolbar>

		<core-menu-button icon="menu">

			<core-item icon="settings" label="Settings"></core-item>
			<core-item icon="add" label="Add"></core-item>
			<core-item icon="search" label="Search"></core-item>

		</core-menu-button>

		<core-menu-button icon="menu" class="small">

			<core-item icon="settings" label="Settings"></core-item>
			<core-item icon="add" label="Add"></core-item>
			<core-item icon="search" label="Search"></core-item>

		</core-menu-button>

		<div core-flex>Toolbar</div>

		<core-menu-button icon="add" halign="right">

			<core-item icon="star-rate" label="Rate"></core-item>
			<core-item icon="today" label="Today"></core-item>
			<core-item icon="keep" label="Keep"></core-item>

		</core-menu-button>

		<core-menu-button icon="more-vert" halign="right" valign="top">

			<core-item icon="visibility" label="Visibility"></core-item>
			<core-item icon="extension" label="Extension"></core-item>
			<core-item icon="info" label="Info"></core-item>

		</core-menu-button>

	</core-toolbar>

</body>
</html>