summaryrefslogtreecommitdiffstats
path: root/web/sass-files/sass/partials/_markdown.scss
blob: f34b5ec197524ad3d349321b1d7886d3dff78e72 (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
@charset "UTF-8";

.markdown__heading {
	font-weight: 700;
	line-height: 1.5;
}
.markdown__paragraph-inline {
	display: inline;
	+ .markdown__paragraph-inline {
		margin-left: 4px;
	}
}
#post-list {
	.markdown-inline-img {
		-moz-force-broken-image-icon: 1;
		max-height: 500px;
		height: 500px;
	}
}

.post-body--code {
	position: relative;

	pre {
		margin-bottom: 0;
		word-break: normal;
		overflow: auto;
		word-wrap: normal;
	}

}

.post-body--code__language {
	-webkit-transform: translate3d(0,0,0);
	position: absolute;
	top: 0;
	right: 0;
	color: #fff;
	background: #21586D;
	padding: 4px 10px 5px 10px;
	font-size: 13px;
	opacity: 0.7;
	z-index: 5;
}

.post__body {
	hr {
		height: 4px;
		padding: 0;
		margin: 15px 0 16px;
		background-color: #e7e7e7;
		border: 0 none;
		@include opacity(0.2);
	}
	code {
		white-space: pre;
	}
	.codespan__pre-wrap {
		code {
			white-space: pre-wrap;
		}
	}
}
.markdown__table {
	background: #fff;
	margin: 5px 0 10px;
	th, td {
		padding: 6px 13px;
		border: 1px solid #ddd;
	}
	tbody tr {
		background: #fff;
		&:nth-child(2n) {
			background-color: #f8f8f8;
		}
	}
}
blockquote {
	border: none;
	position: relative;
	font-size: 16px;
	padding: 10px 10px 10px 38px;
	margin-bottom: 0;
	&:before {
		font-family: FontAwesome;
		font-weight: normal;
		font-style: normal;
		display: inline-block;
		text-decoration: inherit;
		content: "\f10d";
		left: 8px;
		top: 5px;
		position: absolute;
		font-size: 20px;
		@include opacity(0.6);
	}
}
pre {
	border: none;
	margin: 5px 0;
	color: inherit;
}
code {
	background: #fff;
	color: inherit;
}