Permalink
Browse files

adding source files

  • Loading branch information...
1 parent 16595c2 commit 9048f9cbef77b75d79c74cab368ed0fa26024280 @JoelSutherland committed Apr 2, 2012
Showing with 157 additions and 0 deletions.
  1. +135 −0 style-source.less
  2. +22 −0 twig-markup.html
View
@@ -0,0 +1,135 @@
+.github-box {
+
+ font-family: helvetica,arial,sans-serif;
+ font-size: 13px;
+ line-height: 18px;
+ background: #fafafa;
+ border: 1px solid #ddd;
+ color: #666;
+ border-radius: 3px;
+
+ a {
+ color: #4183C4;
+ border: none;
+ }
+
+ .github-box-title {
+ position: relative;
+ border-bottom: 1px solid #ddd;
+ border-radius: 3px 3px 0 0;
+ background: #fcfcfc;
+ background: -moz-linear-gradient(#FCFCFC,#EBEBEB);
+ background: -webkit-linear-gradient(#FCFCFC,#EBEBEB);
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc',endColorstr='#ebebeb')";
+
+ h3 {
+ font-family: helvetica,arial,sans-serif;
+ font-weight: normal;
+ font-size: 16px;
+ color: gray;
+ margin: 0;
+ padding: 10px 10px 10px 30px;
+ background: url(https://a248.e.akamai.net/assets.github.com/images/icons/public.png) 7px center no-repeat;
+
+ .repo {
+ font-weight: bold;
+ }
+ }
+
+ .github-stats {
+ position: absolute;
+ top: 8px;
+ right: 10px;
+ background: white;
+ border: 1px solid #ddd;
+ border-radius: 3px;
+ font-size: 11px;
+ font-weight: bold;
+ line-height: 21px;
+ height: 21px;
+
+ a {
+ display: inline-block;
+ height: 21px;
+ color: #666;
+ padding: 0 5px 0 18px;
+ background: url(https://a248.e.akamai.net/assets.github.com/images/modules/pagehead/repostat.png) no-repeat;
+ }
+ .watchers {
+ border-right: 1px solid #ddd;
+ background-position: 3px -2px;
+ }
+ .forks {
+ background-position: 0px -52px;
+ padding-left: 15px;
+ }
+ }
+
+ }
+
+ .github-box-content {
+ padding: 10px;
+ font-weight: 300;
+
+ p {
+ margin: 0;
+ }
+ .link {
+ font-weight: bold;
+ }
+ }
+
+ .github-box-download {
+ position: relative;
+ border-top: 1px solid #ddd;
+ background: white;
+ border-radius: 0 0 3px 3px;
+ padding: 10px;
+ height: 24px;
+
+ .updated {
+ margin: 0;
+ font-size: 11px;
+ color: #666;
+ line-height: 24px;
+ font-weight: 300;
+
+ strong {
+ font-weight: bold;
+ color: #000;
+ }
+ }
+
+ .download {
+ position: absolute;
+ display: block;
+ top: 10px;
+ right: 10px;
+ height: 24px;
+ line-height: 24px;
+ font-size: 12px;
+ color: #666;
+ font-weight: bold;
+ text-shadow: 0 1px 0 rgba(255,255,255,.9);
+ padding: 0 10px;
+ border: 1px solid #ddd;
+ border-bottom-color: #bbb;
+ border-radius: 3px;
+ background: #f5f5f5;
+ background: -moz-linear-gradient(#f5f5f5,#e5e5e5);
+ background: -webkit-linear-gradient(#f5f5f5,#e5e5e5);
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5',endColorstr='#e5e5e5')";
+ }
+ .download:hover {
+ color: #527894;
+ border-color: #cfe3ed;
+ border-bottom-color: #9fc7db;
+ background: #f1f7fa;
+ background: -moz-linear-gradient(#f1f7fa,#dbeaf1);
+ background: -webkit-linear-gradient(#f1f7fa,#dbeaf1);
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#f1f7fa',endColorstr='#dbeaf1')";
+
+ }
+ }
+
+}
View
@@ -0,0 +1,22 @@
+{% retrieve repo from 'https://api.github.com/repos/' ~ source as json cache 60 %}
+<div class="github-box repo">
+ <div class="github-box-title">
+ <h3>
+ <a class="owner" href="{{ repo.owner.url|replace('api.','')|replace('users/','') }}">{{ repo.owner.login }}</a>
+ /
+ <a class="repo" href="{{ repo.url|replace('api.','')|replace('repos/','') }}">{{ repo.name }}</a>
+ </h3>
+ <div class="github-stats">
+ <a class="watchers" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/watchers">{{ repo.watchers }}</a>
+ <a class="forks" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/forks">{{ repo.forks }}</a>
+ </div>
+ </div>
+ <div class="github-box-content">
+ <p class="description">{{ repo.description }}{% if repo.has_wiki %} &mdash; <a href="{{ repo.url|replace('api.','') }}#readme">Read More</a>{% endif %}</p>
+ <p class="link"><a href="{{ repo.homepage }}">{{ repo.homepage }}</a></p>
+ </div>
+ <div class="github-box-download">
+ <p class="updated">Latest commit to the <strong>master</strong> branch on {{ repo.pushed_at|date('M j, Y') }}</p>
+ <a class="download" href="{{ repo.url|replace('api.','')|replace('repos/','') }}/zipball/master">Download as zip</a>
+ </div>
+</div>

0 comments on commit 9048f9c

Please sign in to comment.