From a08b84d400c008bd7fe39786fa641f519cb05c8f Mon Sep 17 00:00:00 2001 From: Kenshin Date: Mon, 6 Feb 2017 14:09:19 +0800 Subject: [PATCH] Add theme flag. --- src/assets/css/theme_github.css | 5 +++-- src/assets/css/theme_gothic.css | 1 + src/assets/css/theme_newsprint.css | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/assets/css/theme_github.css b/src/assets/css/theme_github.css index 0df633d9..c95d6c02 100644 --- a/src/assets/css/theme_github.css +++ b/src/assets/css/theme_github.css @@ -1,3 +1,4 @@ +sr-rd-theme-github{} /** * Github style @@ -6,7 +7,7 @@ /** * Common style, include: h1 ~ h6; ol ul; code pre; table; sr-blockquote */ - + sr-rd-content h1,sr-rd-content h2,sr-rd-content h3,sr-rd-content h4,sr-rd-content h5,sr-rd-content h6{position:relative;margin-top:1em;margin-bottom:16px;font-weight:bold;line-height:1.4;text-align:left;color: #363636;}sr-rd-content h1{padding-bottom:.3em;font-size:2.25em;line-height:1.2}sr-rd-content h2{padding-bottom:.3em;font-size:1.75em;line-height:1.225}sr-rd-content h3{font-size:1.5em;line-height:1.43}sr-rd-content h4{font-size:1.25em}sr-rd-content h5{font-size:1em}sr-rd-content h6{font-size:1em;color:#777} sr-rd-content ul,sr-rd-content ol{list-style-type: disc;padding:0;margin-top:0;margin-bottom:0;margin-left: 3em;}sr-rd-content ol ol,sr-rd-content ul ol{list-style-type:lower-roman}sr-rd-content ul ul ol,sr-rd-content ul ol ol,sr-rd-content ol ul ol,sr-rd-content ol ol ol{list-style-type:lower-alpha} sr-rd-content code{padding:0;padding-top:.2em;padding-bottom:.2em;margin:0;font-size:85%;background-color:rgba(0,0,0,0.04);border-radius:3px}sr-rd-content code:before,sr-rd-content code:after{letter-spacing:-0.2em;content:"\00a0"}sr-rd-content pre>code{padding:0;margin:0;font-size:100%;word-break:normal;white-space:pre;background:transparent;border:0}sr-rd-content pre{padding:16px;overflow:auto;font-size:85%;line-height:1.45;background-color:#f7f7f7;border-radius:3px}sr-rd-content pre{margin-bottom:0;word-break:normal}sr-rd-content pre{word-wrap:normal}sr-rd-content pre code{display:inline;max-width:initial;padding:0;margin:0;overflow:initial;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}sr-rd-content pre code:before,sr-rd-content pre code:after{content:normal} @@ -98,4 +99,4 @@ sr-rd-content pre { color: #666; background: #f8f8f8; border: none; -} +} \ No newline at end of file diff --git a/src/assets/css/theme_gothic.css b/src/assets/css/theme_gothic.css index 89da4c3f..1216e686 100644 --- a/src/assets/css/theme_gothic.css +++ b/src/assets/css/theme_gothic.css @@ -1,3 +1,4 @@ +sr-rd-theme-gothic{} /** * Gothic style diff --git a/src/assets/css/theme_newsprint.css b/src/assets/css/theme_newsprint.css index 9e2a5c23..c8fafbe6 100644 --- a/src/assets/css/theme_newsprint.css +++ b/src/assets/css/theme_newsprint.css @@ -1,3 +1,4 @@ +sr-rd-theme-newsprint{} /** * Newsprint style