summaryrefslogtreecommitdiffstats
path: root/sass/parts/_archive.scss
diff options
context:
space:
mode:
Diffstat (limited to 'sass/parts/_archive.scss')
-rw-r--r--sass/parts/_archive.scss70
1 files changed, 29 insertions, 41 deletions
diff --git a/sass/parts/_archive.scss b/sass/parts/_archive.scss
index 6b5ee75..af8f764 100644
--- a/sass/parts/_archive.scss
+++ b/sass/parts/_archive.scss
@@ -1,59 +1,49 @@
-section.archive{
+.archives{
position: relative;
- &:first-of-type{
- border-top: 1px solid $gray05;
- article.archive{
- border-top: none;
- }
- h1.archive-title{
- border-top: none;
- &:before{
- border-top: none;
- }
- }
- }
&:last-of-type{
- border-bottom: 1px solid $gray04;
- article.archive{
- border-bottom: none;
+ &:before{
+ content: "";
+ position: absolute;
+ bottom: 0;
+ width: 200px;
+ border-top: 1px solid $color-gray04;
}
}
- h1.archive-title{
+ .year{
line-height: 35px;
width: 200px;
position: absolute;
top: 0;
- padding-top: 30px;
+ padding-top: 15px;
border-top: 1px solid #fff;
&:before{
content: "";
position: absolute;
top: -2px;
width: 100%;
- border-top: 1px solid $gray04;
+ border-top: 1px solid $color-gray04;
}
@media screen and (max-width: 600px){
position: relative;
width: 100%;
- & + article.archive{
- border-top: none;
- h1{
- padding-top: 15px;
- }
- }
}
}
- article.archive{
+ article{
margin-left: 200px;
+ padding: 15px 0;
@media screen and (max-width: 600px){
margin-left: 0;
- padding: 15px 0;
+ &:first-of-type{
+ border-top: none;
+ padding-top: 30px;
+ }
}
- h1{
+ .title{
margin-bottom: 0;
}
.meta{
- color: $gray02;
+ color: $color-gray02;
+ font-size: 0.9em;
line-height: 2;
margin-top: 15px;
@media screen and (max-width: 600px){
@@ -61,25 +51,23 @@ section.archive{
}
span{
margin-right: 30px;
- padding-left: 30px;
@include inline-block;
+ &:before{
+ color: $color-gray03;
+ font: 1.3em $font-icon;
+ padding-right: 10px;
+ }
}
a{
- color: $gray02;
+ color: $color-gray02;
@include transition(0.3s);
&:hover{
- color: $gray01;
+ color: $color-gray01;
}
}
- .date{
- background: image-url('date.png') 0 center no-repeat;
- }
- .tags{
- background: image-url('tags.png') 0 center no-repeat;
- }
- .comments{
- background: image-url('comments.png') 0 center no-repeat;
- }
+ .date:before{content: "\f073";}
+ .tags:before{content: "\f02c";}
+ .comments:before{content: "\f075";}
}
}
} \ No newline at end of file