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

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

Issue 1468623004: Update Polymer from 1.2.1 -> 1.2.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@travis-yml
Patch Set: local-state.html 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
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 --><html><head><link rel="import" href="../polymer/polymer.html"> 9 --><html><head><link rel="import" href="../polymer/polymer.html">
10 <link rel="import" href="../paper-material/paper-material.html"> 10 <link rel="import" href="../paper-material/paper-material.html">
11 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html"> 11 <link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
12 <link rel="import" href="../iron-image/iron-image.html">
12 13
13 <!-- 14 <!--
14 Material design: [Cards](https://www.google.com/design/spec/components/cards.htm l) 15 Material design: [Cards](https://www.google.com/design/spec/components/cards.htm l)
15 16
16 `paper-card` is a container with a drop shadow. 17 `paper-card` is a container with a drop shadow.
17 18
18 Example: 19 Example:
19 20
20 <paper-card heading="Card Title"> 21 <paper-card heading="Card Title">
21 <div class="card-content">Some content</div> 22 <div class="card-content">Some content</div>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 74 }
74 75
75 .header { 76 .header {
76 position: relative; 77 position: relative;
77 border-top-left-radius: inherit; 78 border-top-left-radius: inherit;
78 border-top-right-radius: inherit; 79 border-top-right-radius: inherit;
79 overflow: hidden; 80 overflow: hidden;
80 @apply(--paper-card-header); 81 @apply(--paper-card-header);
81 } 82 }
82 83
83 .header img { 84 .header iron-image {
84 width: 100%; 85 width: 100%;
86 --iron-image-width: 100%;
85 pointer-events: none; 87 pointer-events: none;
86 @apply(--paper-card-header-image); 88 @apply(--paper-card-header-image);
87 } 89 }
88 90
89 .header .title-text { 91 .header .title-text {
90 padding: 16px; 92 padding: 16px;
91 font-size: 24px; 93 font-size: 24px;
92 font-weight: bold; 94 font-weight: 400;
93 color: var(--paper-card-header-color, #000); 95 color: var(--paper-card-header-color, #000);
94 @apply(--paper-card-header-text); 96 @apply(--paper-card-header-text);
95 } 97 }
96 98
97 .header .title-text.over-image { 99 .header .title-text.over-image {
98 position: absolute; 100 position: absolute;
99 bottom: 0px; 101 bottom: 0px;
100 @apply(--paper-card-header-image-text); 102 @apply(--paper-card-header-image-text);
101 } 103 }
102 104
103 :host ::content .card-content { 105 :host ::content .card-content {
104 padding: 16px; 106 padding: 16px;
105 position:relative; 107 position:relative;
106 @apply(--paper-card-content); 108 @apply(--paper-card-content);
107 } 109 }
108 110
109 :host ::content .card-actions { 111 :host ::content .card-actions {
110 border-top: 1px solid #e8e8e8; 112 border-top: 1px solid #e8e8e8;
111 padding: 5px 16px; 113 padding: 5px 16px;
112 position:relative; 114 position:relative;
113 @apply(--paper-card-actions); 115 @apply(--paper-card-actions);
114 } 116 }
115 </style> 117 </style>
116 118
117 <div class="header"> 119 <div class="header">
118 <img hidden$="[[!image]]" src="[[image]]"> 120 <iron-image hidden$="[[!image]]" src="[[image]]" preload$="[[preloadImage] ]" fade$="[[fadeImage]]"></iron-image>
119 <div hidden$="[[!heading]]" class$="[[_computeHeadingClass(image)]]">[[hea ding]]</div> 121 <div hidden$="[[!heading]]" class$="[[_computeHeadingClass(image)]]">[[hea ding]]</div>
120 </div> 122 </div>
121 123
122 <content></content> 124 <content></content>
123 </template> 125 </template>
124 126
125 </dom-module> 127 </dom-module>
126 128
127 <script src="paper-card-extracted.js"></script></body></html> 129 <script src="paper-card-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698