2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
12 Material Design: <a href="http://www.google.com/design/spec/components/menus.html">Menus</a>
14 `paper-item` is a simple item object for use in menus. When the user touches the item, a ripple
15 effect emanates from the point of contact. If used in a `core-selector`, the selected item will
21 <paper-item>Cut</paper-item>
22 <paper-item>Copy</paper-item>
23 <paper-item>Paste</paper-item>
29 To use as a link, put an `<a>` element in the item. You may also use the `noink` attribute to
30 prevent the ripple from "freezing" during a page navigation.
35 <a href="http://www.polymer-project.org" layout horizontal center>Polymer</a>
40 @extends paper-button-base
44 <link href=
"../polymer/polymer.html" rel=
"import">
45 <link href=
"../paper-button/paper-button-base.html" rel=
"import">
46 <link href=
"../paper-ripple/paper-ripple.html" rel=
"import">
48 <polymer-element name=
"paper-item" extends=
"paper-button-base">
58 box-sizing: border-box;
61 -moz-user-select: none;
62 -ms-user-select: none;
63 -webkit-user-select: none;
75 :host(.core-selected) {
76 background-color: #eaeaea;
88 polyfill-next-selector { content: '.button-content
> a'; }
92 -ms-flex:
1 1 0.000000001px;
95 -webkit-flex-basis:
0.000000001px;
96 flex-basis:
0.000000001px;
101 <!-- this div is needed to position the ripple behind text content -->
102 <div class=
"button-content" relative layout horizontal center
>
114 * If true, the button will be styled with a shadow.
123 * By default the ripple emanates from where the user touched the button.
124 * Set this to true to always center the ripple.
126 * @attribute recenteringTouch
130 recenteringTouch
: false,
133 * By default the ripple expands to fill the button. Set this to false to
134 * constrain the ripple to a circle within the button.