mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Merge pull request #13 from flarum/mk/2033-hide-mentions-spoilers
Hide mentions in inline spoilers
This commit is contained in:
commit
17a9e1f0ab
|
@ -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 = '<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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user