summaryrefslogtreecommitdiffstats
path: root/sass/parts/_archive.scss
blob: 61442b9faa5da182502312b37b0d39776c5e74aa (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
.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;
		padding-top: 30px;
		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;
		@media screen and (max-width: 600px){
			margin-left: 0;
			&:first-of-type{
				border-top: none;
				padding-top: 30px;
			}
		}
		.title{
			margin-bottom: 0;
		}
		.meta{
			color: $color-gray02;
			line-height: 2;
			margin-top: 15px;
			@media screen and (max-width: 600px){
				display: none;
			}
			span{
				margin-right: 30px;
				@include inline-block;
				&:before{
					color: $color-gray03;
					font: 1.3em $font-icon;
					padding-right: 10px;
				}
			}
			a{
				color: $color-gray02;
				@include transition(0.3s);
				&:hover{
					color: $color-gray01;
				}
			}
			.date:before{content: "\f073";}
			.tags:before{content: "\f02c";}
			.comments:before{content: "\f075";}
		}
	}
}