mirror of
https://github.com/flarum/core.git
synced 2025-07-31 13:40:20 +02:00
Merge pull request #13 from flarum/mk/2033-hide-mentions-spoilers
Hide mentions in inline spoilers
This commit is contained in:
@@ -12,10 +12,12 @@ use s9e\TextFormatter\Configurator;
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
(new Extend\Frontend('forum'))
|
(new Extend\Frontend('forum'))
|
||||||
->js(__DIR__.'/js/dist/forum.js'),
|
->js(__DIR__.'/js/dist/forum.js')
|
||||||
|
->css(__DIR__.'/less/forum.less'),
|
||||||
|
|
||||||
(new Extend\Formatter)
|
(new Extend\Formatter)
|
||||||
->configure(function (Configurator $config) {
|
->configure(function (Configurator $config) {
|
||||||
$config->Litedown;
|
$config->Litedown;
|
||||||
|
$config->tags['ispoiler']->template = '<span class="spoiler" data-s9e-livepreview-ignore-attrs="style" onclick="removeAttribute(\'style\'); removeAttribute(\'class\')" style="background:#444;color:transparent"><xsl:apply-templates/></span>';
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
14
extensions/markdown/less/forum.less
Normal file
14
extensions/markdown/less/forum.less
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of Flarum.
|
||||||
|
*
|
||||||
|
* For detailed copyright and license information, please view the
|
||||||
|
* LICENSE file that was distributed with this source code.
|
||||||
|
*/
|
||||||
|
|
||||||
|
.PostMention, .UserMention {
|
||||||
|
.spoiler & {
|
||||||
|
background: #444;
|
||||||
|
color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user