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

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

Issue 951653004: Add a box-shadow to the app-bar per material design (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') | 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="/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>
(...skipping 10 matching lines...) Expand all
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;
27 } 27 }
28 #change { 28 #change {
29 border-radius: 5px; 29 border-radius: 5px;
30 min-width: 72px; 30 min-width: 72px;
31 padding: 2px;
31 padding-right: 10px; 32 padding-right: 10px;
32 text-align: right; 33 text-align: right;
33 } 34 }
34 </style> 35 </style>
35 <div id="ticker" /> 36 <div id="ticker" />
36 <div id="last-sale" /> 37 <div id="last-sale" />
37 <div id="change" /> 38 <div id="change" />
38 </template> 39 </template>
39 <script> 40 <script>
40 import "dart:sky"; 41 import "dart:sky";
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 if (model.percentChange > 0) 94 if (model.percentChange > 0)
94 changeString = "+" + changeString; 95 changeString = "+" + changeString;
95 change.textContent = changeString; 96 change.textContent = changeString;
96 change.style['background-color'] = colorForPercentChange(model.percentChange ); 97 change.style['background-color'] = colorForPercentChange(model.percentChange );
97 } 98 }
98 } 99 }
99 100
100 _init(script) => register(script, Stock); 101 _init(script) => register(script, Stock);
101 </script> 102 </script>
102 </sky-element> 103 </sky-element>
OLDNEW
« no previous file with comments | « no previous file | sky/examples/stocks/stocks.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698