Skip to content

Commit

Permalink
Merge pull request tastejs#16 from brokenseal/master
Browse files Browse the repository at this point in the history
Adding Broke.js example.
  • Loading branch information
addyosmani committed Oct 18, 2011
2 parents f75a7d1 + e467a6e commit 704b762
Show file tree
Hide file tree
Showing 20 changed files with 5,442 additions and 0 deletions.
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.
Binary file added todo-example/broke/apple-touch-icon-precomposed.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added todo-example/broke/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
167 changes: 167 additions & 0 deletions todo-example/broke/css/application.css
@@ -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 added todo-example/broke/favicon.ico
Binary file not shown.
Binary file added todo-example/broke/images/delete.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added todo-example/broke/images/pencil.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions todo-example/broke/index.html
@@ -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>

0 comments on commit 704b762

Please sign in to comment.