Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: ui/file_manager/gallery/elements/gallery_toggle_button.html

Issue 1170913006: Add material design toggle ripple element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698