forked from tastejs/todomvc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request tastejs#16 from brokenseal/master
Adding Broke.js example.
- Loading branch information
Showing
20 changed files
with
5,442 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
font-family: "Helvetica Neue", helvetica, arial, sans-serif; | ||
font-size: 14px; | ||
line-height: 1.4em; | ||
background: #eeeeee; | ||
color: #333333; | ||
} | ||
|
||
#views { | ||
width: 520px; | ||
margin: 0 auto 40px auto; | ||
background: white; | ||
|
||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0; | ||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0; | ||
-o-box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0; | ||
box-shadow: rgba(0, 0, 0, 0.2) 0 2px 6px 0; | ||
|
||
-moz-border-radius: 0 0 5px 5px; | ||
-o-border-radius: 0 0 5px 5px; | ||
-webkit-border-radius: 0 0 5px 5px; | ||
border-radius: 0 0 5px 5px; | ||
} | ||
|
||
#tasks { | ||
padding: 20px; | ||
} | ||
|
||
#tasks h1 { | ||
font-size: 36px; | ||
font-weight: bold; | ||
text-align: center; | ||
padding: 0 0 10px 0; | ||
} | ||
|
||
#tasks input[type="text"] { | ||
width: 466px; | ||
font-size: 24px; | ||
font-family: inherit; | ||
line-height: 1.4em; | ||
border: 0; | ||
outline: none; | ||
padding: 6px; | ||
border: 1px solid #999999; | ||
|
||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px 0 inset; | ||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px 0 inset; | ||
-o-box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px 0 inset; | ||
box-shadow: rgba(0, 0, 0, 0.2) 0 1px 2px 0 inset; | ||
} | ||
|
||
#tasks input::-webkit-input-placeholder { | ||
font-style: italic; | ||
} | ||
|
||
#tasks .items { | ||
margin: 10px 0; | ||
list-style: none; | ||
padding: 0; | ||
} | ||
|
||
#tasks .item { | ||
padding: 15px 20px 15px 0; | ||
position: relative; | ||
font-size: 24px; | ||
border-bottom: 1px solid #cccccc; | ||
} | ||
|
||
#tasks .item.done span { | ||
color: #777777; | ||
text-decoration: line-through; | ||
} | ||
|
||
#tasks .item .destroy { | ||
position: absolute; | ||
right: 10px; | ||
top: 16px; | ||
display: none; | ||
cursor: pointer; | ||
width: 20px; | ||
height: 20px; | ||
background: url(../images/delete.png) no-repeat center center; | ||
} | ||
|
||
#tasks .item .edit { | ||
position: absolute; | ||
right: 36px; | ||
top: 16px; | ||
display: none; | ||
cursor: pointer; | ||
width: 20px; | ||
height: 20px; | ||
background: url(../images/pencil.png) no-repeat center center; | ||
} | ||
|
||
#tasks .item:hover .destroy, | ||
#tasks .item:hover .edit { | ||
display: block; | ||
} | ||
|
||
#tasks .item.editing .edit { display: block; } | ||
#tasks .item.editing .view { display: none; } | ||
|
||
#tasks footer { | ||
display: block; | ||
margin: 20px -20px -20px -20px; | ||
overflow: hidden; | ||
|
||
color: #555555; | ||
background: #f4fce8; | ||
border-top: 1px solid #ededed; | ||
padding: 0 20px; | ||
line-height: 36px; | ||
|
||
-moz-border-radius: 0 0 5px 5px; | ||
-o-border-radius: 0 0 5px 5px; | ||
-webkit-border-radius: 0 0 5px 5px; | ||
border-radius: 0 0 5px 5px; | ||
} | ||
|
||
#tasks .clear { | ||
display: block; | ||
float: right; | ||
line-height: 20px; | ||
text-decoration: none; | ||
|
||
background: rgba(0, 0, 0, 0.1); | ||
color: #555555; | ||
font-size: 11px; | ||
margin-top: 8px; | ||
margin-bottom:8px; | ||
padding: 0 10px 1px; | ||
|
||
-moz-border-radius: 12px; | ||
-webkit-border-radius: 12px; | ||
-o-border-radius: 12px; | ||
border-radius: 12px; | ||
|
||
-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0 0; | ||
-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0 0; | ||
-o-box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0 0; | ||
box-shadow: rgba(0, 0, 0, 0.2) 0 -1px 0 0; | ||
|
||
cursor: pointer; | ||
} | ||
|
||
#tasks .clear:hover { | ||
background: rgba(0, 0, 0, 0.15); | ||
-moz-box-shadow: rgba(0, 0, 0, 0.3) 0 -1px 0 0; | ||
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0 -1px 0 0; | ||
-o-box-shadow: rgba(0, 0, 0, 0.3) 0 -1px 0 0; | ||
box-shadow: rgba(0, 0, 0, 0.3) 0 -1px 0 0; | ||
} | ||
|
||
#tasks .clear:active { | ||
position: relative; | ||
top: 1px; | ||
} | ||
|
||
#tasks .count span { | ||
font-weight: bold; | ||
} |
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Broke.js</title> | ||
<link rel="stylesheet" href="css/application.css" type="text/css" charset="utf-8"> | ||
</head> | ||
<body> | ||
<div id="views"> | ||
<div id="tasks"> | ||
<h1>Todos</h1> | ||
|
||
<form action="#/task/create/" method="post"> | ||
<input type="text" name="title" placeholder="What needs to be done?" /> | ||
</form> | ||
|
||
<div id="content"></div> | ||
|
||
<footer> | ||
<a class="clear" href="#/task/clear_completed/">Clear completed</a> | ||
<div class="count"><span class="countVal"></span></div> | ||
</footer> | ||
</div> | ||
</div> | ||
|
||
<script src="libs/jquery-1.6.4.min.js"></script> | ||
<script src="libs/gettext.min.js"></script> | ||
<script src="libs/pyjammin.min.js"></script> | ||
<script src="libs/broke-client-0.2b.min.js"></script> | ||
|
||
<script src="project/my-blog.js"></script> | ||
<script src="project/settings.js"></script> | ||
<script src="project/models.js"></script> | ||
<script src="project/views.js"></script> | ||
<script src="project/urls.js"></script> | ||
<script src="project/templates.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.