Некодим логотипНекодим
МодификацииПубликацииНекодИИмЦены
Некодим логотипНекодим

© 2020-2026 Некодим

Готовые модификации для вашего сайта. Улучшайте функциональность и дизайн без программирования.

Компания

  • Контакты
  • Публичная оферта
  • Политика конфиденциальности
  • Согласие на обработку данных
  • Лицензионное соглашение
  • Реферальная программа

Полезное

  • Модификации
  • Публикации
  • Каталог блоков Tilda
  • MCP для агентов
  • Журнал изменений
  • Доска почёта

Личный кабинет

  • Вход
  • Регистрация
  • Цены
Журнал измененийИстория GitФайлыTilda MCP
Каталог файлов

tilda-members-init.js

Код файла
Версия от 04.12.2026, 04:03:52 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
1601		}1602 1603		textStyle += '}';1604	}1605 1606	// Стили для текста1607	if (fonts.textcolor || fonts.textfontsize || fonts.textfontweight) {1608		textStyle += ' [data-field="tlk-text"] {';1609 1610		if (fonts.textcolor) {1611			textStyle += 'color: ' + fonts.textcolor + ';';1612		}
История файла и сравнение версий
  • 04.12.2026, 04:03:52 · 56c3b845
1613
1614 if (fonts.textfontsize) {
1615 textStyle += 'font-size: ' + fonts.textfontsize + 'px;';
1616 }
1617
1618 if (!fonts.textfontweight) {
1619 textStyle += 'font-weight: 300;';
1620 } else {
1621 textStyle += 'font-weight: ' + fonts.textfontweight + ';';
1622 }
1623
1624 textStyle += '}';
1625 }
1626
1627 if (fonts.textfont) {
1628 if (!isPage) {
1629 textStyle += ' body {';
1630
1631 var isSimplifiedVersion = tma__sign__isSimplifiedVersion();
1632
1633 // Не устанавливаем цвет фона из настроек сайта при открытии блока в попапе
1634 if (fonts.bgcolor && !isSimplifiedVersion) {
1635 textStyle += 'background-color: ' + fonts.bgcolor + ';';
1636 }
1637 textStyle += 'font-family: "' + fonts.textfont + '", ' + defaultFontFamily + ';';
1638 textStyle += '}';
1639 }
1640 textStyle += ' .tlk-userbar, .tlk-userbar__popup, .tlk-menu, .tlk-popup, .tlk-switcher {';
1641 textStyle += 'font-family: "' + fonts.textfont + '", ' + defaultFontFamily + ' !important;';
1642 textStyle += '}';
1643 }
1644
1645 // Стили для ссылок
1646 if (fonts.linkcolor || (fonts.linklineheight && fonts.linklinecolor)) {
1647 textStyle += ' #allrecords [data-field="tlk-link"],';
1648 textStyle += ' [data-field="tlk-link"] {';
1649
1650 if (fonts.linkcolor) {
1651 textStyle += 'color: ' + fonts.linkcolor + ';';
1652 }
1653
1654 if (fonts.linklineheight && fonts.linklinecolor) {
1655 var height = Number(fonts.linklineheight.replace(/\D/g, ''));
1656 var insetHeight = 1;
1657 var borderHeight = height - 1;
1658
1659 if (height <= 1) {
1660 borderHeight = 0;
1661 }
1662
1663 textStyle += 'border-bottom: ' + borderHeight + 'px solid ' + fonts.linklinecolor + ';';
1664 textStyle += 'box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolor + ';';
1665 textStyle += '-webkit-box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolor + ';';
1666 textStyle += '-moz-box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolor + ';';
1667 }
1668
1669 textStyle += 'transition: .3s ease;';
1670 textStyle += '}';
1671 }
1672
1673 if (fonts.linkcolor || fonts.linkcolorhover || (fonts.linklineheight && fonts.linklinecolorhover)) {
1674 textStyle += ' #allrecords [data-field="tlk-link"]:hover,';
1675 textStyle += ' [data-field="tlk-link"]:hover {';
1676
1677 if (fonts.linkcolorhover) {
1678 textStyle += 'color: ' + fonts.linkcolorhover + ';';
1679 } else if (fonts.linkcolor) {
1680 textStyle += 'color: ' + fonts.linkcolor + ';';
1681 }
1682
1683 if (fonts.linklineheight && fonts.linklinecolorhover) {
1684 var height = Number(fonts.linklineheight.replace(/\D/g, ''));
1685 var insetHeight = 1;
1686 var borderHeight = height - 1;
1687
1688 if (height <= 1) {
1689 borderHeight = 0;
1690 }
1691
1692 textStyle += 'border-bottom: ' + borderHeight + 'px solid ' + fonts.linklinecolorhover + ';';
1693 textStyle += 'box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolorhover + ';';
1694 textStyle +=
1695 '-webkit-box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolorhover + ';';
1696 textStyle += '-moz-box-shadow: inset 0px -' + insetHeight + 'px 0px 0px ' + fonts.linklinecolorhover + ';';
1697 }
1698
1699 textStyle += 'opacity: .7;';
1700 textStyle += '}';
Предыдущие 100 строкСледующие 100 строк