diff options
author | phani00 <phani00@gmail.com> | 2018-12-17 15:28:15 +0000 |
---|---|---|
committer | phani00 <phani00@gmail.com> | 2018-12-17 15:28:15 +0000 |
commit | aace8a14cee2f173b7a11bb2bfcbcebbe0084863 (patch) | |
tree | 201f08adbec03f2736c2a56d9ae9a2ac6c6602c2 /include | |
parent | d80b8ff30fd1bbd6d02e685bdfac4c5bcded9fa8 (diff) | |
download | volse-hubzilla-aace8a14cee2f173b7a11bb2bfcbcebbe0084863.tar.gz volse-hubzilla-aace8a14cee2f173b7a11bb2bfcbcebbe0084863.tar.bz2 volse-hubzilla-aace8a14cee2f173b7a11bb2bfcbcebbe0084863.zip |
new fix for dark theme
change implementation of hl-tags in include/bbcode.php
insert class='default-highlight' instead of background-color: 'yellow' into span
add span.default-highlight definition to view/theme/redbasic/css/style.css
this works for all schemas incl. dark.
Diffstat (limited to 'include')
-rw-r--r-- | include/bbcode.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index c5d6ef998..a0d41ccf0 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1021,7 +1021,8 @@ function bbcode($Text, $options = []) { } // Check for colored text if (strpos($Text,'[/hl]') !== false) { - $Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span style=\"background-color: yellow;\">$1</span>", $Text); + $Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span class=\"default-highlight\">$1</span>", $Text); +// $Text = preg_replace("(\[hl\](.*?)\[\/hl\])ism", "<span style=\"background-color: yellow;\">$1</span>", $Text); $Text = preg_replace("(\[hl=(.*?)\](.*?)\[\/hl\])ism", "<span style=\"background-color: $1;\">$2</span>", $Text); } |