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

Unified Diff: appengine/chromium_rietveld/new_static/components/cr-butterbar.html

Issue 1001723003: Create a common directory of widgets and css. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Created 5 years, 9 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: appengine/chromium_rietveld/new_static/components/cr-butterbar.html
diff --git a/appengine/chromium_rietveld/new_static/components/cr-butterbar.html b/appengine/chromium_rietveld/new_static/components/cr-butterbar.html
deleted file mode 100644
index 4b50e1aabb592bed3b20e480bc04ff4151c3249c..0000000000000000000000000000000000000000
--- a/appengine/chromium_rietveld/new_static/components/cr-butterbar.html
+++ /dev/null
@@ -1,49 +0,0 @@
-<!-- Copyright (c) 2014 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. -->
-
-<polymer-element name="cr-butterbar" attributes="message action">
- <template>
- <style>
- span {
- background-color: #F9EDBE;
- border: 1px solid #F0C36D;
- box-shadow: 0 2px 4px rgba(0,0,0,0.2);
- border-radius: 2px;
- padding: 0.25em 16px;
- display: block;
- position: fixed;
- margin: 0 auto;
- right: 0;
- left: 0;
- top: 0.5em;
- max-width: -webkit-min-content;
- white-space: nowrap;
- z-index: 1;
- }
-
- :host-context(dialog) span {
- position: absolute;
- }
- </style>
- <template if="{{ message }}">
- <span>
- {{ message }}
- <template if="{{ action }}">
- <a is="cr-action" on-tap="{{ activate }}">{{ action }}</a>
- </template>
- </span>
- </template>
- </template>
- <script>
- Polymer("cr-butterbar", {
- created: function() {
- this.message = "";
- this.action = "";
- },
- activate: function() {
- this.fire("action-activate");
- },
- });
- </script>
-</polymer-element>

Powered by Google App Engine
This is Rietveld 408576698