OLD | NEW |
1 <!-- | 1 <!-- |
2 @license | 2 @license |
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. | 3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. |
4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt | 4 This code may only be used under the BSD style license found at http://polymer.g
ithub.io/LICENSE.txt |
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt | 5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt |
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt | 6 The complete set of contributors may be found at http://polymer.github.io/CONTRI
BUTORS.txt |
7 Code distributed by Google as part of the polymer project is also | 7 Code distributed by Google as part of the polymer project is also |
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt | 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN
TS.txt |
9 --><html><head><link rel="import" href="../polymer/polymer.html"> | 9 --><html><head><link rel="import" href="../polymer/polymer.html"> |
10 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> | 10 <link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html
"> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 margin-bottom: 20px; | 95 margin-bottom: 20px; |
96 margin-top: -10px; | 96 margin-top: -10px; |
97 top: 10px; | 97 top: 10px; |
98 } | 98 } |
99 | 99 |
100 :host([vertical-align="bottom"]) .dropdown-content { | 100 :host([vertical-align="bottom"]) .dropdown-content { |
101 bottom: 10px; | 101 bottom: 10px; |
102 margin-bottom: -10px; | 102 margin-bottom: -10px; |
103 margin-top: 20px; | 103 margin-top: 20px; |
104 } | 104 } |
| 105 |
| 106 #trigger { |
| 107 cursor: pointer; |
| 108 } |
105 </style> | 109 </style> |
106 | 110 |
107 <div id="trigger" on-tap="toggle"> | 111 <div id="trigger" on-tap="toggle"> |
108 <content select=".dropdown-trigger"></content> | 112 <content select=".dropdown-trigger"></content> |
109 </div> | 113 </div> |
110 | 114 |
111 <iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizon
talAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]"
horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no
-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-a
nimation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focu
s-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" re
store-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIro
nOverlayCanceled"> | 115 <iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizon
talAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]"
horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no
-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-a
nimation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focu
s-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" re
store-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIro
nOverlayCanceled"> |
112 <div class="dropdown-content"> | 116 <div class="dropdown-content"> |
113 <content id="content" select=".dropdown-content"></content> | 117 <content id="content" select=".dropdown-content"></content> |
114 </div> | 118 </div> |
115 </iron-dropdown> | 119 </iron-dropdown> |
116 </template> | 120 </template> |
117 | 121 |
118 </dom-module> | 122 </dom-module> |
119 <script src="paper-menu-button-extracted.js"></script></body></html> | 123 <script src="paper-menu-button-extracted.js"></script></body></html> |
OLD | NEW |