Skip to content

Commit 0873101

Browse files
committed
Added Sproutcore 2.0 todos example
1 parent 9cb6463 commit 0873101

File tree

6 files changed

+710
-0
lines changed

6 files changed

+710
-0
lines changed

sctodos/css/style.css

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
2+
/* ==== Scroll down to find where to put your styles :) ==== */
3+
4+
/* HTML5 ? Boilerplate */
5+
6+
html, body, div, span, object, iframe,
7+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8+
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
9+
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
10+
fieldset, form, label, legend,
11+
table, caption, tbody, tfoot, thead, tr, th, td,
12+
article, aside, canvas, details, figcaption, figure,
13+
footer, header, hgroup, menu, nav, section, summary,
14+
time, mark, audio, video {
15+
margin: 0;
16+
padding: 0;
17+
border: 0;
18+
font-size: 100%;
19+
font: inherit;
20+
vertical-align: baseline;
21+
}
22+
23+
article, aside, details, figcaption, figure,
24+
footer, header, hgroup, menu, nav, section {
25+
display: block;
26+
}
27+
28+
blockquote, q { quotes: none; }
29+
blockquote:before, blockquote:after,
30+
q:before, q:after { content: ''; content: none; }
31+
ins { background-color: #ff9; color: #000; text-decoration: none; }
32+
mark { background-color: #ff9; color: #000; font-style: italic; font-weight: bold; }
33+
del { text-decoration: line-through; }
34+
abbr[title], dfn[title] { border-bottom: 1px dotted; cursor: help; }
35+
table { border-collapse: collapse; border-spacing: 0; }
36+
hr { display: block; height: 1px; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
37+
input, select { vertical-align: middle; }
38+
39+
body { font:13px/1.231 sans-serif; *font-size:small; }
40+
select, input, textarea, button { font:99% sans-serif; }
41+
pre, code, kbd, samp { font-family: monospace, sans-serif; }
42+
43+
html { overflow-y: scroll; }
44+
a:hover, a:active { outline: none; }
45+
ul, ol { margin-left: 2em; }
46+
ol { list-style-type: decimal; }
47+
nav ul, nav li { margin: 0; list-style:none; list-style-image: none; }
48+
small { font-size: 85%; }
49+
strong, th { font-weight: bold; }
50+
td { vertical-align: top; }
51+
52+
sub, sup { font-size: 75%; line-height: 0; position: relative; }
53+
sup { top: -0.5em; }
54+
sub { bottom: -0.25em; }
55+
56+
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 15px; }
57+
textarea { overflow: auto; }
58+
.ie6 legend, .ie7 legend { margin-left: -7px; }
59+
input[type="radio"] { vertical-align: text-bottom; }
60+
input[type="checkbox"] { vertical-align: bottom; }
61+
.ie7 input[type="checkbox"] { vertical-align: baseline; }
62+
.ie6 input { vertical-align: text-bottom; }
63+
label, input[type="button"], input[type="submit"], input[type="image"], button { cursor: pointer; }
64+
button, input, select, textarea { margin: 0; }
65+
input:valid, textarea:valid { }
66+
input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
67+
.no-boxshadow input:invalid, .no-boxshadow textarea:invalid { background-color: #f0dddd; }
68+
69+
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
70+
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
71+
a:link { -webkit-tap-highlight-color: #FF5E99; }
72+
73+
button { width: auto; overflow: visible; }
74+
.ie7 img { -ms-interpolation-mode: bicubic; }
75+
76+
body, select, input, textarea { color: #444; }
77+
h1, h2, h3, h4, h5, h6 { font-weight: bold; }
78+
a, a:active, a:visited { color: #607890; }
79+
a:hover { color: #036; }
80+
81+
/*
82+
// ========================================== \\
83+
|| ||
84+
|| Your styles ! ||
85+
|| ||
86+
\\ ========================================== //
87+
*/
88+
89+
90+
91+
92+
93+
94+
95+
96+
97+
98+
99+
100+
101+
102+
103+
.ir { display: block; text-indent: -999em; overflow: hidden; background-repeat: no-repeat; text-align: left; direction: ltr; }
104+
.hidden { display: none; visibility: hidden; }
105+
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
106+
.visuallyhidden.focusable:active,
107+
.visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }
108+
.invisible { visibility: hidden; }
109+
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; overflow: hidden; }
110+
.clearfix:after { clear: both; }
111+
.clearfix { zoom: 1; }
112+
113+
114+
@media all and (orientation:portrait) {
115+
116+
}
117+
118+
@media all and (orientation:landscape) {
119+
120+
}
121+
122+
@media screen and (max-device-width: 480px) {
123+
124+
/* html { -webkit-text-size-adjust:none; -ms-text-size-adjust:none; } */
125+
}
126+
127+
128+
@media print {
129+
* { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
130+
-ms-filter: none !important; }
131+
a, a:visited { color: #444 !important; text-decoration: underline; }
132+
a[href]:after { content: " (" attr(href) ")"; }
133+
abbr[title]:after { content: " (" attr(title) ")"; }
134+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
135+
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
136+
thead { display: table-header-group; }
137+
tr, img { page-break-inside: avoid; }
138+
@page { margin: 0.5cm; }
139+
p, h2, h3 { orphans: 3; widows: 3; }
140+
h2, h3{ page-break-after: avoid; }
141+
}

sctodos/css/todos.css

Lines changed: 241 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,241 @@
1+
html, body, div, span, applet, object, iframe,
2+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3+
a, abbr, acronym, address, big, cite, code,
4+
del, dfn, em, img, ins, kbd, q, s, samp,
5+
small, strike, strong, sub, sup, tt, var,
6+
b, u, i, center,
7+
dl, dt, dd, ol, ul, li,
8+
fieldset, form, label, legend,
9+
table, caption, tbody, tfoot, thead, tr, th, td,
10+
article, aside, canvas, details, embed,
11+
figure, figcaption, footer, header, hgroup,
12+
menu, nav, output, ruby, section, summary,
13+
time, mark, audio, video {
14+
margin: 0;
15+
padding: 0;
16+
border: 0;
17+
font-size: 100%;
18+
font: inherit;
19+
vertical-align: baseline; }
20+
21+
body {
22+
line-height: 1; }
23+
24+
ol, ul {
25+
list-style: none; }
26+
27+
table {
28+
border-collapse: collapse;
29+
border-spacing: 0; }
30+
31+
caption, th, td {
32+
text-align: left;
33+
font-weight: normal;
34+
vertical-align: middle; }
35+
36+
q, blockquote {
37+
quotes: none; }
38+
q:before, q:after, blockquote:before, blockquote:after {
39+
content: "";
40+
content: none; }
41+
42+
a img {
43+
border: none; }
44+
45+
article, aside, details, figcaption, figure,
46+
footer, header, hgroup, menu, nav, section {
47+
display: block; }
48+
49+
/* CSS Reset */
50+
html, body, div, span, applet, object, iframe,
51+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
52+
a, abbr, acronym, address, big, cite, code,
53+
del, dfn, em, img, ins, kbd, q, s, samp,
54+
small, strike, strong, sub, sup, tt, var,
55+
b, u, i, center,
56+
dl, dt, dd, ol, ul, li,
57+
fieldset, form, label, legend,
58+
table, caption, tbody, tfoot, thead, tr, th, td,
59+
article, aside, canvas, details, embed,
60+
figure, figcaption, footer, header, hgroup,
61+
menu, nav, output, ruby, section, summary,
62+
time, mark, audio, video {
63+
margin: 0;
64+
padding: 0;
65+
border: 0;
66+
font-size: 100%;
67+
font: inherit;
68+
vertical-align: baseline; }
69+
70+
body {
71+
line-height: 1; }
72+
73+
ol, ul {
74+
list-style: none; }
75+
76+
table {
77+
border-collapse: collapse;
78+
border-spacing: 0; }
79+
80+
caption, th, td {
81+
text-align: left;
82+
font-weight: normal;
83+
vertical-align: middle; }
84+
85+
q, blockquote {
86+
quotes: none; }
87+
q:before, q:after, blockquote:before, blockquote:after {
88+
content: "";
89+
content: none; }
90+
91+
a img {
92+
border: none; }
93+
94+
article, aside, details, figcaption, figure,
95+
footer, header, hgroup, menu, nav, section {
96+
display: block; }
97+
98+
body {
99+
line-height: 1;
100+
font-family: "Lucida Grande", sans-serif;
101+
font-size: 13px; }
102+
103+
ol, ul {
104+
list-style: none; }
105+
106+
blockquote, q {
107+
quotes: none; }
108+
109+
blockquote:before, blockquote:after,
110+
q:before, q:after {
111+
content: '';
112+
content: none; }
113+
114+
table {
115+
border-collapse: collapse;
116+
border-spacing: 0; }
117+
118+
/* App CSS */
119+
body, html {
120+
color: #777;
121+
background-color: #F2F4F5; }
122+
123+
.sc-view {
124+
position: relative;
125+
overflow: visible; }
126+
127+
body {
128+
-moz-box-shadow: rgba(0, 0, 0, 0.6) 0 0 1px;
129+
-webkit-box-shadow: rgba(0, 0, 0, 0.6) 0 0 1px;
130+
-o-box-shadow: rgba(0, 0, 0, 0.6) 0 0 1px;
131+
box-shadow: rgba(0, 0, 0, 0.6) 0 0 1px;
132+
-moz-border-radius: 8px;
133+
-webkit-border-radius: 8px;
134+
-o-border-radius: 8px;
135+
-ms-border-radius: 8px;
136+
-khtml-border-radius: 8px;
137+
border-radius: 8px;
138+
position: absolute;
139+
width: 600px;
140+
left: 50%;
141+
margin-top: 38px;
142+
border: 1px solid #bbbbbb;
143+
margin-left: -300px;
144+
background-color: #fff;
145+
padding: 40px 10px 10px; }
146+
body .mark-all-done label {
147+
margin-left: 5px;
148+
font-weight: bold; }
149+
body #stats {
150+
overflow: hidden;
151+
width: 100%;
152+
padding: 5px 10px;
153+
margin: 10px -10px;
154+
background-color: #eee;
155+
border-top: 1px solid #aaa;
156+
border-bottom: 1px solid #aaa;
157+
line-height: 25px; }
158+
body #stats .remaining {
159+
float: left; }
160+
body #stats .sc-button {
161+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #f9f9f9), color-stop(34%, #dddddd), color-stop(67%, #f2f2f2), color-stop(100%, #f7f7f7));
162+
background-image: -webkit-linear-gradient(#f9f9f9 1%, #dddddd, #f2f2f2, #f7f7f7);
163+
background-image: -moz-linear-gradient(#f9f9f9 1%, #dddddd, #f2f2f2, #f7f7f7);
164+
background-image: -o-linear-gradient(#f9f9f9 1%, #dddddd, #f2f2f2, #f7f7f7);
165+
background-image: linear-gradient(#f9f9f9 1%, #dddddd, #f2f2f2, #f7f7f7);
166+
border: 1px solid #828282;
167+
color: #000;
168+
float: right;
169+
padding: 5px; }
170+
body #stats .sc-button:hover {
171+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #ffffff), color-stop(34%, #e2e2e2), color-stop(67%, #f7f7f7), color-stop(100%, #fcfcfc));
172+
background-image: -webkit-linear-gradient(#ffffff 1%, #e2e2e2, #f7f7f7, #fcfcfc);
173+
background-image: -moz-linear-gradient(#ffffff 1%, #e2e2e2, #f7f7f7, #fcfcfc);
174+
background-image: -o-linear-gradient(#ffffff 1%, #e2e2e2, #f7f7f7, #fcfcfc);
175+
background-image: linear-gradient(#ffffff 1%, #e2e2e2, #f7f7f7, #fcfcfc); }
176+
body #stats .sc-button.is-active {
177+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #efefef), color-stop(34%, #d3d3d3), color-stop(67%, #e8e8e8), color-stop(100%, #ededed));
178+
background-image: -webkit-linear-gradient(#efefef 1%, #d3d3d3, #e8e8e8, #ededed);
179+
background-image: -moz-linear-gradient(#efefef 1%, #d3d3d3, #e8e8e8, #ededed);
180+
background-image: -o-linear-gradient(#efefef 1%, #d3d3d3, #e8e8e8, #ededed);
181+
background-image: linear-gradient(#efefef 1%, #d3d3d3, #e8e8e8, #ededed); }
182+
body input[type='text'] {
183+
-moz-border-radius: 5px;
184+
-webkit-border-radius: 5px;
185+
-o-border-radius: 5px;
186+
-ms-border-radius: 5px;
187+
-khtml-border-radius: 5px;
188+
border-radius: 5px;
189+
-moz-box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.6);
190+
-webkit-box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.6);
191+
-o-box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.6);
192+
box-shadow: 0 0 10px -2px rgba(0, 0, 0, 0.6);
193+
color: #999;
194+
background-color: #f0f0f0;
195+
width: 588px;
196+
font-size: 30px;
197+
font-family: Helvetica, sans-serif;
198+
padding: 5px;
199+
border: 1px solid #bbbbbb;
200+
font-weight: 500; }
201+
body input[type='text']::-webkit-input-placeholder {
202+
color: #aaa; }
203+
body h1 {
204+
-moz-border-radius-topleft: 8px;
205+
-webkit-border-top-left-radius: 8px;
206+
-o-border-top-left-radius: 8px;
207+
-ms-border-top-left-radius: 8px;
208+
-khtml-border-top-left-radius: 8px;
209+
border-top-left-radius: 8px;
210+
-moz-border-radius-topright: 8px;
211+
-webkit-border-top-right-radius: 8px;
212+
-o-border-top-right-radius: 8px;
213+
-ms-border-top-right-radius: 8px;
214+
-khtml-border-top-right-radius: 8px;
215+
border-top-right-radius: 8px;
216+
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(49%, #f4f4f4), color-stop(51%, #ededed), color-stop(100%, #dedede));
217+
background-image: -webkit-linear-gradient(#ffffff, #f4f4f4 49%, #ededed 51%, #dedede);
218+
background-image: -moz-linear-gradient(#ffffff, #f4f4f4 49%, #ededed 51%, #dedede);
219+
background-image: -o-linear-gradient(#ffffff, #f4f4f4 49%, #ededed 51%, #dedede);
220+
background-image: linear-gradient(#ffffff, #f4f4f4 49%, #ededed 51%, #dedede);
221+
text-shadow: white 0 1px 1px;
222+
font-size: 15px;
223+
position: absolute;
224+
width: 600px;
225+
height: 20px;
226+
color: #53565e;
227+
top: 0;
228+
left: 0;
229+
padding: 5px 10px;
230+
border-bottom: 1px solid #bbbbbb; }
231+
body .sc-checkbox input[type="checkbox"] {
232+
margin-right: 7px; }
233+
body ul {
234+
margin: 10px 0 2px 0; }
235+
body ul li {
236+
padding: 5px; }
237+
body ul li.is-done {
238+
color: #B7B7B7;
239+
text-decoration: line-through; }
240+
body ul li:nth-child(odd) {
241+
background-color: #F7F7F7; }

0 commit comments

Comments
 (0)