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

Side by Side Diff: lib/src/paper-card/paper-card.html

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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
« no previous file with comments | « lib/src/paper-button/test/paper-button.html ('k') | lib/src/paper-checkbox/paper-checkbox.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 @license 2 @license
3 Copyright (c) 2015 The Polymer Project Authors. All rights reserved. 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 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 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 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 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 8 subject to an additional IP rights grant found at http://polymer.github.io/PATEN TS.txt
9 --> 9 -->
10 10
11 <link rel="import" href="../polymer/polymer.html"> 11 <link rel="import" href="../polymer/polymer.html">
12 <link rel="import" href="../paper-material/paper-material.html"> 12 <link rel="import" href="../paper-material/paper-material.html">
13 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> 13 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
14 14
15 <!-- 15 <!--
16 Material Design: <a href="http://www.google.com/design/spec/components/cards.htm l">Cards</a> 16 Material Design: <a href="http://www.google.com/design/spec/components/cards.htm l">Cards</a>
17 17
18 `paper-card` is a container with a drop shadow. 18 `paper-card` is a container with a drop shadow.
19 19
20 Example: 20 Example:
21 21
22 <paper-card heading="Card Title"> 22 <paper-card heading="Card Title">
23 <div class="card-content">Some content</div> 23 <div class="card-content">Some content</div>
24 <div class="card-actions"> 24 <div class="card-actions">
25 <paper-button>Some action</paper-button> 25 <paper-button>Some action</paper-button>
26 </div> 26 </div>
27 </paper-card> 27 </paper-card>
28 28
29 Example - top card image:
30
31 <paper-card heading="Card Title" image="/path/to/image.png">
32 ...
33 </paper-card>
34
29 ### Accessibility 35 ### Accessibility
30 36
31 By default, the `aria-label` will be set to the value of the `heading` attribute . 37 By default, the `aria-label` will be set to the value of the `heading` attribute .
32 38
33 ### Styling 39 ### Styling
34 40
35 The following custom properties and mixins are available for styling: 41 The following custom properties and mixins are available for styling:
36 42
37 Custom property | Description | Default 43 Custom property | Description | Default
38 ----------------|-------------|---------- 44 ----------------|-------------|----------
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 }, 179 },
174 180
175 _computeHeadingClass: function(image) { 181 _computeHeadingClass: function(image) {
176 var cls = 'title-text'; 182 var cls = 'title-text';
177 if (image) 183 if (image)
178 cls += ' over-image'; 184 cls += ' over-image';
179 return cls; 185 return cls;
180 } 186 }
181 }); 187 });
182 </script> 188 </script>
OLDNEW
« no previous file with comments | « lib/src/paper-button/test/paper-button.html ('k') | lib/src/paper-checkbox/paper-checkbox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698