From 9dad67739ae88923638a5353514b79a2d3db408f Mon Sep 17 00:00:00 2001 From: Le Tan Date: Mon, 8 Jan 2018 19:58:19 +0800 Subject: [PATCH] refine styles --- src/resources/themes/v_moonlight/v_moonlight.css | 15 +++++++++------ src/resources/themes/v_pure/v_pure.css | 16 ++++++++++------ src/resources/themes/v_white/v_white.css | 15 +++++++++------ 3 files changed, 28 insertions(+), 18 deletions(-) diff --git a/src/resources/themes/v_moonlight/v_moonlight.css b/src/resources/themes/v_moonlight/v_moonlight.css index 2a77bb8b..7976c9e0 100644 --- a/src/resources/themes/v_moonlight/v_moonlight.css +++ b/src/resources/themes/v_moonlight/v_moonlight.css @@ -85,8 +85,7 @@ pre { code { font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New; - line-height: 1.5; - font-size: 14px; + font-size: 16px; color: #98C379; } @@ -96,17 +95,21 @@ pre code { padding: 0.5em; color: #98C379; background-color: #2C313A; + line-height: 1.5; } code.mathjax-code { - display: inherit; + display: block; overflow-x: inherit; - padding: inherit; + margin: 0; + padding: 0; color: inherit; background: inherit; - font-size: 100%; + font-style: normal; + font-weight: normal; + font-size: 16px; font-family: inherit; - line-height: inherit; + line-height: 24px; } aside { diff --git a/src/resources/themes/v_pure/v_pure.css b/src/resources/themes/v_pure/v_pure.css index aecc513b..4d2d2e06 100644 --- a/src/resources/themes/v_pure/v_pure.css +++ b/src/resources/themes/v_pure/v_pure.css @@ -85,8 +85,7 @@ pre { code { font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New; - line-height: 1.5; - font-size: 14px; + font-size: 16px; color: #8E24AA; } @@ -96,17 +95,22 @@ pre code { padding: 0.5em; color: #363636; background-color: #E0E0E0; + line-height: 1.5; } +/* Should reference the style of P. */ code.mathjax-code { - display: inherit; + display: block; overflow-x: inherit; - padding: inherit; + margin: 0; + padding: 0; color: inherit; background: inherit; - font-size: 100%; + font-style: normal; + font-weight: normal; + font-size: 16px; font-family: inherit; - line-height: inherit; + line-height: 24px; } aside { diff --git a/src/resources/themes/v_white/v_white.css b/src/resources/themes/v_white/v_white.css index 0d030f47..37d0d9eb 100644 --- a/src/resources/themes/v_white/v_white.css +++ b/src/resources/themes/v_white/v_white.css @@ -84,8 +84,7 @@ pre { code { font-family: Consolas, Monaco, Andale Mono, Monospace, Courier New; - line-height: 1.5; - font-size: 14px; + font-size: 16px; color: #8E24AA; } @@ -95,17 +94,21 @@ pre code { padding: 0.5em; color: #363636; background-color: #E0E0E0; + line-height: 1.5; } code.mathjax-code { - display: inherit; + display: block; overflow-x: inherit; - padding: inherit; + margin: 0; + padding: 0; color: inherit; background: inherit; - font-size: 100%; + font-style: normal; + font-weight: normal; + font-size: 16px; font-family: inherit; - line-height: inherit; + line-height: 24px; } aside {