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

Side by Side Diff: third_party/polymer/components-chromium/paper-dialog/paper-action-dialog.html

Issue 1215543002: Remove Polymer 0.5. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test Created 5 years, 5 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 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at http://polymer.g ithub.io/LICENSE.txt
4 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
5 The complete set of contributors may be found at http://polymer.github.io/CONTRI BUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
8 --><!--
9
10 Material Design: <a href="http://www.google.com/design/spec/components/dialogs.h tml">Dialogs</a>
11
12 `paper-action-dialog` is a `paper-dialog` a row of buttons at the bottom that
13 indicate user action. The action buttons do not scroll with the dialog body.
14
15 The buttons should have either the `affirmative` or `dismissive` attribute. See
16 the Material Design spec for more info.
17
18 Example:
19
20 <paper-action-dialog heading="Dialog Title">
21 <p>Some content</p>
22 <paper-button dismissive>More Info</paper-button>
23 <paper-button affirmative>Decline</paper-button>
24 <paper-button affirmative>Accept</paper-button>
25 </paper-action-dialog>
26
27 @group Paper Elements
28 @element paper-action-dialog
29 @extends paper-dialog-base
30 @homepage github.io
31 @status unstable
32 --><html><head><link href="../polymer/polymer.html" rel="import">
33 <link href="../paper-shadow/paper-shadow.html" rel="import">
34
35 <link href="paper-dialog-base.html" rel="import">
36
37 </head><body><polymer-element name="paper-action-dialog" extends="paper-dialog-b ase" role="dialog" layout="" vertical="" assetpath="">
38
39 <template>
40
41 <style>
42 :host {
43 background: #fff;
44 color: rgba(0, 0, 0, 0.87);
45 margin: 32px;
46 overflow: visible !important;
47 }
48
49 h1 {
50 font-size: 20px;
51 }
52
53 #scroller {
54 overflow: auto;
55 box-sizing: border-box;
56 padding: 24px 24px 0 24px;
57 }
58
59 #actions {
60 padding: 16px;
61 }
62 </style>
63
64 <paper-shadow z="3" fit=""></paper-shadow>
65
66 <!-- need this because the host needs to be overflow: visible -->
67 <div id="scroller" relative="" flex="" auto="">
68 <template if="{{heading}}">
69 <h1>{{heading}}</h1>
70 </template>
71
72 <content select=":not([affirmative]):not([dismissive])"></content>
73 </div>
74
75 <div id="actions" relative="" layout="" horizontal="">
76 <content select="[dismissive]"></content>
77 <div flex=""></div>
78 <content select="[affirmative]"></content>
79 </div>
80
81 </template>
82
83
84
85 </polymer-element>
86 <script charset="utf-8" src="paper-action-dialog-extracted.js"></script></body>< /html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698