fix css issues in bbcode conversion and focus-light schema
This commit is contained in:
parent
d57cdf645e
commit
7bd60adfbe
@ -1198,24 +1198,24 @@ function bbcode($Text, $options = []) {
|
|||||||
// Images
|
// Images
|
||||||
// [img]pathtoimage[/img]
|
// [img]pathtoimage[/img]
|
||||||
if (strpos($Text,'[/img]') !== false) {
|
if (strpos($Text,'[/img]') !== false) {
|
||||||
$Text = preg_replace("/\[img\](.*?)\[\/img\]/ism", '<img style="max-width=100%;" src="$1" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[img\](.*?)\[\/img\]/ism", '<img style="max-width: 100%;" src="$1" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
if (strpos($Text,'[/zmg]') !== false) {
|
if (strpos($Text,'[/zmg]') !== false) {
|
||||||
$Text = preg_replace("/\[zmg\](.*?)\[\/zmg\]/ism", '<img class="zrl" style="max-width=100%;" src="$1" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[zmg\](.*?)\[\/zmg\]/ism", '<img class="zrl" style="max-width: 100%;" src="$1" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [img float={left, right}]pathtoimage[/img]
|
// [img float={left, right}]pathtoimage[/img]
|
||||||
if (strpos($Text,'[/img]') !== false) {
|
if (strpos($Text,'[/img]') !== false) {
|
||||||
$Text = preg_replace("/\[img float=left\](.*?)\[\/img\]/ism", '<img style="max-width=100%;" src="$1" style="float: left;" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[img float=left\](.*?)\[\/img\]/ism", '<img src="$1" style="max-width: 100%; float: left;" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
if (strpos($Text,'[/img]') !== false) {
|
if (strpos($Text,'[/img]') !== false) {
|
||||||
$Text = preg_replace("/\[img float=right\](.*?)\[\/img\]/ism", '<img style="max-width=100%;" src="$1" style="float: right;" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[img float=right\](.*?)\[\/img\]/ism", '<img src="$1" style="max-width: 100%; float: right;" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
if (strpos($Text,'[/zmg]') !== false) {
|
if (strpos($Text,'[/zmg]') !== false) {
|
||||||
$Text = preg_replace("/\[zmg float=left\](.*?)\[\/zmg\]/ism", '<img style="max-width=100%;" class="zrl" src="$1" style="float: left;" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[zmg float=left\](.*?)\[\/zmg\]/ism", '<img class="zrl" src="$1" style="max-width: 100%; float: left;" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
if (strpos($Text,'[/zmg]') !== false) {
|
if (strpos($Text,'[/zmg]') !== false) {
|
||||||
$Text = preg_replace("/\[zmg float=right\](.*?)\[\/zmg\]/ism", '<img style="max-width=100%;" class="zrl" src="$1" style="float: right;" alt="' . t('Image/photo') . '" />', $Text);
|
$Text = preg_replace("/\[zmg float=right\](.*?)\[\/zmg\]/ism", '<img class="zrl" src="$1" style="max-width: 100%; float: right;" alt="' . t('Image/photo') . '" />', $Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
// [img=widthxheight]pathtoimage[/img]
|
// [img=widthxheight]pathtoimage[/img]
|
||||||
|
@ -872,14 +872,9 @@ div.jGrowl div.jGrowl-notification {
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reshared-content img {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shared_header img {
|
.shared_header img {
|
||||||
border-radius: $radius;
|
border-radius: $radius;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
width: auto;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag1 {
|
.tag1 {
|
||||||
|
@ -3,10 +3,11 @@
|
|||||||
if (! $nav_bg)
|
if (! $nav_bg)
|
||||||
$nav_bg = "#f8f9fa";
|
$nav_bg = "#f8f9fa";
|
||||||
if (! $nav_icon_colour)
|
if (! $nav_icon_colour)
|
||||||
$nav_icon_colour = "rgba(0, 0, 0, 0.5);";
|
$nav_icon_colour = "rgba(0, 0, 0, 0.5)";
|
||||||
if (! $nav_active_icon_colour)
|
if (! $nav_active_icon_colour)
|
||||||
$nav_active_icon_colour = "rgba(0, 0, 0, 0.7)";
|
$nav_active_icon_colour = "rgba(0, 0, 0, 0.7)";
|
||||||
if (! $radius)
|
if (! $radius)
|
||||||
$radius = "4px";
|
$radius = "4px";
|
||||||
if (! $banner_colour)
|
if (! $banner_colour)
|
||||||
$banner_colour = "rgba(0, 0, 0, 0.7)";
|
$banner_colour = "rgba(0, 0, 0, 0.7)";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user