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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ui/file_manager/gallery/elements/gallery_toggle_button.html
diff --git a/ui/file_manager/gallery/elements/gallery_toggle_button.html b/ui/file_manager/gallery/elements/gallery_toggle_button.html
new file mode 100644
index 0000000000000000000000000000000000000000..dbc909783530e8e1ad455824b58cdfd91d48d2f9
--- /dev/null
+++ b/ui/file_manager/gallery/elements/gallery_toggle_button.html
@@ -0,0 +1,45 @@
+<!-- Copyright 2015 The Chromium Authors. All rights reserved.
+ -- Use of this source code is governed by a BSD-style license that can be
+ -- found in the LICENSE file.
+ -->
+
+<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
+
+<dom-module id="gallery-toggle-button">
+ <style>
+ :host {
+ position: relative;
+ }
+
+ .ripple-container {
+ align-items: center;
+ display: flex;
+ height: 100%;
+ position: absolute;
+ width: 100%;
+ }
+
+ .ripple {
+ background-color: white;
+ height: 0;
+ margin: 0 auto;
+ opacity: 0;
+ width: 0;
+ }
+
+ .ripple.activated {
+ border-radius: 2.56%;
+ height: 60.3%;
+ opacity: 0.2;
+ width: 60.3%;
+ }
+ </style>
+ <template>
+ <div class="ripple-container" on-tap="onTapped_">
+ <div class="ripple" id="ripple"></div>
+ </div>
+ <content class="content"></content>
+ </template>
+</dom-module>
+
+<script src="gallery_toggle_button.js"></script>

Powered by Google App Engine
This is Rietveld 408576698