MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 39: | Line 39: | ||
}); | }); | ||
// 3. Cria o chevron | // 3. Cria o chevron (com margem à esquerda para dar o espaço correto) | ||
var $toggleBtn = $('<span class="atlas-toggle-btn" style="cursor:pointer; margin- | var $toggleBtn = $('<span class="atlas-toggle-btn" style="cursor:pointer; margin-left:8px; user-select:none; font-weight:bold; font-size:1.1em; color:#54595d;">›</span>'); | ||
// Injeta à | // Injeta DEPOIS do texto (à direita) | ||
$mainAtlasLi. | $mainAtlasLi.append($toggleBtn); | ||
// 4. Evento do clique | // 4. Evento do clique | ||
| Line 52: | Line 52: | ||
$('.atlas-submenu').toggleClass('is-open'); | $('.atlas-submenu').toggleClass('is-open'); | ||
if ($(this).text() === '›') { | if ($(this).text() === '›') { | ||
$(this).text('˅'); | $(this).text('˅'); | ||
} else { | } else { | ||
$(this).text('›'); | $(this).text('›'); | ||