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

Side by Side Diff: sky/examples/widgets/index.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 | « no previous file | sky/framework/sky-box/sky-box.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 <sky> 6 <sky>
7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> 7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/>
8 <import src="/sky/framework/sky-button/sky-button.sky"/> 8 <import src="/sky/framework/sky-button/sky-button.sky"/>
9 <import src="/sky/framework/sky-box/sky-box.sky"/> 9 <import src="/sky/framework/sky-box/sky-box.sky"/>
10 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/> 10 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/>
11 <import src="/sky/framework/sky-radio/sky-radio.sky"/> 11 <import src="/sky/framework/sky-radio/sky-radio.sky"/>
12 <sky-element name="widget-root"> 12 <sky-element name="widget-root">
13 <template> 13 <template>
14 <style> 14 <style>
15 div { display: paragraph; } 15 div {
16 display: flex;
17 align-items: center;
18 }
19 sky-checkbox {
20 margin: 5px;
21 }
22 .output {
23 margin-left: 48px;
24 }
16 </style> 25 </style>
17 26
18 <sky-box title='Buttons'> 27 <sky-box title='Buttons'>
19 <sky-button id='button' on-click='handleClick'>Button</sky-button> 28 <sky-button id='button' on-click='handleClick'>Button</sky-button>
20 <div>highlight: {{ myButton.highlight }}</div> 29 <div>highlight: {{ myButton.highlight }}</div>
21 <div>clickCount: {{ clickCount }}</div> 30 <div>clickCount: {{ clickCount }}</div>
22 </sky-box> 31 </sky-box>
23 32
24 <sky-box title='Checkboxes'> 33 <sky-box title='Checkboxes'>
25 <div><sky-checkbox id='checkbox' />Checkbox</div> 34 <div><sky-checkbox id='checkbox' />Checkbox</div>
26 <div>highlight: {{ myCheckbox.highlight }}</div> 35 <div class="output">highlight: {{ myCheckbox.highlight }}</div>
27 <div>checked: {{ myCheckbox.checked }}</div> 36 <div class="output">checked: {{ myCheckbox.checked }}</div>
28
29 <div><sky-checkbox id='checkbox' checked='true'/>Checkbox, default checked.< /div> 37 <div><sky-checkbox id='checkbox' checked='true'/>Checkbox, default checked.< /div>
30 </sky-box> 38 </sky-box>
31 39
32 <sky-box title='Radios'> 40 <sky-box title='Radios'>
33 <sky-box title='Group One'> 41 <sky-box title='Group One'>
34 <div><sky-radio group='foo'/>one</div> 42 <div><sky-radio group='foo'/>one</div>
35 <div><sky-radio group='foo' selected='true' />two</div> 43 <div><sky-radio group='foo' selected='true' />two</div>
36 <div><sky-radio group='foo'/>three</div> 44 <div><sky-radio group='foo'/>three</div>
37 </sky-box> 45 </sky-box>
38 <sky-box title='Group Two'> 46 <sky-box title='Group Two'>
(...skipping 13 matching lines...) Expand all
52 } 60 }
53 handleClick(event) { 61 handleClick(event) {
54 this.clickCount++; 62 this.clickCount++;
55 } 63 }
56 }.register(); 64 }.register();
57 </script> 65 </script>
58 </sky-element> 66 </sky-element>
59 67
60 <widget-root /> 68 <widget-root />
61 </sky> 69 </sky>
OLDNEW
« no previous file with comments | « no previous file | sky/framework/sky-box/sky-box.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698