Skip to content

Commit 8406787

Browse files
committed
feat: enlarge font-size in resume.md for wide-screen & printing only
1 parent 2ef3c15 commit 8406787

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Visit: https://coldemo.github.io/
1010
- [ ] faked location/window, cookie/storage partition, markdown anchor
1111
- [ ] tag-filter/btn-back/reset/export/upload/fullscreen/popstate
1212
- [ ] lang rb/go/java/dart/kotlin, mjs-import/vite
13+
- [ ] dat.gui, btn-print/export
14+
- [x] resume.md, print.css
1315
- [x] crank-jsx, vue-jsx, ts/tsx, py, vue, md, add/removeRendering
1416
- [x] error-handling, assetsNode, load-parallel
1517
- [x] gh-pages, lang js/jsx, react/vue, umd-hack

public/code/resume.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
### XX的简历-前端-深圳
22

3-
<style>
4-
table, tbody { width: 100% }
5-
.hide-th table th { display: none }
6-
.meta-table tr td:nth-child(1), .meta-table tr td:nth-child(3) { font-weight: bold }
7-
.cols { max-width: 620px; font-size: 0; display: flex; justify-content: space-between }
8-
.cols-2 * { width: 49% }
9-
.cols-3 * { width: 31% }
10-
.cols-4 * { width: 23% }
11-
</style>
12-
13-
<small>
3+
<!-- Cmd(Ctrl)+P -> 打印 -> 可导出 PDF格式 -->
144

155
<div class="hide-th meta-table">
166

@@ -120,4 +110,16 @@ table, tbody { width: 100% }
120110
<img src="https://fritx.me/resume/WechatIMG7.jpeg">
121111
</div>
122112

123-
</small>
113+
<style>
114+
@media screen (max-width: 540px) {
115+
#mdPreview { font-size: 80% }
116+
}
117+
.vditor-reset h1, .vditor-reset h2 { border: none }
118+
table, tbody { width: 100% }
119+
.hide-th table th { display: none }
120+
.meta-table tr td:nth-child(1), .meta-table tr td:nth-child(3) { font-weight: bold }
121+
.cols { max-width: 620px; font-size: 0; display: flex; justify-content: space-between }
122+
.cols-2 * { width: 49% }
123+
.cols-3 * { width: 31% }
124+
.cols-4 * { width: 23% }
125+
</style>

public/code/resume.md.png

-3.81 KB
Loading

0 commit comments

Comments
 (0)