diff --git a/extensions/markdown/extend.php b/extensions/markdown/extend.php index bf29dc91e..f9de9d290 100644 --- a/extensions/markdown/extend.php +++ b/extensions/markdown/extend.php @@ -12,10 +12,12 @@ use s9e\TextFormatter\Configurator; return [ (new Extend\Frontend('forum')) - ->js(__DIR__.'/js/dist/forum.js'), + ->js(__DIR__.'/js/dist/forum.js') + ->css(__DIR__.'/less/forum.less'), (new Extend\Formatter) ->configure(function (Configurator $config) { $config->Litedown; + $config->tags['ispoiler']->template = ''; }) ]; diff --git a/extensions/markdown/less/forum.less b/extensions/markdown/less/forum.less new file mode 100644 index 000000000..4467dbb35 --- /dev/null +++ b/extensions/markdown/less/forum.less @@ -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; + } +}