Skip to content

Commit 0b0cc4b

Browse files
Update main.css
1 parent 10c54da commit 0b0cc4b

File tree

1 file changed

+22
-33
lines changed

1 file changed

+22
-33
lines changed

static/stylesheets/main.css

Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ body {
2020
padding: 0;
2121
border-top: 8px solid #333;
2222
font-family: "Lato", sans-serif;
23-
font-size: 16px;
23+
font-size: 20px;
24+
line-height: 32px;
2425
color: #333;
2526
}
2627

@@ -36,7 +37,8 @@ body {
3637
width: 90%;
3738
}
3839
article {
39-
font-size: 18px !important;
40+
font-size: 20px !important;
41+
line-height: 32px !important;
4042
}
4143
}
4244

@@ -53,21 +55,6 @@ pre {
5355

5456
}
5557

56-
h1 {
57-
margin-top: 0.9em;
58-
font-size: 1.3em;
59-
font-weight: normal;
60-
font-style: normal;
61-
text-align: center;
62-
}
63-
64-
h2 {
65-
margin-top: 0.9em;
66-
font-size: 1em;
67-
font-weight: bold;
68-
font-style: normal;
69-
}
70-
7158
.wrap>footer {
7259
margin-top: 2em;
7360
padding: 2em 0;
@@ -178,14 +165,6 @@ article header {
178165
text-align: center;
179166
}
180167

181-
article header h1 {
182-
font-size: 1.5em;
183-
font-weight: bold;
184-
font-style: normal;
185-
line-height: 1em;
186-
text-align: center;
187-
}
188-
189168
article header time {
190169
font-size: 0.9em;
191170
font-style: normal;
@@ -200,9 +179,11 @@ article hr {
200179
}
201180

202181
#content img {
203-
max-width: 100%;
204-
margin: 4px auto;
205-
display: block;
182+
max-width: 100%;
183+
max-height: 512px;
184+
margin: 4px auto;
185+
display: block;
186+
height: auto;
206187
}
207188

208189
article p .word1,article p .word2,article p .word3 {
@@ -328,11 +309,14 @@ iframe {
328309
}
329310

330311
div#content {
331-
margin: 0% 26%; /* default margin for larger screens */
312+
margin: 0% 12%; /* default margin for larger screens */
332313
}
333314

334315
@media only screen and (max-width: 767px) {
335316
/* small screens */
317+
#wrap {
318+
padding: 0px 10px;
319+
}
336320
div#content {
337321
margin: 0% 5px; /* 5px margin on small screens */
338322
}
@@ -389,10 +373,6 @@ li.title {
389373
text-align: left;
390374
}
391375

392-
h1,h2,h3,h4,h5,h6 {
393-
font-weight: bold;
394-
}
395-
396376
input#reader-email {
397377
border-radius: 5px;
398378
width: 80%;
@@ -753,3 +733,12 @@ input#archive-search {
753733
display: block;
754734
width: 200px;
755735
}
736+
737+
p > code {
738+
border-radius: 6px;
739+
padding: 1px;
740+
margin: 1px;
741+
color: rgb(31, 35, 40, 0.9);
742+
background-color: rgba(175, 184, 193, 0.2);
743+
border: 1px solid rgb(31, 35, 40);
744+
}

0 commit comments

Comments
 (0)