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

Side by Side Diff: sky/examples/flights/index.sky

Issue 1034953003: Remove flights example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 8 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
(Empty)
1 <app>
2 <style>
3 * { box-sizing: border-box; }
4
5 t, span {
6 display: inline;
7 }
8
9 app {
10 display: flex;
11 flex-direction: column;
12 height: 100%;
13 background-color: #494949;
14 font-family: sans-serif;
15 font-size: 16px;
16 color: #2B2B2B;
17 }
18
19 app-header {
20 display: flex;
21 background: linear-gradient(#3E77B7, #6C98C4);
22 padding: 8px;
23 color: white;
24 border-bottom: 1px solid #3E77B7;
25 }
26
27 app-title {
28 flex: 1;
29 display: flex;
30 align-items: center;
31 font-size: 22px;
32 margin-left: 8px;
33 }
34
35 app-menu-button {
36 display: flex;
37 border-radius: 4px;
38 justify-content: center;
39 align-items: center;
40 width: 30px;
41 height: 30px;
42 }
43
44 .menu-icon {
45 width: 18px;
46 }
47
48 .menu-icon-inner {
49 width: 14px;
50 }
51
52 app-scrollable {
53 flex: 1;
54 box-shadow: inset 0px 0px 22px 2px rgba(22, 22, 22, 0.63);
55 overflow: hidden;
56 }
57
58 app-panel {
59 display: flex;
60 flex-direction: column;
61 background-color: white;
62 }
63
64 app-panel-header {
65 background-color: #DEDEDE;
66 padding: 8px;
67 display: flex;
68 align-items: center;
69 }
70
71 app-panel-content {
72 display: flex;
73 }
74
75 app-toolbar {
76 background-color: #F6F6F6;
77 padding: 0 8px;
78 }
79
80 app-search-input {
81 background-color: #F6F6F6;
82 padding: 4px;
83 display: flex;
84 align-items: center;
85 font-size: 1.2em;
86 }
87
88 app-toast {
89 position: absolute;
90 bottom: 32px;
91 right: 32px;
92 max-width: 55%;
93 box-shadow: 0px 0px 12px 2px rgba(22, 22, 22, 0.4);
94 background-color: #b0281a;
95 background-image: linear-gradient(#E5D658, #DFCF43);
96 border: 1px solid #AEA477;
97 padding: 6px;
98 border-radius: 2px;
99 display: flex;
100 align-items: center;
101 font-size: 0.8em;
102 }
103
104 app-toast-header {
105 flex-shrink: 0;
106 margin-right: 6px;
107 }
108
109 .tip-icon {
110 font-weight: bold;
111 font-size: 24px;
112 border-radius: 16px;
113 width: 32px;
114 height: 32px;
115 border: 2px solid black;
116 line-height: 30px;
117 text-align: center;
118 }
119
120 .tip-price {
121 font-weight: bold;
122 }
123
124 .input-text {
125 margin-left: 8px;
126 }
127
128 .route-result {
129 margin: 16px 16px 0 16px;
130 }
131
132 .route-title {
133 flex: 1;
134 }
135
136 .airline {
137 border-radius: 2px;
138 align-items: center;
139 padding: 8px;
140 }
141
142 .airline-name {
143 flex: 1;
144 }
145
146 .airline-logo-image {
147 width: 50px;
148 flex-shrink: 0;
149 }
150
151 .airline-best-price {
152 color: #ABB4B6;
153 }
154
155 .airline-name,
156 .airline-best-price {
157 padding: 8px;
158 }
159
160 a {
161 text-decoration: none;
162 color: #1155CC;
163 }
164 </style>
165 <app-header>
166 <app-title>
167 <t>Search</t>
168 </app-title>
169 <app-menu-button>
170 <img src="images/menu-white.png" class="menu-icon">
171 </app-menu-button>
172 </app-header>
173 <app-toolbar>
174 <app-search-input>
175 <span class="input-icon">
176 <img src="/sky/examples/flights/images/magnifying-glass.png" style="widt h: 16px">
177 </span>
178 <span class="input-text"><t>flights today to dc by price</t></span>
179 </app-search-input>
180 </app-toolbar>
181 <app-scrollable>
182 <app-panel class="route-result">
183 <app-panel-header>
184 <div class="route-title">
185 <t>SFO to DCA</t>
186 </div>
187 <app-menu-button>
188 <img src="images/menu-enabled.png" class="menu-icon-inner">
189 </app-menu-button>
190 </app-panel-header>
191 <app-panel-content class="airline">
192 <div class="airline-logo">
193 <img class="airline-logo-image" src="images/virgin-america.jpg">
194 </div>
195 <div class="airline-name">
196 <t>Virgin America</t>
197 </div>
198 <div class="airline-best-price">
199 <t><a>$800</a></t>
200 </div>
201 </app-panel-content>
202 <app-panel-content class="airline">
203 <div class="airline-logo">
204 <img class="airline-logo-image" src="images/ba.jpg">
205 </div>
206 <div class="airline-name">
207 <t>British Airways</t>
208 </div>
209 <div class="airline-best-price">
210 <t><a>$700</a></t>
211 </div>
212 </app-panel-content>
213 <app-panel-content class="airline">
214 <div class="airline-logo">
215 <img class="airline-logo-image" src="images/united.jpg">
216 </div>
217 <div class="airline-name">
218 <t>United</t>
219 </div>
220 <div class="airline-best-price">
221 <t><a>$667</a></t>
222 </div>
223 </app-panel-content>
224 <app-panel-content class="airline">
225 <div class="airline-logo">
226 <img class="airline-logo-image" src="images/delta.jpg">
227 </div>
228 <div class="airline-name">
229 <t>Delta</t>
230 </div>
231 <div class="airline-best-price">
232 <t><a>$450</a></t>
233 </div>
234 </app-panel-content>
235 </app-panel>
236 <app-panel class="route-result">
237 <app-panel-header>
238 <div class="route-title">
239 <t>SJC to DCA</t>
240 </div>
241 <app-menu-button>
242 <img src="images/menu-enabled.png" class="menu-icon-inner">
243 </app-menu-button>
244 </app-panel-header>
245 <app-panel-content class="airline">
246 <div class="airline-logo">
247 <img class="airline-logo-image" src="images/virgin-america.jpg">
248 </div>
249 <div class="airline-name">
250 <t>Virgin America</t>
251 </div>
252 <div class="airline-best-price">
253 <t><a>$1500</a></t>
254 </div>
255 </app-panel-content>
256 <app-panel-content class="airline">
257 <div class="airline-logo">
258 <img class="airline-logo-image" src="images/jetblue.jpg">
259 </div>
260 <div class="airline-name">
261 <t>jetBlue</t>
262 </div>
263 <div class="airline-best-price">
264 <t><a>$650</a></t>
265 </div>
266 </app-panel-content>
267 <app-panel-content class="airline">
268 <div class="airline-logo">
269 <img class="airline-logo-image" src="images/united.jpg">
270 </div>
271 <div class="airline-name">
272 <t>United</t>
273 </div>
274 <div class="airline-best-price">
275 <t><a>$367</a></t>
276 </div>
277 </app-panel-content>
278 </app-panel>
279 </app-scrollable>
280 <app-toast>
281 <app-toast-header>
282 <div class="tip-icon">
283 <t>?</t>
284 </div>
285 </app-toast-header>
286 <app-toast-content>
287 <t>Flights are <span class="tip-price">$200</span> cheaper tomorrow.</t>
288 </app-toast-content>
289 </app-toast>
290 </app>
OLDNEW
« no previous file with comments | « sky/examples/flights/images/virgin-america.jpg ('k') | sky/tests/framework/flights-app-pixels.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698