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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/paper-card/paper-card.html

Issue 1930603003: Remove unused Polymer elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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="../iron-flex-layout/iron-flex-layout.html">
11 <link rel="import" href="../iron-image/iron-image.html">
12 <link rel="import" href="../paper-material/paper-material.html">
13 <link rel="import" href="../paper-styles/default-theme.html">
14
15 <!--
16 Material design: [Cards](https://www.google.com/design/spec/components/cards.htm l)
17
18 `paper-card` is a container with a drop shadow.
19
20 Example:
21
22 <paper-card heading="Card Title">
23 <div class="card-content">Some content</div>
24 <div class="card-actions">
25 <paper-button>Some action</paper-button>
26 </div>
27 </paper-card>
28
29 Example - top card image:
30
31 <paper-card heading="Card Title" image="/path/to/image.png">
32 ...
33 </paper-card>
34
35 ### Accessibility
36
37 By default, the `aria-label` will be set to the value of the `heading` attribute .
38
39 ### Styling
40
41 The following custom properties and mixins are available for styling:
42
43 Custom property | Description | Default
44 ----------------|-------------|----------
45 `--paper-card-background-color` | The background color of the card | `--primary- background-color`
46 `--paper-card-header-color` | The color of the header text | `#000`
47 `--paper-card-header` | Mixin applied to the card header section | `{}`
48 `--paper-card-header-text` | Mixin applied to the title in the card header secti on | `{}`
49 `--paper-card-header-image` | Mixin applied to the image in the card header sect ion | `{}`
50 `--paper-card-header-image-text` | Mixin applied to the text overlapping the ima ge in the card header section | `{}`
51 `--paper-card-content` | Mixin applied to the card content section| `{}`
52 `--paper-card-actions` | Mixin applied to the card action section | `{}`
53 `--paper-card` | Mixin applied to the card | `{}`
54
55 @group Paper Elements
56 @element paper-card
57 @demo demo/index.html
58 -->
59
60 </head><body><dom-module id="paper-card">
61 <template>
62 <style include="paper-material">
63 :host {
64 display: inline-block;
65 position: relative;
66 box-sizing: border-box;
67 background-color: var(--paper-card-background-color, --primary-backgroun d-color);
68 border-radius: 2px;
69
70 @apply(--paper-font-common-base);
71 @apply(--paper-card);
72 }
73
74 /* IE 10 support for HTML5 hidden attr */
75 [hidden] {
76 display: none !important;
77 }
78
79 .header {
80 position: relative;
81 border-top-left-radius: inherit;
82 border-top-right-radius: inherit;
83 overflow: hidden;
84
85 @apply(--paper-card-header);
86 }
87
88 .header iron-image {
89 width: 100%;
90 --iron-image-width: 100%;
91 pointer-events: none;
92
93 @apply(--paper-card-header-image);
94 }
95
96 .header .title-text {
97 padding: 16px;
98 font-size: 24px;
99 font-weight: 400;
100 color: var(--paper-card-header-color, #000);
101
102 @apply(--paper-card-header-text);
103 }
104
105 .header .title-text.over-image {
106 position: absolute;
107 bottom: 0px;
108
109 @apply(--paper-card-header-image-text);
110 }
111
112 :host ::content .card-content {
113 padding: 16px;
114 position:relative;
115
116 @apply(--paper-card-content);
117 }
118
119 :host ::content .card-actions {
120 border-top: 1px solid #e8e8e8;
121 padding: 5px 16px;
122 position:relative;
123
124 @apply(--paper-card-actions);
125 }
126 </style>
127
128 <div class="header">
129 <iron-image hidden$="[[!image]]" src="[[image]]" preload$="[[preloadImage] ]" fade$="[[fadeImage]]"></iron-image>
130 <div hidden$="[[!heading]]" class$="[[_computeHeadingClass(image)]]">[[hea ding]]</div>
131 </div>
132
133 <content></content>
134 </template>
135
136 </dom-module>
137 <script src="paper-card-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698