Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Спойлер в профиле

Featured Replies

Posted

Как сделать спойлер в профиле что бы вот это можно было скрыть под него и при нажатии выскакивала вот эта информация?

Screenshot_2.png

HTML:

<input type="checkbox"  id="spoiler" /> 
<label for="spoiler">Ваш Текст</label>
<div class="spoiler">
  Ваш код
</div>

CSS:

input[id^="spoiler"] {
  display: none;
}

input[id^="spoiler"] + label {
  display: block;
  width: 150px;
  margin: 0 auto;
  padding: 5px 20px;
  background: #3c6994;
  color: #fff;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  transition: all .6s;
}

input[id^="spoiler"]:checked + label {
  color: #333;
  background: #ccc;
}

input[id^="spoiler"] ~ .spoiler {
  width: 90%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 10px auto 0;
  padding: 10px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all .6s;
}

input[id^="spoiler"]:checked + label + .spoiler {
  height: auto;
  opacity: 1;
  padding: 10px;
  width: 150px;
}

 

Silence, спасибо за вариант, но он работает криво на 4.1.17.

А именно, он создает спойлер, но при нажатии на него в поле пользователя, открывается спойлер пользователя первого поста на странице! И так на любом пользователе. 

Я хотел срятать поля, прописанные в   "CustomFieldsDisplay", они прячутся, но работает не так как нужно.

  • 2 месяца спустя...

Код кривой, нажимай на любой спойлер в теме любого пользователя, а открывается только первый, что делать-то???

29 минут назад, cubarich сказал:

Код кривой, нажимай на любой спойлер в теме любого пользователя, а открывается только первый, что делать-то???

Обратится к http://ipbmafia.ru/profile/34682-redneck/

или погуглите Spoiler for additional fields 1.0.0

 

ребят я все понимаю. Но неужели такая лень нынче у всех? Сложно найти код и стиль спойлера и вставить его в профиль? Подбить под себя стили7

17 минут назад, andros0789 сказал:

ребят я все понимаю. Но неужели такая лень нынче у всех? Сложно найти код и стиль спойлера и вставить его в профиль? Подбить под себя стили7

Не всем дано, для этого и существуют форумы поддержки. 

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
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.