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

Side by Side Diff: sky/framework/sky-drawer.sky

Issue 961873004: sky-element stocks demo: add splashes and highlights to menu items (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | sky/framework/sky-icon.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « no previous file | sky/framework/sky-icon.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698