| 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 <import src="shadow.sky" as="shadow" /> | 6 <import src="shadow.sky" as="shadow" /> |
| 7 <import src="sky-element.sky" /> | 7 <import src="sky-element.sky" /> |
| 8 <import src="sky-scrollable.sky" /> | 8 <import src="sky-scrollable.sky" /> |
| 9 | 9 |
| 10 <sky-element attributes="level:number"> | 10 <sky-element attributes="level:number"> |
| 11 <template> | 11 <template> |
| 12 <style> | 12 <style> |
| 13 #mask { | 13 #mask { |
| 14 background-color: black; | 14 background-color: black; |
| 15 will-change: opacity; | 15 will-change: opacity; |
| 16 position: absolute; | 16 position: absolute; |
| 17 top: 0; | 17 top: 0; |
| 18 left: 0; | 18 left: 0; |
| 19 bottom: 0; | 19 bottom: 0; |
| 20 right: 0; | 20 right: 0; |
| 21 } | 21 } |
| 22 #content { | 22 #content { |
| 23 background-color: #FAFAFA; | 23 background-color: #FAFAFA; |
| 24 will-change: transform; | 24 will-change: transform; |
| 25 position: absolute; | 25 position: absolute; |
| 26 z-index: 2; |
| 26 width: 256px; | 27 width: 256px; |
| 27 top: 0; | 28 top: 0; |
| 28 left: 0; | 29 left: 0; |
| 29 bottom: 0; | 30 bottom: 0; |
| 30 } | 31 } |
| 31 </style> | 32 </style> |
| 32 <div id="mask" /> | 33 <div id="mask" /> |
| 33 <div id="content"> | 34 <div id="content"> |
| 34 <content/> | 35 <content/> |
| 35 </div> | 36 </div> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 begin: currentPosition, | 157 begin: currentPosition, |
| 157 end: targetPosition, | 158 end: targetPosition, |
| 158 duration: duration, | 159 duration: duration, |
| 159 curve: linear); | 160 curve: linear); |
| 160 } | 161 } |
| 161 } | 162 } |
| 162 | 163 |
| 163 _init(script) => register(script, SkyDrawer); | 164 _init(script) => register(script, SkyDrawer); |
| 164 </script> | 165 </script> |
| 165 </sky-element> | 166 </sky-element> |
| OLD | NEW |