MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 28: | Line 28: | ||
if ($mainAtlasLi.length && !$mainAtlasLi.find('.atlas-toggle-btn').length) { | if ($mainAtlasLi.length && !$mainAtlasLi.find('.atlas-toggle-btn').length) { | ||
$mainAtlasLi.css({ | $mainAtlasLi.css({ | ||
'display': 'flex', | 'display': 'flex', | ||
'align-items': 'center', | 'align-items': 'center', | ||
'justify-content': 'flex-start' | 'justify-content': 'flex-start' // Move tudo para a esquerda juntinho | ||
}); | }); | ||
// 3. Cria a seta colada ao texto | |||
var $toggleBtn = $('<span class="atlas-toggle-btn" style="cursor:pointer; margin-left:8px; user-select:none; font-weight:bold;">▶</span>'); | |||
$mainAtlasLi.append($toggleBtn); | |||
// 3. Cria a seta | |||
var $toggleBtn = $('<span class="atlas-toggle-btn" style="cursor:pointer; margin- | |||
$mainAtlasLi. | |||
// 4. Evento do clique | // 4. Evento do clique | ||