Skip to content

Commit 4733152

Browse files
committed
Fix(css): Fixing css for markdown.
1 parent 2043706 commit 4733152

File tree

2 files changed

+32
-6
lines changed

2 files changed

+32
-6
lines changed

html/item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424
{{ end }}
2525
<h1>{{ .Title}}</h1>
26-
<div>{{ .Desc }}</div>
26+
<div class="desc">{{ .Desc }}</div>
2727
</article>
2828
</main>
2929
</div>

static/css/main.css

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
list-style: none;
55
border: 0;
66
font-family: Segoe UI,SegoeUI,"Helvetica Neue",Helvetica,Arial,sans-serif;
7+
line-height: 1.4;
78
}
89

910

@@ -39,7 +40,6 @@ main article * {
3940

4041
main article h1 {
4142
font-size: 36px;
42-
margin-bottom: 30px;
4343
}
4444

4545
main {
@@ -155,6 +155,36 @@ img {
155155
height: 100%;
156156
}
157157

158+
code {
159+
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
160+
padding: 15px;
161+
background: white;
162+
display: block;
163+
border-radius: 4px;
164+
}
165+
166+
blockquote {
167+
font-size: 28px;
168+
display: block;
169+
border: blue solid 0;
170+
border-left-width: 4px;
171+
padding: 1px 15px; /* some weird css bug? Change to 1px -> 0px to see */
172+
}
173+
174+
main article .desc p,
175+
main article .desc > * {
176+
margin: 15px auto;
177+
}
178+
179+
main article .desc a {
180+
color: blue;
181+
text-decoration: none;
182+
}
183+
184+
main article .desc a:hover {
185+
text-decoration: underline;
186+
}
187+
158188
@media (max-width: 800px) {
159189
footer,
160190
header {
@@ -175,10 +205,6 @@ img {
175205
padding: 15px;
176206
}
177207

178-
main article h1 {
179-
margin-bottom: 15px;
180-
}
181-
182208
main ul .image-container .text h3 {
183209
padding: 15px;
184210
}

0 commit comments

Comments
 (0)