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

Side by Side Diff: sky/examples/stocks/stock.sky

Issue 953903004: Factor sky-toolbar into a componet and use a proper material shadow (Closed) Base URL: git@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/examples/stocks/stocks.sky » ('j') | sky/examples/stocks/stocks.sky » ('J')
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="/sky/framework/sky-element.sky" /> 6 <import src="/sky/framework/sky-element.sky" />
7 7
8 <sky-element> 8 <sky-element>
9 <template> 9 <template>
10 <style> 10 <style>
11 :host { 11 :host {
12 // TODO(eseidel): Why does setting height here make this too big? 12 // TODO(eseidel): Why does setting height here make this too big?
13 // height: 48px; 13 // height: 48px;
14 max-height: 48px; 14 max-height: 48px;
15 display: flex; 15 display: flex;
16 border-bottom: 1px solid black; 16 border-bottom: 1px solid #F4F4F4;
17 padding-top: 16px; 17 padding-top: 16px;
18 padding-left: 16px; 18 padding-left: 16px;
19 padding-right: 16px; 19 padding-right: 16px;
20 padding-bottom: 20px; 20 padding-bottom: 20px;
21 } 21 }
22 #ticker { 22 #ticker {
23 flex-grow: 1; 23 flex-grow: 1;
24 } 24 }
25 #last-sale { 25 #last-sale {
26 padding-right: 20px; 26 padding-right: 20px;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 if (model.percentChange > 0) 94 if (model.percentChange > 0)
95 changeString = "+" + changeString; 95 changeString = "+" + changeString;
96 change.textContent = changeString; 96 change.textContent = changeString;
97 change.style['background-color'] = colorForPercentChange(model.percentChange ); 97 change.style['background-color'] = colorForPercentChange(model.percentChange );
98 } 98 }
99 } 99 }
100 100
101 _init(script) => register(script, Stock); 101 _init(script) => register(script, Stock);
102 </script> 102 </script>
103 </sky-element> 103 </sky-element>
OLDNEW
« no previous file with comments | « no previous file | sky/examples/stocks/stocks.sky » ('j') | sky/examples/stocks/stocks.sky » ('J')

Powered by Google App Engine
This is Rietveld 408576698