Skip to content

Commit a3a2d95

Browse files
committed
Fix(css): Finishing touches on css. Fixing mistakes w/r/t code (inline) vs pre code (non inline).
1 parent 64bd832 commit a3a2d95

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

html/item.html

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

static/css/main.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,17 @@ img {
186186
}
187187

188188
code {
189+
background: rgba(0, 0, 0, 0.1);
190+
border-radius: 4px;
191+
padding: 0 5px;
192+
}
193+
194+
pre code {
189195
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);
190196
padding: 15px;
191-
background: rgba(0, 0, 0, 0.1);
192197
display: block;
193-
border-radius: 4px;
194198
overflow: auto;
199+
-webkit-overflow-scrolling: touch;
195200
}
196201

197202
blockquote {
@@ -239,6 +244,8 @@ main article .desc a:hover {
239244

240245
main ul .image-container .text h3 {
241246
padding: 15px;
247+
font-size: 24px;
248+
line-height: 28px;
242249
}
243250

244251
img {

0 commit comments

Comments
 (0)