summaryrefslogtreecommitdiffstats
path: root/sass/parts/_article.scss
blob: 5754fd185c3c58e5f3cff10c4799005cec56e8fb (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
article{
	border-bottom: 1px solid $gray04;
	border-top: 1px solid $gray05;
	padding: 30px 0;
	position: relative;
	h1.title{
		font-weight: 300;
		line-height: 35px;
		margin-bottom: 20px;
		a{
			color: $gray01;
		}
	}
	.entry{
		line-height: 2;
		text-align: justify;
		a{
			&:hover{
				text-decoration: underline;
			}
		}
		.more-link{
			display: block;
			margin-top: 20px;
			padding-left: 30px;
			background: image-url('more.png') 0 center no-repeat;
		}
		strong{
			font-weight: bold;
		}
		ol, ul{
			margin-left: 20px;
			margin-top: 10px;
			ol, ul{
				margin-top: 0;
			}
		}
		
		p{
			margin-top: 10px;	
		}
		h2{
			font-weight: 300;
			margin-top: 10px;
			border-bottom: 1px solid $gray04;
			position: relative;
			&:before{
				content: "";
				position: absolute;
				bottom: -2px;
				border-bottom: 1px solid $gray05;
				width: 100%;
			}
		}
		h3{
			margin-top: 10px;
		}
		img, video{
			max-width: 100%;
			height: auto;
		}
		blockquote{
			background: $gray04;
			border-left: 5px solid $gray03;
			padding: 15px 20px;
			margin-top: 10px;
			& > p:first-of-type{
				margin-top: 0;
			}
		}
		iframe{
			margin-top: 10px;
			border: none;
		}
		ol, ul, p, blockquote{
			code{
				background: $gray04;
				border: 1px solid $gray03;
				padding: 1px 3px;
				margin: 0 3px;
				@include border-radius(5px);
			}
		}
		code{
			font: $meta-size $monospace;
		}
		>pre{
			background: $gray04;
			padding: 5px 15px;
			margin-top: 10px;
			border: 1px solid $gray03;
			line-height: 1.5;
			overflow-x: auto;
			@include border-radius(5px);
		}
		.caption{
			background: image-url('caption.png') 0 4px no-repeat;
			display: block;
			font-size: $meta-size;
			color: $gray02;
			padding-left: 25px;
		}
		.video-container{
			position: relative;
			padding-bottom: 56.25%;
			padding-top: 30px;
			height: 0;
			overflow: hidden;
			iframe, object, embed{
				position: absolute;
				top: 0;
				left: 0;
				width: 100%;
				height: 100%;
			}
		}
	}
}
.share{
	padding: 15px 0;
	@include border-shadow();
}

@media screen and (max-width: 800px){
	article{
		padding-bottom: 15px;
	}
}

@media screen and (max-width: 600px){
	article{
		padding: 15px 0;
	}
}