Jump to content
  • Sign in to follow this  

    Спойлер в IPS Community Suite 4


    Silence

    Спойлер в IPS Community Suite 4

    Перейти ACP - Customization -> Toolbars и нажмите на кнопку Add Button -> Custom:

    1.png

    Заполните поля:

    Button Title:  spoiler

    Icon:  загрузить изображение

    выбирать: Block

    Use option?: включить

    HTML:

    Спойлер
    
    <div><input type="checkbox" id="spoiler2" />
    <label for="spoiler2">Spoiler</label>
    <div class="spoiler">{option}</div>
    <style>
    input[id^="spoiler"] {
      display: none;
    }
    
    input[id^="spoiler"] + label {
      display: block;
      width: 200px;
      margin:  auto;
      padding: 5px 20px;
      background: #607D8B;
      color: #fff;
      text-align: center;
      font-size: 24px;
      border-radius: 2px;
      cursor: pointer;
      transition: all .6s;
    }
    
    input[id^="spoiler"]:checked + label {
      color: #333;
      background: #ccc;
    }
    
    input[id^="spoiler"] ~ .spoiler {
      width: 90%;
      height: ;
      overflow: hidden;
      opacity: ;
      margin: 10px auto ;
      padding: 10px;
      background: #eee;
      border: 1px solid #ccc;
      border-radius: 2px;
      transition: all .6s;
    }
    
    input[id^="spoiler"]:checked + label + .spoiler {
      height: auto;
      opacity: 1;
      padding: 10px;
    }
    </style></div>

     

    Сохранить

    4.png

    11.png

    12.png

    14.png

    Sign in to follow this  


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Ваша ссылка была автоматически строена.   Отображать как обычную ссылку

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    Loading...

×
×
  • Create New...