summaryrefslogtreecommitdiffstats
path: root/sass/parts/_archive.scss
blob: 037e92a5fe4ed985484b09e47072d4a83b28c512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
section.archive{
	position: relative;
	&:first-of-type{
		border-top: 1px solid $light-shadow;
		article.archive{
			border-top: none;
		}
		h1.archive-title{
			border-top: none;
			&:before{
				border-top: none;
			}
		}
	}
	&:last-of-type{
		border-bottom: 1px solid $border;
		article.archive{
			border-bottom: none;
		}
	}
	h1.archive-title{
		font-size: 25px;
		line-height: 35px;
		width: 200px;
		position: absolute;
		top: 0;
		padding-top: 30px;
		border-top: 1px solid #fff;
		&:before{
			content: "";
			position: absolute;
			top: -2px;
			width: 100%;
			border-top: 1px solid #ddd;
		}
	}
	article.archive{
		margin-left: 200px;
		h1{
			margin-bottom: 0;
		}
		.meta{
			color: $font-meta;
			line-height: 2;
			margin-top: 15px;
			span{
				margin-right: 30px;
				padding-left: 30px;
				display: inline-block;
			}
			a{
				color: $font-meta;
				@include transition(0.3s);
				&:hover{
					color: $font-main;
				}
			}
			.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;
			}
		}
	}
}

@media screen and (max-width: 600px){
	section.archive{
		h1.archive-title{
			position: relative;
			width: 100%;
			& + article.archive{
				border-top: none;
				h1{
					padding-top: 15px;
				}
			}
		}
		article.archive{
			margin-left: 0;
			padding: 15px 0;
			h1{
				font-size: 20px;
			}
			.meta{
				display: none;
			}
		}
	}
}