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

Side by Side Diff: sky/framework/sky-box/sky-box.sky

Issue 836723006: Improve the appearance of <sky-checkbox> (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/examples/widgets/index.sky ('k') | sky/framework/sky-checkbox/sky-checkbox.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 2014 The Chromium Authors. All rights reserved. 2 // Copyright 2014 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-element.sky" as="SkyElement" /> 6 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" />
7 7
8 <sky-element name="sky-box"> 8 <sky-element name="sky-box">
9 <template> 9 <template>
10 <style> 10 <style>
11 :host { 11 :host {
12 display: flex; 12 display: flex;
13 flex-direction: column; 13 flex-direction: column;
14 border-radius: 4px; 14 border-radius: 4px;
15 border: 1px solid gray; 15 border: 1px solid gray;
16 margin: 10px; 16 margin: 10px;
17 } 17 }
18 #title { 18 .title {
19 text-align: center; 19 text-align: center;
20 font-size: 10px; 20 font-size: 10px;
21 padding: 8px 8px 4px 8px;
22 }
23 .content {
24 padding: 4px 8px 8px 8px;
21 } 25 }
22 div { 26 div {
23 flex: 1 100%; 27 flex: 1;
24 } 28 }
25 </style> 29 </style>
26 <div id='title'>{{ title }}</div> 30 <div class="title">{{ title }}</div>
27 <div><content></content></div> 31 <div class="content"><content></content></div>
28 </template> 32 </template>
29 <script> 33 <script>
30 module.exports = class extends SkyElement { 34 module.exports = class extends SkyElement {
31 }.register(); 35 }.register();
32 </script> 36 </script>
33 </sky-element> 37 </sky-element>
OLDNEW
« no previous file with comments | « sky/examples/widgets/index.sky ('k') | sky/framework/sky-checkbox/sky-checkbox.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698