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

Unified Diff: sky/framework/sky-drawer-header.sky

Issue 951413002: Make the stocks drawer look more realistic (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/framework/sky-menu-divider.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/sky-drawer-header.sky
diff --git a/sky/framework/sky-drawer-header.sky b/sky/framework/sky-drawer-header.sky
new file mode 100644
index 0000000000000000000000000000000000000000..b680d7ed648a713d753d0b638ed5671e1a7cbf11
--- /dev/null
+++ b/sky/framework/sky-drawer-header.sky
@@ -0,0 +1,45 @@
+<!--
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+-->
+<import src="sky-element.sky" />
+<import src="sky-icon.sky" />
+
+<sky-element attributes="icon:string">
+<template>
+ <style>
+ :host {
+ display: flex;
+ flex-direction: column;
+ height: 140px;
+ -webkit-user-select: none;
+ background-color: #E3ECF5;
+ border-bottom: 1px solid #D1D9E1;
+ padding-bottom: 7px;
+ margin-bottom: 8px;
+ }
+ #spacer {
+ flex: 1;
+ }
+ #label {
+ padding: 0 16px;
+ font-family: 'Roboto Medium', 'Helvetica';
+ color: #212121;
+ }
+ </style>
+ <div id="spacer" />
+ <div id="label">
+ <content />
+ </div>
+</template>
+<script>
+import "dart:sky";
+
+@Tagname('sky-drawer-header')
+class SkyDrawerHeader extends SkyElement {
+}
+
+_init(script) => register(script, SkyDrawerHeader);
+</script>
+</sky-element>
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/framework/sky-menu-divider.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698