Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4fe7985

Browse files
committed
文章 article-entry
1 parent 4382030 commit 4fe7985

File tree

2 files changed

+135
-1
lines changed

2 files changed

+135
-1
lines changed

static/css/outer/hight-light.css

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
.article-entry pre,
2+
.article-entry .highlight {
3+
background: #272822;
4+
margin: 0;
5+
padding: 15px 20px;
6+
border-style: solid;
7+
border-color: #eee;
8+
border-width: 1px 0;
9+
border-radius: 3px;
10+
overflow: auto;
11+
color: #f8f8f2;
12+
font-size: 16px;
13+
line-height: 19.2px;
14+
}
15+
.article-entry .highlight .gutter pre,
16+
.article-entry .gist .gist-file .gist-data .line-numbers {
17+
color: #666;
18+
font-size: 0.85em;
19+
}
20+
.article-entry pre,
21+
.article-entry code {
22+
font-family: Consolas, "Source Code Pro", Monaco, Menlo, Consolas, monospace, "Courier New";
23+
}
24+
.article-entry code {
25+
background: #f0f0f0;
26+
text-shadow: 0 1px #fff;
27+
font-size: 0.85em;
28+
padding: 0 0.3em;
29+
border: 1px solid #dcdcdc;
30+
border-radius: 3px;
31+
}
32+
.article-entry pre {
33+
background: transparent;
34+
}
35+
.article-entry pre code {
36+
background: none;
37+
text-shadow: none;
38+
padding: 0;
39+
border: none;
40+
}
41+
.article-entry .highlight {
42+
background: transparent url("/images/code-bk.png") repeat scroll 0% 0%;
43+
}
44+
.article-entry .highlight pre {
45+
border: none;
46+
margin: 0;
47+
padding: 0;
48+
}
49+
.article-entry .highlight table {
50+
margin: 0;
51+
width: auto;
52+
}
53+
.article-entry .highlight td {
54+
border: none;
55+
padding: 0;
56+
}
57+
.article-entry .highlight figcaption {
58+
zoom: 1;
59+
font-size: 0.85em;
60+
color: #75715e;
61+
line-height: 1em;
62+
margin-bottom: 1em;
63+
}
64+
.article-entry .highlight figcaption:before,
65+
.article-entry .highlight figcaption:after {
66+
content: "";
67+
display: table;
68+
}
69+
.article-entry .highlight figcaption:after {
70+
clear: both;
71+
}
72+
.article-entry .highlight figcaption a {
73+
float: right;
74+
}
75+
.article-entry .highlight .gutter pre {
76+
text-align: right;
77+
padding-right: 20px;
78+
}
79+
.article-entry .highlight .gutter pre .line {
80+
height: 25.6px;
81+
border-right: 3px solid #6ce26c;
82+
padding-right: 10px;
83+
color: #bbb;
84+
font-size: 12.8px;
85+
}
86+
.article-entry .highlight .line {
87+
height: 25.6px;
88+
}
89+
.article-entry .gist {
90+
margin: 0 -20px;
91+
border-style: solid;
92+
border-color: #eee;
93+
border-width: 1px 0;
94+
background: #272822;
95+
padding: 15px 20px 15px 0;
96+
}
97+
.article-entry .gist .gist-file {
98+
border: none;
99+
font-family: Consolas, "Source Code Pro", Monaco, Menlo, Consolas, monospace, "Courier New";
100+
margin: 0;
101+
}
102+
.article-entry .gist .gist-file .gist-data {
103+
background: none;
104+
border: none;
105+
}
106+
.article-entry .gist .gist-file .gist-data .line-numbers {
107+
background: none;
108+
border: none;
109+
padding: 0 20px 0 0;
110+
}
111+
.article-entry .gist .gist-file .gist-data .line-data {
112+
padding: 0 !important;
113+
}
114+
.article-entry .gist .gist-file .highlight {
115+
margin: 0;
116+
padding: 0;
117+
border: none;
118+
}
119+
.article-entry .gist .gist-file .gist-meta {
120+
background: #272822;
121+
color: #75715e;
122+
font: 0.85em "Helvetica Neue", Helvetica, Arial, sans-serif;
123+
text-shadow: 0 0;
124+
padding: 0;
125+
margin-top: 1em;
126+
margin-left: 20px;
127+
}
128+
.article-entry .gist .gist-file .gist-meta a {
129+
color: #e32d40;
130+
font-weight: normal;
131+
}
132+
.article-entry .gist .gist-file .gist-meta a:hover {
133+
text-decoration: underline;
134+
}

template/articles/detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h1>{{.article.Title}}</h1>
5151
{{end}}
5252
</div>
5353
<!-- tags -->
54-
<div class="content">
54+
<div class="content article-entry">
5555
{{noescape .article.Content}}
5656
</div>
5757
<!-- content END -->

0 commit comments

Comments
 (0)