summaryrefslogtreecommitdiffstats
path: root/sass/parts/_archive.scss
diff options
context:
space:
mode:
authorTommy Chen <tommy351@gmail.com>2012-06-03 05:50:08 +0200
committerTommy Chen <tommy351@gmail.com>2012-06-03 05:50:08 +0200
commit8f6ae6b36604c6dcfc105d7bbfd21716373b9739 (patch)
treecddc7dabd852e2c8b550e44b5b769fed9b7d7044 /sass/parts/_archive.scss
parent5bae43b46cd5dd399836f8e326ee128373c1a855 (diff)
downloadoctopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.zip
octopress-theme-jeyzu-8f6ae6b36604c6dcfc105d7bbfd21716373b9739.tar.gz
simplify archive
Diffstat (limited to 'sass/parts/_archive.scss')
-rw-r--r--sass/parts/_archive.scss40
1 files changed, 14 insertions, 26 deletions
diff --git a/sass/parts/_archive.scss b/sass/parts/_archive.scss
index 4d06f08..1a2009c 100644
--- a/sass/parts/_archive.scss
+++ b/sass/parts/_archive.scss
@@ -1,24 +1,15 @@
-section.archive{
+.archives{
position: relative;
- &:first-of-type{
- border-top: 1px solid $color-gray05;
- article.archive{
- border-top: none;
- }
- h1.archive-title{
- border-top: none;
- &:before{
- border-top: none;
- }
- }
- }
&:last-of-type{
- border-bottom: 1px solid $color-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;
@@ -35,21 +26,18 @@ section.archive{
@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;
@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{