aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorphani00 <phani00@gmail.com>2018-12-17 15:28:15 +0000
committerMario <mario@mariovavti.com>2018-12-22 19:52:39 +0100
commit66b56416b6ad40a682395d26398535508ef79022 (patch)
tree111f562c69c40290a6c96abf1dc91b9a0d28aa74 /include
parentc85534635890dab0497977a5beb9aa17f4510821 (diff)
downloadvolse-hubzilla-66b56416b6ad40a682395d26398535508ef79022.tar.gz
volse-hubzilla-66b56416b6ad40a682395d26398535508ef79022.tar.bz2
volse-hubzilla-66b56416b6ad40a682395d26398535508ef79022.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. (cherry picked from commit aace8a14cee2f173b7a11bb2bfcbcebbe0084863)
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php3
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);
}