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

Side by Side Diff: sky/examples/flights-app/app-toast.sky

Issue 844193009: Change background-repeat default to no-repeat (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with test results Created 5 years, 11 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
OLDNEW
1 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> 1 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" />
2 2
3 <sky-element name="app-toast"> 3 <sky-element name="app-toast">
4 <template> 4 <template>
5 <style> 5 <style>
6 :host { 6 :host {
7 position: absolute; 7 position: absolute;
8 bottom: 32px; 8 bottom: 32px;
9 right: 32px; 9 right: 32px;
10 max-width: 55%; 10 max-width: 55%;
11 box-shadow: 0px 0px 12px 2px rgba(22, 22, 22, 0.4); 11 box-shadow: 0px 0px 12px 2px rgba(22, 22, 22, 0.4);
12 background-color: #b0281a;
13 background-image: linear-gradient(#E5D658, #DFCF43); 12 background-image: linear-gradient(#E5D658, #DFCF43);
14 border: 1px solid #AEA477; 13 border: 1px solid #AEA477;
15 padding: 6px; 14 padding: 6px;
16 border-radius: 2px; 15 border-radius: 2px;
17 display: flex; 16 display: flex;
18 align-items: center; 17 align-items: center;
19 font-size: 0.8em; 18 font-size: 0.8em;
20 } 19 }
21 20
22 .header { 21 .header {
23 flex-shrink: 0; 22 flex-shrink: 0;
24 margin-right: 6px; 23 margin-right: 6px;
25 } 24 }
26 </style> 25 </style>
27 <div class="header"> 26 <div class="header">
28 <content select=".toast-icon" /> 27 <content select=".toast-icon" />
29 </div> 28 </div>
30 <div class="content"> 29 <div class="content">
31 <content select=".toast-content" /> 30 <content select=".toast-content" />
32 </div> 31 </div>
33 </template> 32 </template>
34 <script> 33 <script>
35 module.exports = class extends SkyElement { 34 module.exports = class extends SkyElement {
36 }.register(); 35 }.register();
37 </script> 36 </script>
38 </sky-element> 37 </sky-element>
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/style/FillLayer.h ('k') | sky/tests/framework/flights-app-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698