Шаблон:Collapse: различия между версиями

Нет описания правки
Метка: отменено
Нет описания правки
 
(не показана 61 промежуточная версия этого же участника)
Строка 1: Строка 1:
<noinclude>
<includeonly>
{{Documentation}}
<div class="mw-collapsible mw-collapsed" style="width:100%; solid #aaa; margin-bottom:10px;">
</noinclude><includeonly>
  <div class="mw-collapsible-toggle" style="font-weight:bold; background:#f8f9fa; padding:5px;">
<div class="mw-collapsible mw-collapsed" style="width:100%; margin-top:0.5em; border:1px solid #aaa; padding:0.2em 0.4em; background-color:#f9f9f9;">
    {{{1|Заголовок}}} ▼  
<div class="mw-collapsible-toggle" style="font-weight:bold; cursor:pointer;">
  </div>
{{{1|Заголовок по умолчанию}}} ▼
  <div class="mw-collapsible-content" style="padding:10px;">
    {{{2|Содержимое}}}
  </div>
</div>
</div>
<div class="mw-collapsible-content" style="padding:0.5em 0 0 1em; margin-top:0.5em; border-top:1px solid #eee;">
<div style="clear: both;"></div>  
{{{2|Содержимое блока}}}
</div>
</div>
 
<style>
.mw-collapsible-toggle::before {
  content: "▼";
  display: inline-block;
  margin-right: 0.25em;
  transition: transform 0.2s;
}
.mw-collapsible.mw-collapsed .mw-collapsible-toggle::before {
  content: "▶";
}
</style>
</includeonly>
</includeonly>

Текущая версия от 22:17, 9 мая 2025