The theme is under construction, please let us know any bugs you see in the meantime.
The theme is under construction, please let us know any bugs you see in the meantime.

Açılır / Kapanır (Collapsible) Kategoriler

cakal

Yönetici
8h3SqbT.gif

NASIL YAPIYORUZ:

1- ) Şablon "node_list_category " aşağıdaki kod değişikliklerini yapıyoruz.

a-) BUL :

Kod:
<div class="block block--category block--category{$node.node_id}">

DEĞİŞTİR:

Kod:
<div class="block block--category block--category{$node.node_id} collapsible-nodes">

b-) BUL :

Kod:
<h2 class="block-header">

ALTINA ILAVE ET:

Kod:
<div class="block-header--left">

c-) BUL :

Kod:
<xf:if is="{$node.description}"><span class="block-desc">{$node.description|raw}</span></xf:if>

SONUNA EKLE:

Kod:
</div>

d-) BUL :

Kod:
</h2>

ÜSTÜNE EKLE:

Kod:
<span id="collapse-{$node.node_id}" class="collapseTrigger collapseTrigger--block is-active" data-xf-click="toggle" data-xf-init="toggle-storage" data-target=".block--category{$node.node_id} .block-body" data-storage-key="_node-{$node.node_id}"></span>

e-) BUL :

Kod:
<div class="block-body">

DEĞİŞTİR:

Kod:
<div class="block-body block-body--collapsible is-active">

2- ) Şablon "extra.less " aşağıdaki kodu ilave ediyoruz.

CSS:
/* Node Collapse */
.block--category
{
    .collapseTrigger
    {
        opacity: 0.5;
        transition: opacity 0.3s;
        margin-right: 10px;
        &.is-active:before
        {
            content: "\f205";
            transform: scale(-1, 1);
            margin-right: -8px;
        }
        &:before
        {
            content: "\f205";
            font-size: 80%;
        }
    }
    .block-container:hover .collapseTrigger
    {
        opacity: 1;
    }
}

.collapsible-nodes
{
        .block-header
        {
            display: flex;
        }
        .block-header--left
        {
            margin-right: auto;
            max-width: 100%;
        }
}
 

Notice

According to Article 8 of Law No. 5651 and Article 125 of the Turkish Republic Law, all our members are responsible for their posts. Content that you think is against the law and legislation FROM HERE You can report. I will try to get back to you as soon as possible.
Geri
Üst