blog/sass/parts/_archive.scss

77 lines
1.4 KiB
SCSS
Raw Normal View History

2012-06-03 11:40:57 +00:00
.archives{
position: relative;
&:last-of-type{
&:before{
content: "";
position: absolute;
bottom: 0;
width: 200px;
border-top: 1px solid $color-gray04;
}
}
.year{
line-height: 35px;
width: 200px;
position: absolute;
top: 0;
2013-02-10 14:50:28 +00:00
padding-top: 15px;
2012-06-03 11:40:57 +00:00
border-top: 1px solid #fff;
&:before{
content: "";
position: absolute;
top: -2px;
width: 100%;
border-top: 1px solid $color-gray04;
}
@media screen and (max-width: 600px){
position: relative;
width: 100%;
}
}
article{
margin-left: 200px;
2013-02-10 14:50:28 +00:00
padding: 15px 0;
2012-06-03 11:40:57 +00:00
@media screen and (max-width: 600px){
margin-left: 0;
&:first-of-type{
border-top: none;
padding-top: 30px;
}
}
.title{
margin-bottom: 0;
}
.meta{
line-height: 2;
2013-09-06 22:15:18 +00:00
font-size: 0.9em;
color: $color-gray02;
2012-06-03 11:40:57 +00:00
margin-top: 15px;
@media screen and (max-width: 600px){
display: none;
}
2013-09-06 22:15:18 +00:00
a{
@include link-colors($color-gray02, $color-gray01);
@include transition(0.3s);
}
.date, .tags, .comments{
padding-left: 30px;
position: relative;
2013-02-10 14:50:28 +00:00
&:before{
color: $color-gray03;
font: 1.3em $font-icon;
2013-09-06 22:15:18 +00:00
line-height: 1.6em;
position: absolute;
left: 0;
2013-02-10 14:50:28 +00:00
}
2013-09-06 22:15:18 +00:00
@media screen and (max-width: 600px){
@include inline-block;
margin-right: 30px;
2012-06-03 11:40:57 +00:00
}
}
2013-02-10 14:50:28 +00:00
.date:before{content: "\f073";}
.tags:before{content: "\f02c";}
.comments:before{content: "\f075";}
2012-06-03 11:40:57 +00:00
}
}
2013-09-06 22:15:18 +00:00
}