diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-25 07:46:53 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2024-02-25 07:46:53 +0000 |
commit | f6bbb7953ff19c195a0bd9d0457f65f56a45d86a (patch) | |
tree | f529103499723aab8c9e0d45984bc3e559f15970 | |
parent | 5ab33f376d94f0e81971ad83b790bcbf8b51443a (diff) | |
download | pmwiki.svn-f6bbb7953ff19c195a0bd9d0457f65f56a45d86a.tar.bz2 |
Dark theme colors for PmSyntax: only apply on screen.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4661 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r-- | pub/guiedit/pmwiki.syntax.css | 102 | ||||
-rw-r--r-- | pub/skins/pmwiki-responsive/skin.css | 4 |
2 files changed, 56 insertions, 50 deletions
diff --git a/pub/guiedit/pmwiki.syntax.css b/pub/guiedit/pmwiki.syntax.css index 9821e544..ce1346ab 100644 --- a/pub/guiedit/pmwiki.syntax.css +++ b/pub/guiedit/pmwiki.syntax.css @@ -80,73 +80,75 @@ --pmsyntax-caretcolor: #f00; } -html.pmDarkTheme { - /* base text color and background */ - --pmsyntax-color: inherit; - --pmsyntax-bgcolor: inherit; +@media screen { + html.pmDarkTheme { + /* base text color and background */ + --pmsyntax-color: inherit; + --pmsyntax-bgcolor: inherit; - /* [=Escaped text=], not processed by PmWiki */ - --pmsyntax-escaped: rgba(255, 255, 255, .7); - --pmsyntax-escapedbg: rgba(255, 255, 255, .07); + /* [=Escaped text=], not processed by PmWiki */ + --pmsyntax-escaped: rgba(255, 255, 255, .7); + --pmsyntax-escapedbg: rgba(255, 255, 255, .07); - /* (:comment text:)*/ - --pmsyntax-comment: #a6a6a6; + /* (:comment text:)*/ + --pmsyntax-comment: #a6a6a6; - /* core meta directives and wikistyles */ - --pmsyntax-meta: #6db6db; - --pmsyntax-metabg: #0e1b1b; + /* core meta directives and wikistyles */ + --pmsyntax-meta: #6db6db; + --pmsyntax-metabg: #0e1b1b; - /* other core and custom directives */ - --pmsyntax-directive: #ddd; - --pmsyntax-directivebg: #222; + /* other core and custom directives */ + --pmsyntax-directive: #ddd; + --pmsyntax-directivebg: #222; - /* markup expressions */ - --pmsyntax-mx: #8dc051; - --pmsyntax-mxbg: #0f2b13; + /* markup expressions */ + --pmsyntax-mx: #8dc051; + --pmsyntax-mxbg: #0f2b13; - /* !! Headings */ - --pmsyntax-heading: #ffa888; - --pmsyntax-headingbg: #43322d; + /* !! Headings */ + --pmsyntax-heading: #ffa888; + --pmsyntax-headingbg: #43322d; - /* list items, line breaks, indents */ - --pmsyntax-bullet: #8dc051; - --pmsyntax-bulletbg: #0f2b13; + /* list items, line breaks, indents */ + --pmsyntax-bullet: #8dc051; + --pmsyntax-bulletbg: #0f2b13; - /* simple tables */ - --pmsyntax-table: #8dc051; - --pmsyntax-tablebg: #0f2b13; + /* simple tables */ + --pmsyntax-table: #8dc051; + --pmsyntax-tablebg: #0f2b13; - /* inline punctuation like '''bold''' */ - --pmsyntax-punct: #ff906b; + /* inline punctuation like '''bold''' */ + --pmsyntax-punct: #ff906b; - /* i18n strings like $[Edit] or entities like */ - --pmsyntax-string: #ffa888; + /* i18n strings like $[Edit] or entities like */ + --pmsyntax-string: #ffa888; - /* attributes and values in directives and wikistyles */ - --pmsyntax-attr: #e05e00; - --pmsyntax-value: #ff906b; + /* attributes and values in directives and wikistyles */ + --pmsyntax-attr: #e05e00; + --pmsyntax-value: #ff906b; - /* page (text) variables, template variables, like {*$:Summary} */ - --pmsyntax-var: #ff5415; - - /* keyword in forms, templates, conditionals */ - --pmsyntax-keyword: #f8f; + /* page (text) variables, template variables, like {*$:Summary} */ + --pmsyntax-var: #ff5415; + + /* keyword in forms, templates, conditionals */ + --pmsyntax-keyword: #f8f; - /* Link URLs, InterMap links */ - --pmsyntax-url: #74b0e7; + /* Link URLs, InterMap links */ + --pmsyntax-url: #74b0e7; - /* textarea of the edit form, and highlighted block under it */ - --pmsyntax-border: 1px inset #5c5c5c; - --pmsyntax-radpad: 3px; - --pmsyntax-fontfamily: monospace; + /* textarea of the edit form, and highlighted block under it */ + --pmsyntax-border: 1px inset #5c5c5c; + --pmsyntax-radpad: 3px; + --pmsyntax-fontfamily: monospace; - --pmsyntax-fontsize: .93333em; - --pmsyntax-fontsize-editform: 14px; - --pmsyntax-lineheight: 1.3; + --pmsyntax-fontsize: .93333em; + --pmsyntax-fontsize-editform: 14px; + --pmsyntax-lineheight: 1.3; - /* color of the blinking cursor in the textarea */ - --pmsyntax-caretcolor: #ff4727; + /* color of the blinking cursor in the textarea */ + --pmsyntax-caretcolor: #ff4727; + } } pre.pmhlt, .pmhlt pre, diff --git a/pub/skins/pmwiki-responsive/skin.css b/pub/skins/pmwiki-responsive/skin.css index 72047b41..be93fc6f 100644 --- a/pub/skins/pmwiki-responsive/skin.css +++ b/pub/skins/pmwiki-responsive/skin.css @@ -590,6 +590,10 @@ table.sortable th.dir-d::after { to { opacity: 1; } } +.onlyDarkTheme { + display: none; +} + @media screen { html.pmDarkTheme { --pm-color: #ddd; |