Skip to content

Instantly share code, notes, and snippets.

@warrenparsons
Created October 30, 2015 15:00
Show Gist options
  • Save warrenparsons/222036dc92973dd571db to your computer and use it in GitHub Desktop.
Save warrenparsons/222036dc92973dd571db to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="feed">
<ul class="feed__filters">
<li class="active">All</li>
<li>Following</li>
<li>Groups</li>
</ul>
<div class="post">
<div class="row">
<img class="post__avatar" src="https://placeholdit.imgix.net/~text?txtsize=6&txt=35%C3%9735&w=35&h=35">
<div class="post-info">
<p class="post-info__author">
<a href="#">Rebecca Zantjer</a> shared with <a href="#">WHQ Toledo</a>
</p>
<span class="post-info__timestamp">September 23, 2015 at 3:42pm</span>
</div>
<div class="post-body">
<p>How do you make decisions about what links to put where?</p>
<p>The User Experience research team is hosting a lunch-and-learn today at 12:00 in the cafe. Come learn about digital research tools you can use to help organize content on your site.</p>
</div>
<div class="post-footer">
<div class="post-footer__links">
<a href="#">Like</a>
<a href="#">Comment</a>
<a href="#">Share</a>
</div>
</div>
</div>
</div>
</div>
// ----
// libsass (v3.2.5)
// ----
$gray: #999;
$linkBlue: #428BCA;
@mixin clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
body {
font-family: Helvetica, Arial, sans-serif;
}
a {
color: $linkBlue;
}
.row {
@include clearfix;
}
.feed {
width: 442px;
}
.feed__filters {
list-style: none;
margin-left: 0;
padding-left: 0;
text-align: right;
> li {
display: inline-block;
margin-left: 10px;
font-size: 14px;
cursor: pointer;
padding: 10px;
color: $linkBlue;
border-radius: 5px;
&:first-child {
margin-left: 0;
}
&.active {
background: $linkBlue;
color: white;
}
&:hover {
background: lighten($linkBlue, 20%);
}
}
}
.post__avatar {
float: left;
margin-right: 10px;
}
.post-info {
font-size: 10px;
}
.post-info__timestamp {
color: $gray;
}
.post-body {
font-size: 12px;
}
.post-footer {
@extend .row;
}
.post-footer__links {
font-size: 10px;
> a {
color: $gray;
display: inline-block;
margin-left: 10px;
&:first-child {
margin-left: 0;
}
}
}
body {
font-family: Helvetica, Arial, sans-serif;
}
a {
color: #428BCA;
}
.row:after, .post-footer:after {
content: "";
display: table;
clear: both;
}
.feed {
width: 442px;
}
.feed__filters {
list-style: none;
margin-left: 0;
padding-left: 0;
text-align: right;
}
.feed__filters > li {
display: inline-block;
margin-left: 10px;
font-size: 14px;
cursor: pointer;
padding: 10px;
color: #428BCA;
border-radius: 5px;
}
.feed__filters > li:first-child {
margin-left: 0;
}
.feed__filters > li.active {
background: #428BCA;
color: white;
}
.feed__filters > li:hover {
background: #92bce0;
}
.post__avatar {
float: left;
margin-right: 10px;
}
.post-info {
font-size: 10px;
}
.post-info__timestamp {
color: #999;
}
.post-body {
font-size: 12px;
}
.post-footer__links {
font-size: 10px;
}
.post-footer__links > a {
color: #999;
display: inline-block;
margin-left: 10px;
}
.post-footer__links > a:first-child {
margin-left: 0;
}
<div class="feed">
<ul class="feed__filters">
<li class="active">All</li>
<li>Following</li>
<li>Groups</li>
</ul>
<div class="post">
<div class="row">
<img class="post__avatar" src="https://placeholdit.imgix.net/~text?txtsize=6&txt=35%C3%9735&w=35&h=35">
<div class="post-info">
<p class="post-info__author">
<a href="#">Rebecca Zantjer</a> shared with <a href="#">WHQ Toledo</a>
</p>
<span class="post-info__timestamp">September 23, 2015 at 3:42pm</span>
</div>
<div class="post-body">
<p>How do you make decisions about what links to put where?</p>
<p>The User Experience research team is hosting a lunch-and-learn today at 12:00 in the cafe. Come learn about digital research tools you can use to help organize content on your site.</p>
</div>
<div class="post-footer">
<div class="post-footer__links">
<a href="#">Like</a>
<a href="#">Comment</a>
<a href="#">Share</a>
</div>
</div>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment