OLD | NEW |
1 <!-- | 1 <!-- |
2 // Copyright 2015 The Chromium Authors. All rights reserved. | 2 // Copyright 2015 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 --> | 5 --> |
6 <template> | 6 <template> |
7 <style> | 7 <style> |
8 :host([level="1"]) { | 8 :host([level="1"]) { |
9 box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); | 9 box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24); |
10 } | 10 } |
(...skipping 19 matching lines...) Expand all Loading... |
30 void applyTo(ShadowRoot shadowRoot) { | 30 void applyTo(ShadowRoot shadowRoot) { |
31 shadowRoot.appendChild(_kStyleElement.cloneNode(deep: true)); | 31 shadowRoot.appendChild(_kStyleElement.cloneNode(deep: true)); |
32 } | 32 } |
33 | 33 |
34 _init(script) { | 34 _init(script) { |
35 HTMLTemplateElement template = script.owner.querySelector('template'); | 35 HTMLTemplateElement template = script.owner.querySelector('template'); |
36 _kStyleElement = template.content.querySelector('style'); | 36 _kStyleElement = template.content.querySelector('style'); |
37 } | 37 } |
38 </script> | 38 </script> |
39 </sky-element> | 39 </sky-element> |
OLD | NEW |