Skip to content

Commit

Permalink
update to the modular backbone tutorial to give data from github and …
Browse files Browse the repository at this point in the history
…replace users with contributors
  • Loading branch information
headwinds committed Nov 10, 2012
1 parent 5deef95 commit 2cbbc45
Show file tree
Hide file tree
Showing 37 changed files with 942 additions and 153 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
*config.js
*node_modules/
.DS_Store
*.sublime-project
*.sublime-workspace
4 changes: 2 additions & 2 deletions css/reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ input:invalid, textarea:invalid {
/* These selection declarations have to be separate
No text-shadow: twitter.com/miketaylr/status/12228805301
Also: hot pink! */
::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }
::-moz-selection{ background: #666; color:#fff; text-shadow: none; }
::selection { background:#666; color:#fff; text-shadow: none; }

/* j.mp/webkit-tap-highlight-color */
a:link { -webkit-tap-highlight-color: #FF5E99; }
Expand Down
328 changes: 325 additions & 3 deletions examples/modular-backbone/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ body, button, input, select, textarea { font-family: sans-serif; color: #222; }
* Also: hot pink!
*/

::-moz-selection { background: #fe57a1; color: #fff; text-shadow: none; }
::selection { background: #fe57a1; color: #fff; text-shadow: none; }
::-moz-selection { background: #666; color: #fff; text-shadow: none; }
::selection { background: #666; color: #fff; text-shadow: none; }


/* =============================================================================
Expand Down Expand Up @@ -245,11 +245,333 @@ h1{
border-bottom: 1px solid #ebebeb;
min-height: 400px;
padding: 20px;
overflow: hidden;
}

#page {

}

#page .main {
display: block;
position:relative;
top: 0px;
left: 0px;
padding: 0px;
margin: 0px;
width: 500px;
float: left;
overflow: hidden;
}

#page .sidebar {
display: block;
position:relative;
top: 0px;
left: 0px;
padding: 10px;
margin: 0px;
width: 400px;
height: 300px;
background-color:#FFF;
float: left;
}

#page .sidebar .ad {
clear:both;
}

#page .sidebar .ad .pic {
display: block;
position: relative;
margin: 0px;
padding: 0px;
float: left;
top: 0px;
left: 0px;
width: 150px;
}

#page .sidebar .ad .info {
display: block;
position: relative;
margin: 0px;
padding: 0px;
float: left;
top: 0px;
left: 0px;
width: 250px;
}

#page .sidebar .ad .info h4 {
font-size: 16px;
color:#666;
}

#page .sidebar .ad .info p {
font-size: 10px;
color:#999;
}

#page .contributors-stats ul {
list-style: none;
}

#page .contributors-stats ul li {
display:block;
position: relative;
height: 20px;
}

#page .contributors-stats ul li p {
font-size: 20px;
color:#999;
font-weight: bold;
margin: 0px;
padding: 0px;
}

#page #contributors-list {

}

#page #contributors-list ul.contributors {
list-style: none;
margin: 0px;
padding: 0px;
}

#page #contributors-list ul.contributors li {
display: block;
position: relative;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
float: left;
}

#page #contributors-list ul.contributors li div.contributor {
display: block;
position: relative;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
border: 1px solid #CCC;
}

#page #contributors-list ul.contributors li div.contributor ul {
list-style: none;
margin: 0px;
padding: 0px;

}

#page #contributors-list ul.contributors li div.contributor ul li {
display: block;
position: absolute;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
}

#page #contributors-list ul.contributors li div.contributor ul li.username {
z-index: 2;
height: 14px;
border: none;
}

#page #contributors-list ul.contributors li div.contributor ul li.username p {
display:block;
position: absolute;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
width: 100%;
height: 14px;
background-color: #CCC;
text-align: center;
font-size: 10px;
font-weight: bold;
color:#999;
}

#page #contributors-list ul.contributors li div.contributor ul li.username p a {
color:#999;
text-decoration: none;
}

#page #contributors-list ul.contributors li div.contributor ul li.username p a:hover {
color:#334231;
}

#page #contributors-list ul.contributors li div.contributor ul li.pic {
z-index: 1;
}

#page #contributors-list ul.contributors li div.contributor ul li.pic a {
display:block;
position: absolute;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
width: 100%;
border: none;
}

#page #contributors-list ul.contributors li div.contributor ul li.pic p {
display: block;
position: absolute;
margin: 0px;
padding: 0px;
top: 0px;
left: 0px;
width: 100%;
}

#page #contributors-list ul.contributors li div.contributor ul li.contributions {
z-index: 3;
pointer-events:none;
}

#page #contributors-list ul.contributors li div.contributor ul li.contributions p {
display:block;
position: absolute;
left:0px;
width:100%;
height: 15%;
top: 85%;
background-color: #333;
text-align: center;
font-size: 10px;
font-weight: bold;
color:#666;
margin:0px;
padding:0px;
}


#footer {
text-align: center;
display: block;
position:relative;
text-align: left;
background-color:#CCC;
height: 100px;
margin:0px;
padding:0px;
-webkit-box-shadow: inset 0px 3px 5px 0px rgba(0, 0, 0, 0.35);
box-shadow: inset 0px 3px 5px 0px rgba(0, 0, 0, 0.35);
}

#footer ul {
list-style-type: none;
margin:0px;
padding:0px;
}

#footer ul li {
display:block;
position:relative;
width: 100%;
height: 20px;
margin: 0px;
padding: 0px;
}

#footer p {
font-size: 20px;
font-weight: bold;
color: rgba(153, 153, 153, 0.35);
margin: 0px;
padding: 0px;
}

#footer .pic {
display:block;
position:absolute;
float: left;
margin:5px;
padding:0px;
width: 90px;
height: 90px;
top: 0px;
left: 0px;
}

#footer .pic a {
display:block;
position:absolute;
margin:0px;
padding:0px;
width: 90px;
height: 90px;
top: 0px;
left: 0px;
border: 1px #999 solid;
}

#footer .pic a img {
display:block;
position:absolute;
margin:0px;
padding:0px;
width: 90px;
height: 90px;
top: 0px;
left: 0px;
filter: grayscale(100%);
/*filter: url(filters.svg#grayscale);
filter: gray;*/
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
}

#footer .info {
display:block;
position:relative;
float: left;
margin:0px;
padding:0px;
width: 100%;
height: 100px;
top: 10px;
left: 120px;
}



/* =============================================================================
Page styles
========================================================================== */

#home {

}

#home .main {

}

#home #sidebar {

}

#projects {

}

#contributors {

}



/* =============================================================================
Non-semantic helper classes
Please define your styles before this section.
Expand Down
Binary file added examples/modular-backbone/imgs/backbone_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/modular-backbone/imgs/require_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions examples/modular-backbone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ <h1>Modular Backbone</h1>
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#/projects">Project List</a></li>
<li><a href="#/users">User List</a></li>
<li><a href="#/projects">Projects</a></li>
<li><a href="#/users">Contributors</a></li>
</ul>
</div>
<div id="page">
Loading....
</div>
<div id="footer">
Thomas Davis
</div>
<div id="footer"></div>
</div>

</body>
Expand Down
Loading

0 comments on commit 2cbbc45

Please sign in to comment.