Skip to content

Commit 3a1a8f7

Browse files
committed
small fix
1 parent 8bcb876 commit 3a1a8f7

File tree

2 files changed

+14
-19
lines changed

2 files changed

+14
-19
lines changed

css/ZeroBlog.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ a:hover { color: #3498db }
8181

8282
.left { float: left; display: inline-block; width: 25%; margin-top: 60px; text-align: right }
8383
.right { display: inline-block; width: 75%; padding-top: 60px }
84-
.left .trigger { padding-left: 20px; }
85-
.right .posts, .right .post-full, .right .pager, .right .footer { padding-left: 60px; }
84+
.left .trigger { padding: 0 20px; }
85+
.right .posts, .right .post-full, .right .pager, .right .footer { padding: 0 30px; }
8686
.left .avatar {
8787
background-color: #F0F0F0; width: 60px; height: 60px; border-radius: 100%; margin-bottom: 10px;
8888
background-position: center center; background-size: 70%; display: inline-block; image-rendering: pixelated;
@@ -143,7 +143,7 @@ a:hover { color: #3498db }
143143

144144
.post .body a img { margin-bottom: -8px }
145145
.post .body img { max-width: 100% }
146-
.post .body table { border-collapse: collapse; margin-bottom: 10px; margin: auto }
146+
.post .body table { display: block; width: 100%; overflow: auto; border-spacing: 0; border-collapse: collapse; margin-bottom: 10px; margin: auto }
147147
.post .body td, .post .body th { padding: 5px 10px; border: 1px solid #EEE; border-collapse: collapse; text-align: left }
148148

149149
code {
@@ -152,8 +152,8 @@ code {
152152
max-width: 660px;
153153
overflow: auto;
154154
}
155-
.post .body pre { table-layout: fixed; width: auto; display: table; white-space: normal; }
156-
.post .body pre code { padding: 10px 20px; white-space: pre; max-width: 660px; display: block; overflow: auto }
155+
.post .body pre { table-layout: fixed; width: auto; max-width: 100%; overflow: auto; white-space: normal; }
156+
.post .body pre code { padding: 10px 20px; white-space: pre; display: block; overflow: auto }
157157

158158
blockquote { border-left: 3px solid #333; margin-left: 0px; padding-left: 1em }
159159
/*.post .more {

css/mobile.css

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@
22
display: none; }
33
.left .menu-icon {
44
display: none; }
5-
@media screen and (max-width: 1000px) {
6-
.right {
7-
max-width: 650px;
8-
}
9-
.post .body pre code {
10-
max-width: 600px;
11-
}
12-
}
135
@media screen and (max-width: 750px) {
146
body, html {height: 100%;}
15-
code {max-width: 100%;}
7+
code {max-width: calc(100% 10px);}
168
html, body, p, th, td, li {
179
font-size: medium !important;
1810
}
1911
.right {
20-
width: 95%;
21-
max-width: 100%;
12+
width: 100%;
2213
margin-left: 0px;
23-
padding-right: 10px;
24-
padding-left: 10px;
14+
max-width: 750px;
15+
}
16+
.left .trigger { padding: 0 10px; }
17+
.right .posts, .right .post-full, .right .pager, .right .footer {
18+
padding: 0 10px;
2519
}
2620
.editable-edit {
2721
position: absolute;
@@ -109,8 +103,9 @@ padding: 5px 5px;
109103
white-space: pre-wrap;
110104
}
111105
.post .body code {
112-
max-width: 100%;
106+
max-width: calc(100% - 10px);
113107
white-space: pre-wrap;
108+
word-wrap: break-word;
114109
}
115110

116111
}

0 commit comments

Comments
 (0)