Skip to content

Commit 065db80

Browse files
committed
Simplify the markup for social a bit
1 parent 2a38a60 commit 065db80

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

css/style.css

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -177,14 +177,7 @@ p.lead {
177177
box-shadow: none;
178178
}
179179

180-
.social-nav {
181-
margin: 0;
182-
position: absolute;
183-
top: 265px;
184-
left: 10px;
185-
overflow: hidden;
186-
}
187-
.social { list-style: none; padding: 0; }
180+
.social { position: fixed; top: 265px; left: 10px; list-style: none; padding: 0; margin: 0; }
188181
.social li { margin: 5px 0 5px; }
189182
.social span { display: none; }
190183

index.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,11 @@ <h1 class="logo"><span>jQuery</span>.Pin</h1>
2222
<img src="images/pin.png" class="pin" width="400"/>
2323
</div>
2424
</header>
25-
<div class="social-nav">
26-
<ul class="social">
27-
<li class="twitter"><a href="http://twitter.com/share?text=Pin%20Things%2C%20with%20jQuery.pin%20http%3A%2F%2Fwebpop.github.com%2Fjquery.pin%20%23webpop%2C%20%23jQuery"><i class="icon-twitter"></i><span>Share on Twitter</span></a></li>
28-
<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u=http://webpop.github.com/jquery.pin"><i class="icon-facebook"></i><span>Share on Facebook</span></a></li>
29-
<li class="gplus"><a href="https://plus.google.com/share?url=http://webpop.github.com/jquery.pin"><i class="icon-google-plus"></i><span>Share on Google+</span></a></li>
30-
</ul>
31-
</div>
25+
<ul class="social">
26+
<li class="twitter"><a href="http://twitter.com/share?text=Pin%20Things%2C%20with%20jQuery.pin%20http%3A%2F%2Fwebpop.github.com%2Fjquery.pin%20%23webpop%2C%20%23jQuery"><i class="icon-twitter"></i><span>Share on Twitter</span></a></li>
27+
<li class="facebook"><a href="https://www.facebook.com/sharer/sharer.php?u=http://webpop.github.com/jquery.pin"><i class="icon-facebook"></i><span>Share on Facebook</span></a></li>
28+
<li class="gplus"><a href="https://plus.google.com/share?url=http://webpop.github.com/jquery.pin"><i class="icon-google-plus"></i><span>Share on Google+</span></a></li>
29+
</ul>
3230
<div class="wrapper">
3331
<h2 class="sub">Make your stuff stick!</h2>
3432
<section class="container clearfix">
@@ -137,7 +135,6 @@ <h2>Want a sticky left menu?</h2>
137135

138136
<!-- PIN ALL THE THINGS! -->
139137
<script>
140-
$(".social").pin();
141138
$(".pinned").pin({containerSelector: ".container", minWidth: 940});
142139
</script>
143140
<!-- That's all - pretty easy, right? -->

0 commit comments

Comments
 (0)