Skip to content

Commit 772b4f1

Browse files
committed
improving demonstration page
1 parent b9d6f65 commit 772b4f1

File tree

3 files changed

+46
-165
lines changed

3 files changed

+46
-165
lines changed

css/style.css

Lines changed: 27 additions & 162 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,39 @@ a{
66
text-decoration:none;
77
}
88

9+
h1 {
10+
font-family: 'MuseoSlab500Regular', sans-serif;
11+
text-align: center;
12+
color: #999;
13+
font-size: 42px;
14+
margin: 30px 0 0 0;
15+
}
16+
17+
.title {
18+
width: 700px;
19+
margin: 0 auto;
20+
padding-right: 35px;
21+
}
22+
23+
.title p {
24+
text-align: center;
25+
}
26+
927
p{
1028
font-size: 12px;
1129
font-family:'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
1230
line-height: 1.5em;
1331
}
1432

33+
#github-logo {
34+
position: fixed;
35+
bottom: -5px;
36+
right: 20px;
37+
z-index: 1;
38+
display: block;
39+
opacity: 0.4;
40+
}
41+
1542
.projects{
1643
width:700px;
1744
margin:0 auto;
@@ -22,168 +49,6 @@ p{
2249
display:none;
2350
}
2451

25-
/* Github */
26-
27-
.github-widget:nth-child(even) .github-box{
28-
margin-right:0 !important
29-
}
30-
31-
.github-box{
32-
font-family:"proxima-nova-1","proxima-nova-2","Helvetica Neue",Arial,sans-serif;
33-
background:#fafafa;
34-
border:1px solid #ddd;
35-
color:#666;
36-
-moz-border-radius:5px;
37-
-webkit-border-radius:5px;
38-
-o-border-radius:5px;
39-
-ms-border-radius:5px;
40-
-khtml-border-radius:5px;
41-
border-radius:5px;
42-
float:left;
43-
margin-right:1.2em;
44-
margin-bottom:2em;
45-
width:46%
46-
}
47-
48-
.github-box a{
49-
color:#4183C4;
50-
border:none
51-
}
52-
53-
.github-box .github-box-title{
54-
position:relative;
55-
border-bottom:1px solid #ddd;
56-
-moz-border-radius:5px 5px 0 0;
57-
-webkit-border-radius:5px 5px 0 0;
58-
-o-border-radius:5px 5px 0 0;
59-
-ms-border-radius:5px 5px 0 0;
60-
-khtml-border-radius:5px 5px 0 0;
61-
border-radius:5px 5px 0 0;
62-
background:#fcfcfc;
63-
background:-moz-linear-gradient(#fcfcfc, #ebebeb);
64-
background:-webkit-linear-gradient(#fcfcfc, #ebebeb);
65-
-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr='#fcfcfc',endColorstr='#ebebeb')"
66-
}
67-
68-
.github-box .github-box-title h3{
69-
font-family:helvetica,arial,sans-serif;font-weight:normal;
70-
font-size:16px;
71-
color:gray;
72-
margin:0;
73-
padding:10px 10px 10px 10px
74-
}
75-
76-
.github-box .github-box-title h3 .repo{
77-
font-weight:bold
78-
}
79-
80-
.github-box .github-box-title .github-stats{
81-
position:absolute;
82-
top:10px;
83-
right:10px;
84-
background:white;
85-
border:1px solid #ddd;
86-
border-radius:3px;
87-
font-size:11px;
88-
font-weight:bold;
89-
line-height:21px;
90-
height:21px
91-
}
92-
93-
.github-box .github-box-title .github-stats a{
94-
display:inline-block;
95-
height:21px;
96-
color:#666;
97-
padding:0 5px 0 18px;
98-
background:url('../img/repo.png') no-repeat;
99-
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
100-
opacity:0.7
101-
}
102-
103-
.github-box .github-box-title .github-stats a:hover{
104-
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
105-
opacity:1
106-
}
107-
108-
.github-box .github-box-title .github-stats .watchers{
109-
border-right:1px solid #ddd;
110-
background-position:3px 4px
111-
}
112-
113-
.github-box .github-box-title .github-stats .forks{
114-
background-position:3px -19px;
115-
padding-left:15px
116-
}
117-
118-
.github-box .github-box-content{
119-
padding:10px;
120-
font-weight:300;
121-
font-size:0.7em
122-
}
123-
124-
.github-box .github-box-content p{
125-
margin:0
126-
}
127-
128-
.github-box .github-box-content .link{
129-
font-weight:bold
130-
}
131-
132-
.github-box .github-box-download{
133-
position:relative;
134-
border-top:1px solid #ddd;
135-
background:white;
136-
border-radius:0 0 3px 3px;
137-
padding:10px;
138-
height:24px
139-
}
140-
141-
.github-box .github-box-download .updated{
142-
margin:0;
143-
font-size:13px;
144-
color:#666;
145-
line-height:24px
146-
}
147-
148-
.github-box .github-box-download .updated strong{
149-
font-size:12px;
150-
font-weight:bold;
151-
color:#000
152-
}
153-
154-
.github-box .github-box-download .download{
155-
position:absolute;
156-
display:block;
157-
top:10px;
158-
right:10px;
159-
height:24px;
160-
line-height:24px;
161-
font-size:12px;
162-
color:#666;
163-
font-weight:bold;
164-
text-shadow:0 1px 0 rgba(255,255,255,0.9);
165-
padding:0 10px;
166-
border:1px solid #ddd;
167-
border-bottom-color:#bbb;
168-
border-radius:3px;
169-
display:block;
170-
text-indent:-9999px;
171-
width:24px;
172-
padding:0;
173-
background:url('../img/download.png') no-repeat 6px 6px,-webkit-linear-gradient(#f5f5f5, #e5e5e5);
174-
background:url('../img/download.png') no-repeat 6px 6px,-moz-linear-gradient(#f1f7fa, #dbeaf1);
175-
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=70);
176-
opacity:0.7
177-
}
178-
179-
.github-box .github-box-download .download:hover{
180-
color:#527894;
181-
border-color:#cfe3ed;
182-
border-bottom-color:#9fc7db;
183-
filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
184-
opacity:1
185-
}
186-
18752
/* Font-face */
18853

18954
@font-face {

demo.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,34 @@
22
<html lang="en-US">
33
<head>
44
<meta charset="UTF-8">
5-
<title></title>
5+
<title>Github Project Widget</title>
66
<link rel="stylesheet" href="css/style.css">
7+
<link rel="stylesheet" href="css/skin.css">
78
</head>
89
<body>
910

11+
<div class="title">
12+
<h1>Github Project Widget</h1>
13+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
14+
tempor<br> incididunt ut labore et dolore
15+
magna aliqua. Ut enim ad minim veniam
16+
</p>
17+
</div>
18+
1019
<div class="projects">
11-
<div class="github-widget" data-repo="zenorocha/web-log"></div>
12-
<div class="github-widget" data-repo="zenorocha/talks"></div>
20+
1321
<div class="github-widget" data-repo="zenorocha/jquery-boilerplate"></div>
22+
<div class="github-widget" data-repo="zenorocha/diveintohtml5"></div>
23+
<div class="github-widget" data-repo="zenorocha/talks"></div>
1424
<div class="github-widget" data-repo="zenorocha/hub.me"></div>
1525
</div>
1626

27+
<img id="github-logo" src="img/cat.png" alt="Github's Logo" />
28+
29+
<a href="https://github.com/zenorocha/github-project-widget">
30+
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub">
31+
</a>
32+
1733
<script src="js/jquery.js"></script>
1834
<script src="js/github.js"></script>
1935

img/cat.png

3.15 KB
Loading

0 commit comments

Comments
 (0)