From a1fd40c2a7f199d93e5c9c9945101c6f5e833b57 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sat, 15 Sep 2018 16:55:48 +0800 Subject: [PATCH] mac mod font-size --- usr/library/wiki.js | 2 ++ usr/template/common/base.html | 2 +- usr/template/common/wiki.html | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/library/wiki.js b/usr/library/wiki.js index 4bf78fcd..f34335e6 100644 --- a/usr/library/wiki.js +++ b/usr/library/wiki.js @@ -54,6 +54,8 @@ function menu() { var head = document.getElementsByTagName(hs[i]); for (var j = 0; j < head.length; j++) { head[j].id = "head"+head[j].offsetTop; + head[j].onclick = function(event) { + } list.push({"level": hs[i], "position": head[j].offsetTop, "title": head[j].innerText, "hash": head[j].id}) if (head[j].offsetTop > max) { max = head[j].offsetTop; diff --git a/usr/template/common/base.html b/usr/template/common/base.html index bfd96a76..40b5703c 100644 --- a/usr/template/common/base.html +++ b/usr/template/common/base.html @@ -23,7 +23,7 @@ } pre { color:white; - font-size:13px; + font-size:14px; background-color:#272822; padding:5px; border:solid 2px green; diff --git a/usr/template/common/wiki.html b/usr/template/common/wiki.html index 4d37b375..7d77c706 100644 --- a/usr/template/common/wiki.html +++ b/usr/template/common/wiki.html @@ -151,9 +151,8 @@ p { } .number1 { color:#271ace; - font-size:13px; + font-size:14px; font-family:monospace; - line-height:15px; background-color:#77b724; padding:5px; border:solid 2px green;