OLD | NEW |
(Empty) | |
| 1 <!-- Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 -- Use of this source code is governed by a BSD-style license that can be |
| 3 -- found in the LICENSE file. |
| 4 --> |
| 5 |
| 6 <link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html"> |
| 7 |
| 8 <dom-module id="gallery-toggle-button"> |
| 9 <style> |
| 10 :host { |
| 11 position: relative; |
| 12 } |
| 13 |
| 14 .ripple-container { |
| 15 align-items: center; |
| 16 display: flex; |
| 17 height: 100%; |
| 18 position: absolute; |
| 19 width: 100%; |
| 20 } |
| 21 |
| 22 .ripple { |
| 23 background-color: white; |
| 24 height: 0; |
| 25 margin: 0 auto; |
| 26 opacity: 0; |
| 27 width: 0; |
| 28 } |
| 29 |
| 30 .ripple.activated { |
| 31 border-radius: 2.56%; |
| 32 height: 60.3%; |
| 33 opacity: 0.2; |
| 34 width: 60.3%; |
| 35 } |
| 36 </style> |
| 37 <template> |
| 38 <div class="ripple-container" on-tap="onTapped_"> |
| 39 <div class="ripple" id="ripple"></div> |
| 40 </div> |
| 41 <content class="content"></content> |
| 42 </template> |
| 43 </dom-module> |
| 44 |
| 45 <script src="gallery_toggle_button.js"></script> |
OLD | NEW |