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

Side by Side Diff: third_party/polymer/v1_0/components-chromium/iron-collapse/iron-collapse.html

Issue 2158913007: Roll Polymer from 1.5.0 -> 1.6.0 to pick up native CSS custom props (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 4 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
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="../iron-resizable-behavior/iron-resizable-behavior.html "> 10 <link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html ">
(...skipping 24 matching lines...) Expand all
35 border: 1px solid #dedede; 35 border: 1px solid #dedede;
36 } 36 }
37 </style> 37 </style>
38 38
39 <iron-collapse> 39 <iron-collapse>
40 <div class="collapse-content"> 40 <div class="collapse-content">
41 <div>Content goes here...</div> 41 <div>Content goes here...</div>
42 </div> 42 </div>
43 </iron-collapse> 43 </iron-collapse>
44 44
45 ### Styling
46
47 The following custom properties and mixins are available for styling:
48
49 Custom property | Description | Default
50 ----------------|-------------|----------
51 `--iron-collapse-transition-duration` | Animation transition duration | `300ms`
52
45 @group Iron Elements 53 @group Iron Elements
46 @hero hero.svg 54 @hero hero.svg
47 @demo demo/index.html 55 @demo demo/index.html
48 @element iron-collapse 56 @element iron-collapse
49 --> 57 -->
50 58
51 </head><body><dom-module id="iron-collapse"> 59 </head><body><dom-module id="iron-collapse">
52 60
53 <template> 61 <template>
54 62
55 <style> 63 <style>
56 :host { 64 :host {
57 display: block; 65 display: block;
58 transition-duration: 300ms; 66 transition-duration: var(--iron-collapse-transition-duration, 300ms);
59 overflow: visible; 67 overflow: visible;
60 } 68 }
61 69
62 :host(.iron-collapse-closed) { 70 :host(.iron-collapse-closed) {
63 display: none; 71 display: none;
64 } 72 }
65 73
66 :host(:not(.iron-collapse-opened)) { 74 :host(:not(.iron-collapse-opened)) {
67 overflow: hidden; 75 overflow: hidden;
68 } 76 }
69 </style> 77 </style>
70 78
71 <content></content> 79 <content></content>
72 80
73 </template> 81 </template>
74 82
75 </dom-module> 83 </dom-module>
76 84
77 <script src="iron-collapse-extracted.js"></script></body></html> 85 <script src="iron-collapse-extracted.js"></script></body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698