Merge branch 'dark-fix-dev' into 'dev'
fix for dark theme; includes one changes to bbcode.php and redbasic/css/style.css See merge request hubzilla/core!1442
This commit is contained in:
commit
4cbaddf4c4
@ -1021,7 +1021,7 @@ function bbcode($Text, $options = []) {
|
|||||||
}
|
}
|
||||||
// Check for colored text
|
// Check for colored text
|
||||||
if (strpos($Text,'[/hl]') !== false) {
|
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: $1;\">$2</span>", $Text);
|
$Text = preg_replace("(\[hl=(.*?)\](.*?)\[\/hl\])ism", "<span style=\"background-color: $1;\">$2</span>", $Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1803,3 +1803,9 @@ dl.bb-dl > dd > li {
|
|||||||
.hover-fx-show:hover .hover-fx-hide {
|
.hover-fx-show:hover .hover-fx-hide {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* default highlighted text if not specified by schema: */
|
||||||
|
span.default-highlight {
|
||||||
|
background-color: yellow;
|
||||||
|
padding: 2px 4px;
|
||||||
|
}
|
||||||
|
@ -322,20 +322,6 @@ a, a:visited, a:link, .fakelink, .fakelink:visited, .fakelink:link {
|
|||||||
.text-dark {
|
.text-dark {
|
||||||
color: #aaa !important;
|
color: #aaa !important;
|
||||||
}
|
}
|
||||||
a.text-dark:focus, a.text-dark:hover {
|
|
||||||
color: #ddd !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge-warning {
|
|
||||||
background-color: #ffc927;
|
|
||||||
}
|
|
||||||
.badge-warning a.text-dark {
|
|
||||||
color: #333 !important;
|
|
||||||
}
|
|
||||||
.badge-warning a.text-dark:focus, .badge-warning a.text-dark:hover {
|
|
||||||
color: red !important;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.group-selected, .fileas-selected, .categories-selected, .search-selected, a.active {
|
.group-selected, .fileas-selected, .categories-selected, .search-selected, a.active {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
@ -492,10 +478,25 @@ pre {
|
|||||||
background-color: #222;
|
background-color: #222;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* change color of [hl] tag: */
|
|
||||||
div.wall-item-body span /*strong:only-of-type */{
|
/* category badge fix: */
|
||||||
color: #1212b6;
|
a.text-dark:focus, a.text-dark:hover {
|
||||||
padding: 2px 3px;
|
color: #ddd !important;
|
||||||
/* font-weight: 500; */
|
}
|
||||||
white-space: nowrap;
|
|
||||||
|
.badge-warning {
|
||||||
|
/* background-color: #ffc927; */
|
||||||
|
}
|
||||||
|
.badge-warning a.text-dark {
|
||||||
|
color: #333 !important;
|
||||||
|
}
|
||||||
|
.badge-warning a.text-dark:focus, .badge-warning a.text-dark:hover {
|
||||||
|
color: red !important;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* fix color for highlithed text */
|
||||||
|
span.default-highlight {
|
||||||
|
color: #333;
|
||||||
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user