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

© 2020-2026 Некодим

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

Компания

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

Полезное

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

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

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

tilda-members-resources-pageslist.js

Код файла
Версия от 08.10.2026, 07:01:09 МСК
Оригинал на CDNСнимок 56c3b845Полный текст
501 502	if (mainPage.backgroundColor || mainPage.backgroundImage) {503		textStyle += '#app {\n';504 505		if (mainPage.backgroundColor && !mainPage.backgroundImage) {506			textStyle +=507				'    background-color: rgba(' +508				tma__resources__hexToRgb(mainPage.backgroundColor).join(', ') +509				', ' +510				tma__resources__getOpacity(mainPage.backgroundColorOpacity) +511				');\n';512		}
История файла и сравнение версий
  • 08.10.2026, 07:01:09 · 56c3b845
513
514 if (mainPage.backgroundImage) {
515 textStyle += 'background-image: url(' + mainPage.backgroundImage + ');\n';
516 if (mainPage.useBackgroundPattern) {
517 textStyle += 'background-size: auto;\n';
518 textStyle += 'background-repeat: repeat;\n';
519 } else {
520 textStyle += 'background-position: center;\n';
521 textStyle += 'background-size: cover;\n';
522 textStyle += 'background-repeat: no-repeat;\n';
523 }
524 }
525
526 textStyle += '}\n';
527 }
528
529 if (mainPage.backgroundColor && mainPage.backgroundImage) {
530 textStyle += '.tlk-app-bg {\n';
531 textStyle +=
532 ' background-color: rgba(' +
533 tma__resources__hexToRgb(mainPage.backgroundColor).join(', ') +
534 ', ' +
535 tma__resources__getOpacity(mainPage.backgroundColorOpacity) +
536 ');\n';
537 textStyle += '}\n';
538 }
539
540 textStyle += '.tlk-resources__wrap {\n';
541 textStyle += ' min-height: 100%;\n';
542 textStyle += ' padding: 60px;\n';
543
544 if (mainPage.boxBackgroundColor || mainPage.boxBackgroundColorOpacity) {
545 var boxBackgroundColor = mainPage.boxBackgroundColor
546 ? tma__resources__hexToRgb(mainPage.boxBackgroundColor).join(', ')
547 : '255, 255, 255';
548
549 textStyle +=
550 ' background-color: rgba(' +
551 boxBackgroundColor +
552 ', ' +
553 tma__resources__getOpacity(mainPage.boxBackgroundColorOpacity) +
554 ');\n';
555 }
556
557 if (mainPage.boxRadius) {
558 textStyle += ' border-radius: ' + mainPage.boxRadius + ';\n';
559 }
560
561 if (mainPage.boxShadowColor || mainPage.boxShadowOpacity) {
562 var boxShadowColor = mainPage.boxShadowColor
563 ? tma__resources__hexToRgb(mainPage.boxShadowColor).join(', ')
564 : '255, 255, 255';
565 var boxShadowColorOpacity = tma__resources__getOpacity(mainPage.boxShadowOpacity);
566
567 textStyle +=
568 ' -webkit-box-shadow: 0 0 10px 0 rgba(' + boxShadowColor + ', ' + boxShadowColorOpacity + ');\n';
569 textStyle += ' box-shadow: 0 0 10px 0 rgba(' + boxShadowColor + ', ' + boxShadowColorOpacity + ');\n';
570 textStyle += ' -webkit-box-sizing: border-box;\n';
571 }
572
573 if (mainPage.textAlign === 'center') {
574 textStyle += ' text-align: center;\n';
575 } else if (mainPage.textAlign === 'right') {
576 textStyle += ' text-align: right;\n';
577 }
578
579 if (mainPage.textSize) {
580 textStyle += ' font-size: ' + mainPage.textSize + ';\n';
581 }
582
583 textStyle += '}\n';
584
585 if (mainPage.textSizeMobile) {
586 textStyle += '@media screen and (max-width: 767px) {\n';
587 textStyle += ' .tlk-resources__wrap {\n';
588 textStyle += ' font-size: ' + mainPage.textSizeMobile + ';\n';
589 textStyle += ' }\n';
590 textStyle += '}\n';
591 }
592
593 if (mainPage.textColor) {
594 textStyle +=
595 '#allrecords [data-field="tlk-link"], [data-field="tlk-link"], .tlk-resources__title, .tlk-resources__empty-text {\n';
596 textStyle += ' color: ' + mainPage.textColor + ';\n';
597 textStyle += '}\n';
598 textStyle += '.tlk-resources__title span {\n';
599 textStyle += ' color: rgba(' + tma__resources__hexToRgb(mainPage.textColor).join(', ') + ', 0.6);\n';
600 textStyle += '}\n';
Предыдущие 100 строкСледующие 100 строк