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

Unified Diff: third_party/polymer/components-chromium/paper-fab/demo2.html

Issue 592593002: Inline scripts were extracted from Polymer elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/echo ""/echo/ Created 6 years, 3 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: third_party/polymer/components-chromium/paper-fab/demo2.html
diff --git a/third_party/polymer/components-chromium/paper-fab/demo2.html b/third_party/polymer/components-chromium/paper-fab/demo2.html
new file mode 100644
index 0000000000000000000000000000000000000000..d1b69c75e2578cac29c94006e2fc570f7a068753
--- /dev/null
+++ b/third_party/polymer/components-chromium/paper-fab/demo2.html
@@ -0,0 +1,103 @@
+<!doctype html>
+<!--
+Copyright 2013 The Polymer Authors. All rights reserved.
+Use of this source code is governed by a BSD-style
+license that can be found in the LICENSE file.
+-->
+<html>
+<head>
+ <title>paper-fab</title>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+ <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
+ <script src="../platform/platform.js"></script>
+ <link href="../font-roboto/roboto.html" rel="import">
+ <link href="../core-icons/core-icons.html" rel="import">
+ <link href="../core-icons/image-icons.html" rel="import">
+ <link href="../core-layout/core-layout.html" rel="import">
+ <link href="paper-fab.html" rel="import">
+ <style shim-shadowdom>
+ body {
+ font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
+ font-size: 14px;
+ padding: 10em;
+ background: #f7f7f7;
+ transform: translateZ(0);
+ -webkit-transform: translateZ(0);
+ transform: translateZ(0);
+ }
+
+ core-layout {
+ display: inline-block;
+ position: relative;
+ background: #f7f7f7;
+ border-radius: 3px;
+ width: 320px;
+ height: 480px;
+ border-radius: 3px;
+ overflow: hidden;
+ }
+
+ core-layout > .inner {
+ border-radius: 3px;
+ }
+
+ .inner {
+ position: absolute;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ z-index: -1;
+ }
+
+ .toolbar {
+ background: #4555a5;
+ position: relative;
+ padding: 1em;
+ }
+
+ .photo {
+ background: #eee;
+ height: 30%;
+ }
+
+ [core-flex] {
+ background: #fff;
+ padding: 0 1em;
+ overflow: auto;
+ }
+
+ paper-fab {
+ position: absolute !important;
+ top: 167px;
+ right: 1em;
+ }
+
+ core-icon::shadow path {
+ fill: #fff;
+ }
+
+ </style>
+</head>
+<body unresolved>
+
+ <p>In this demo, the FAB is in the "focused" state on load.</p>
+
+ <core-layout class="card paper-shadow-top-z-1" vertical>
+ <div class="inner paper-shadow-bottom-z-1"></div>
+ <div class="toolbar paper-shadow-top-z-1">
+ <div class="inner paper-shadow-bottom-z-1"></div>
+ <core-icon icon="arrow-back"></core-icon>
+ </div>
+ <div class="photo">
+ </div>
+ <paper-fab focused icon="image:camera-alt"></paper-fab>
+ <div core-flex>
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
+ </div>
+ </core-layout>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698