Каталог файловtilda-members-store-other.js
1501 textStyle += `font-size: ${mainPage.textSize};\n`;1502 }1503 1504 if (mainPage.backgroundImage) {1505 textStyle += `background-image: url(${mainPage.backgroundImage});\n`;1506 if (mainPage.useBackgroundPattern) {1507 textStyle += 'background-size: auto;\n';1508 textStyle += 'background-repeat: repeat;\n';1509 } else {1510 textStyle += 'background-position: center;\n';1511 textStyle += 'background-size: cover;\n';1512
История файла и сравнение версий
textStyle += 'background-repeat: no-repeat;\n';
1519 if (mainPage.backgroundColor && mainPage.backgroundImage) { 1520 textStyle += '.tlk-app-bg {\n'; 1521 textStyle += ` background-color: rgba(${tmst__hexToRgb(mainPage.backgroundColor).join(', ')}, ${tma__getOpacity(mainPage.backgroundColorOpacity)});\n`; 1525 textStyle += '.tlk-resources__wrap, \n'; 1526 textStyle += '.tmst-orders-list__item, \n'; 1527 textStyle += '.tmst-addresses__card, \n'; 1528 textStyle += '.tmst-purchased__product, \n'; 1529 textStyle += '.tmst-order-details__main-info-content, .tmst-order-details__header, \n'; 1530 textStyle += '.tmst-profile-content-wrapper, \n'; 1531 textStyle += '.tmst-main__card:not(.tmst-main__active-orders-card) {\n'; 1533 if (mainPage.boxBackgroundColor || mainPage.boxBackgroundColorOpacity) { 1534 const boxBackgroundColor = mainPage.boxBackgroundColor 1535 ? tmst__hexToRgb(mainPage.boxBackgroundColor).join(', ') 1538 textStyle += ` background-color: rgba(${boxBackgroundColor}, ${tma__getOpacity(mainPage.boxBackgroundColorOpacity)});\n`; 1541 if (mainPage.boxRadius) { 1542 textStyle += ` border-radius: ${mainPage.boxRadius};\n`; 1545 if (mainPage.boxShadowColor || mainPage.boxShadowOpacity) { 1546 const boxShadowColor = mainPage.boxShadowColor 1547 ? tmst__hexToRgb(mainPage.boxShadowColor).join(', ') 1549 const boxShadowColorOpacity = tma__getOpacity(mainPage.boxShadowOpacity); 1550 const rgbaColor = `rgba(${boxShadowColor}, ${boxShadowColorOpacity})`; 1552 textStyle += ` border: 1px solid ${rgbaColor};\n`; 1555 if (mainPage.textAlign === 'center') { 1556 textStyle += ' text-align: center;\n'; 1557 } else if (mainPage.textAlign === 'right') { 1558 textStyle += ' text-align: right;\n'; 1561 if (mainPage.textSize) { 1562 textStyle += ` font-size: ${mainPage.textSize};\n`; 1567 if (mainPage.textSizeMobile) { 1568 textStyle += '@media screen and (max-width: 767px) {\n'; 1569 textStyle += ' .tlk-resources__wrap {\n'; 1570 textStyle += ` font-size: ${mainPage.textSizeMobile};\n`; 1571 textStyle += ' }\n'; 1575 if (mainPage.textColor) { 1577 '#allrecords, #allrecords [data-field="tlk-link"], [data-field="tlk-link"], .tlk-resources__title, .tlk-resources__empty-text {\n'; 1578 textStyle += ` color: ${mainPage.textColor};\n`; 1580 textStyle += '.tlk-resources__title span {\n'; 1581 textStyle += ` color: rgba(${tmst__hexToRgb(mainPage.textColor).join(', ')}, 0.6);\n`; 1583 textStyle += '.tlk-resources__empty-image line, .tlk-resources__empty-image polyline {\n'; 1584 textStyle += ` stroke: ${mainPage.textColor};\n`; 1588 if (mainPage.textHoverColor) { 1589 textStyle += '#allrecords [data-field="tlk-link"]:hover, [data-field="tlk-link"]:hover {\n'; 1590 textStyle += ` color: ${mainPage.textHoverColor};\n`; 1594 document.head.insertAdjacentHTML( 1596 `<style id="tlk-pagelist-style" type="text/css">${textStyle}</style>`