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

Unified Diff: sky/examples/flights-app/app-toast.sky

Issue 724613002: Add a version of flights that's made of components. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/flights-app/app-title.sky ('k') | sky/examples/flights-app/app-toolbar.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/flights-app/app-toast.sky
diff --git a/sky/examples/flights-app/app-toast.sky b/sky/examples/flights-app/app-toast.sky
new file mode 100644
index 0000000000000000000000000000000000000000..f04db163b483fe5c96bf861c074a05f9e69fef9c
--- /dev/null
+++ b/sky/examples/flights-app/app-toast.sky
@@ -0,0 +1,36 @@
+<import src="../../framework/sky-element/sky-element.sky" as="SkyElement" />
+<template>
+ <style>
+ :host {
+ position: absolute;
+ bottom: 32px;
+ right: 32px;
+ max-width: 55%;
+ box-shadow: 0px 0px 12px 2px rgba(22, 22, 22, 0.4);
+ background-color: #b0281a;
+ background-image: linear-gradient(#E5D658, #DFCF43);
+ border: 1px solid #AEA477;
+ padding: 6px;
+ border-radius: 2px;
+ display: flex;
+ align-items: center;
+ font-size: 0.8em;
+ }
+
+ .header {
+ flex-shrink: 0;
+ margin-right: 6px;
+ }
+ </style>
+ <div class="header">
+ <content select=".toast-icon" />
+ </div>
+ <div class="content">
+ <content select=".toast-content" />
+ </div>
+</template>
+<script>
+SkyElement({
+ name: "app-toast"
+});
+</script>
« no previous file with comments | « sky/examples/flights-app/app-title.sky ('k') | sky/examples/flights-app/app-toolbar.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698