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

Side by Side Diff: third_party/polymer/v0_8/components-chromium/paper-behaviors/demo/paper-button.html

Issue 1082403004: Import Polymer 0.8 and several key elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rerun reproduce.sh Created 5 years, 8 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 <!--
2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
5 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
7 Code distributed by Google as part of the polymer project is also
8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --><html><head><link rel="import" href="../../polymer/polymer.html">
10 <link rel="import" href="../../paper-card/paper-card.html">
11 <link rel="import" href="../paper-button-behavior.html">
12
13 </head><body><dom-module id="paper-button">
14
15 <style>
16
17 :host {
18 display: inline-block;
19 background-color: #4285F4;
20 color: #fff;
21 border-radius: 3px;
22 text-transform: uppercase;
23 outline: none;
24 -moz-user-select: none;
25 -ms-user-select: none;
26 -webkit-user-select: none;
27 user-select: none;
28 cursor: pointer;
29 }
30
31 paper-card {
32 border-radius: inherit;
33 padding: 16px;
34 }
35
36 :host([disabled]) {
37 opacity: 0.3;
38 pointer-events: none;
39 }
40
41 :host([active]),
42 :host([pressed]) {
43 background-color: #3367D6;
44 box-shadow: inset 0 3px 5px rgba(0,0,0,.2);
45 }
46
47 </style>
48
49 <template>
50
51 <paper-card class="content" elevation="[[_elevation]]" animated="">
52 <content></content>
53 </paper-card>
54
55 </template>
56
57 </dom-module>
58 <script src="paper-button-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698