Skip to content

Instantly share code, notes, and snippets.

@christopherstyles
Created November 5, 2012 18:19
Show Gist options
  • Save christopherstyles/4019410 to your computer and use it in GitHub Desktop.
Save christopherstyles/4019410 to your computer and use it in GitHub Desktop.
css standards
#stories_list {
position: relative;
min-width: 960px;
li {
position: relative;
.item.cf {
padding: 0 5px;
.image {
margin-top: 5px;
}
}
}
.story_clone {
position: absolute;
z-index: 99;
background: #fff;
.item.cf {
float: left;
position: relative;
border-right: 0;
}
border-right: 1px solid #eee;
}
.story_clone.fourth-column {
.item.cf {
float: right;
position: relative;
border-right: 0;
}
border-left: 1px solid #eee;
}
.story_clone_drawer {
width: 0px;
height: 100%;
float: left;
display: none;
overflow: hidden;
.story_clone_drawer_inner {
padding-left: 2%;
padding-right: 1%;
width: 97%;
position: relative;
.story_drawer_tags {
width: 100%;
clear: both;
height: 28%;
float: left;
clear: both;
margin-bottom: 4px;
margin-top: 6px;
border-bottom: 1px solid #eee;
padding-bottom: 6px;
position: relative;
.story_drawer_tags_label {
@include rem(font-size, 12px);
@include rem(line-height, 14px);
font-family:$sans-serif-bold;
width: 20%;
float: left;
}
.story_drawer_tags_list {
width: 80%;
float: left;
@include rem(font-size, 12px);
@include rem(line-height, 14px);
font-family:$sans-serif-light;
a {
color: #000;
}
a:hover {
text-decoration: none;
}
span.inline-bullet {
padding: 0 2px;
display: inline-block;
}
}
}
.story_drawer_sharing {
width: 100%;
height: 40%;
border-bottom: 1px solid #eee;
float: left;
clear: both;
position: relative;
padding-bottom: 3px;
.story_drawer_sharing_label {
@include rem(font-size, 12px);
@include rem(line-height, 14px);
font-family:$sans-serif-bold;
width: 20%;
float: left;
}
.story_drawer_sharing_options {
width: 80%;
float: left;
span {
display: block;
float: left;
margin-bottom: 1px;
}
}
}
.story_drawer_user_info {
height: 30%;
width: 100%;
float: left;
clear: both;
position: relative;
padding-top: 4px;
.story_drawer_user_avatar {
width: 20%;
float: left;
img {
width: 48px;
height: auto;
}
}
.story_drawer_user_text {
width: 76%;
float: left;
color: $red;
padding-left: 4%;
@include rem(font-size, 16px);
@include rem(line-height, 18px);
}
}
}
}
}
.stories-list {
position:relative;
min-width:960px;
li {
position:relative;
.item.cf {
padding:0 5px;
.image {
margin-top:5px;
}
}
}
.story-clone {
position:absolute;
z-index:99;
background:#fff;
border-right:1px solid #eee;
.item.cf {
float:left;
position:relative;
border-right:0;
}
}
.story-clone {
&.fourth-column {
border-left:1px solid #eee;
.item.cf {
float:right;
position:relative;
border-right:0;
}
}
}
.story-clone-drawer {
width:0px;
height:100%;
float:left;
display:none;
overflow:hidden;
.story-clone-drawer-inner {
padding-left:2%;
padding-right:1%;
width:97%;
position:relative;
.story-drawer-tags {
width:100%;
clear:both;
height:28%;
float:left;
clear:both;
margin-bottom:4px;
margin-top:6px;
border-bottom:1px solid #eee;
padding-bottom:6px;
position:relative;
.story-drawer-tags-label {
@include rem(font-size, 12px);
@include rem(line-height, 14px);
font-family:$sans-serif-bold;
width:20%;
float:left;
}
.story-drawer-tags-list {
@include rem(font-size, 12px);
@include rem(line-height, 14px);
width:80%;
float:left;
font-family:$sans-serif-light;
a {
color:#000;
}
a:hover {
text-decoration:none;
}
span.inline-bullet {
padding:0 2px;
display:inline-block;
}
}
}
.story-drawer-sharing {
width:100%;
height:40%;
border-bottom:1px solid #eee;
float:left;
clear:both;
position:relative;
padding-bottom:3px;
.story-drawer-sharing-label {
@include rem(font-size, 12px);
@include rem(line-height, 14px);
font-family:$sans-serif-bold;
width:20%;
float:left;
}
.story-drawer-sharing-options {
width:80%;
float:left;
span {
display:block;
float:left;
margin-bottom:1px;
}
}
}
.story-drawer-user-info {
height:30%;
width:100%;
float:left;
clear:both;
position:relative;
padding-top:4px;
.story-drawer-user-avatar {
width:20%;
float:left;
img {
width:48px;
height:auto;
}
}
.story-drawer-user-text {
@include rem(font-size, 16px);
@include rem(line-height, 18px);
width:76%;
float:left;
color:$red;
padding-left:4%;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment