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

Side by Side Diff: sky/examples/widgets/widget-root.sky

Issue 999873002: Move sky-*.sky into framework/elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: One missing Created 5 years, 9 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/stocks/stocks.sky ('k') | sky/framework/elements/material-element.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 2015 The Chromium Authors. All rights reserved. 2 // Copyright 2015 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-box.sky" /> 6 <import src="/sky/framework/elements/sky-box.sky" />
7 <import src="/sky/framework/sky-button.sky" /> 7 <import src="/sky/framework/elements/sky-button.sky" />
8 <import src="/sky/framework/sky-checkbox.sky" /> 8 <import src="/sky/framework/elements/sky-checkbox.sky" />
9 <import src="/sky/framework/sky-element.sky" /> 9 <import src="/sky/framework/elements/sky-element.sky" />
10 <import src="/sky/framework/sky-input.sky" /> 10 <import src="/sky/framework/elements/sky-input.sky" />
11 <import src="/sky/framework/sky-radio.sky" /> 11 <import src="/sky/framework/elements/sky-radio.sky" />
12 <import src="/sky/framework/sky-scrollable.sky" /> 12 <import src="/sky/framework/elements/sky-scrollable.sky" />
13 <sky-element> 13 <sky-element>
14 <template> 14 <template>
15 <style> 15 <style>
16 :host { 16 :host {
17 font-family: 'Roboto Regular', 'Helvetica'; 17 font-family: 'Roboto Regular', 'Helvetica';
18 } 18 }
19 div { 19 div {
20 display: flex; 20 display: flex;
21 align-items: center; 21 align-items: center;
22 } 22 }
23 sky-checkbox { 23 sky-checkbox {
24 margin: 5px; 24 margin: 5px;
25 } 25 }
26 .output { 26 .output {
27 margin-left: 48px; 27 margin-left: 48px;
28 } 28 }
29 sky-scrollable { 29 sky-scrollable {
30 height: -webkit-fill-available; 30 height: -webkit-fill-available;
31 } 31 }
32 </style> 32 </style>
33 <sky-scrollable> 33 <sky-scrollable>
34 <sky-box title='Text'> 34 <sky-box title='Text'>
35 <sky-input id="text" value="{{ inputValue }}" /> 35 <sky-input id="text" value="{{ inputValue }}" />
36 <div>value = {{ inputValue }}</div> 36 <div>value = {{ inputValue }}</div>
37 </sky-box> 37 </sky-box>
38 38
39 <sky-box title='Buttons'> 39 <sky-box title='Buttons'>
40 <div style="display: flex; flex-direction: horizontal"> 40 <div style="display: flex; flex-direction: horizontal">
41 <div style="flex:1" /> 41 <div style="flex:1" />
42 <sky-button level="1" id="button">CANCEL</sky-button> 42 <sky-button level="1" id="button">CANCEL</sky-button>
43 <sky-button level="1" primary>CONFIRM</sky-button> 43 <sky-button level="1" primary>CONFIRM</sky-button>
44 </div> 44 </div>
45 </sky-box> 45 </sky-box>
46 46
47 <sky-box title='Checkboxes'> 47 <sky-box title='Checkboxes'>
48 <div><sky-checkbox id='checkbox' checked='{{ checked }}'/>Checkbox</div> 48 <div><sky-checkbox id='checkbox' checked='{{ checked }}'/>Checkbox</div>
49 <div class="output">highlight: {{ myCheckbox.highlight }}</div> 49 <div class="output">highlight: {{ myCheckbox.highlight }}</div>
50 <div class="output">checked: {{ myCheckbox.checked }}</div> 50 <div class="output">checked: {{ myCheckbox.checked }}</div>
51 <div><sky-checkbox id='checkbox' checked="true"/>Checkbox, default checked .</div> 51 <div><sky-checkbox id='checkbox' checked="true"/>Checkbox, default checked .</div>
52 <div class="output">checked: {{ checked }}</div> 52 <div class="output">checked: {{ checked }}</div>
53 </sky-box> 53 </sky-box>
54 54
55 <sky-box title='Radios'> 55 <sky-box title='Radios'>
56 <sky-box title='Group One'> 56 <sky-box title='Group One'>
57 <div><sky-radio group='foo'/>one</div> 57 <div><sky-radio group='foo'/>one</div>
58 <div><sky-radio group='foo' selected='true' />two</div> 58 <div><sky-radio group='foo' selected='true' />two</div>
59 <div><sky-radio group='foo'/>three</div> 59 <div><sky-radio group='foo'/>three</div>
60 </sky-box> 60 </sky-box>
61 <sky-box title='Group Two'> 61 <sky-box title='Group Two'>
62 <div><sky-radio group='bar'/>A</div> 62 <div><sky-radio group='bar'/>A</div>
63 <div><sky-radio group='bar'/>B</div> 63 <div><sky-radio group='bar'/>B</div>
64 <div><sky-radio group='bar' selected='true' />C</div> 64 <div><sky-radio group='bar' selected='true' />C</div>
(...skipping 24 matching lines...) Expand all
89 void _handleClick(_) { 89 void _handleClick(_) {
90 _clickCount++; 90 _clickCount++;
91 _checked = !_checked; 91 _checked = !_checked;
92 _inputValue = "Moar clicking ${_clickCount}"; 92 _inputValue = "Moar clicking ${_clickCount}";
93 } 93 }
94 } 94 }
95 95
96 _init(script) => register(script, WidgetRoot); 96 _init(script) => register(script, WidgetRoot);
97 </script> 97 </script>
98 </sky-element> 98 </sky-element>
OLDNEW
« no previous file with comments | « sky/examples/stocks/stocks.sky ('k') | sky/framework/elements/material-element.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698