Каталог файловtilda-catalog-1.1.js
5501 * @param {string} recid - ID записи5502 * @param {TildaStoreOptions} options - Объект настроек5503 */5504function t_store_setProductCharacteristicsStyles(snippetContainer, recid, options) {5505 const productCharacteristics = snippetContainer.querySelector('.js-store-prod-all-charcs');5506 if (!productCharacteristics || !options.characteristics_typo) return;5507 5508 t_store_parseTypoStylesConfig(5509 recid,5510 '.t-typography__characteristics',5511 options.characteristics_typo,
История файла и сравнение версий
'js-store-characteristics-typo-styles-' + recid
5517 * Устанавливает стили для бренда товара в сниппете 5518 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5519 * @param {string} recid - ID записи 5520 * @param {TildaStoreOptions} options - Объект настроек 5522function t_store_setProductBrandStyles(snippetContainer, recid, options) { 5523 const productBrand = snippetContainer.querySelector('.js-product-brand'); 5524 if (!productBrand || !options.sku_typo) return; 5526 t_store_parseTypoStylesConfig( 5528 '.t-store__prod-popup__brand', 5530 'js-store-brand-typo-styles-' + recid 5535 * Устанавливает стили для артикула товара в сниппете 5536 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5537 * @param {string} recid - ID записи 5538 * @param {TildaStoreOptions} options - Объект настроек 5540function t_store_setProductSkuStyles(snippetContainer, recid, options) { 5541 const productSku = snippetContainer.querySelector('.js-store-prod-sku'); 5542 if (!productSku || !options.sku_typo) return; 5544 t_store_parseTypoStylesConfig( 5546 '.t-store__prod-popup__sku', 5548 'js-store-sku-typo-styles-' + recid 5553 * Устанавливает стили для табов товара в сниппете 5554 * @param {HTMLElement} snippetContainer - Контейнер сниппета товара 5555 * @param {string} recid - ID записи 5556 * @param {TildaStoreOptions} options - Объект настроек 5558function t_store_setProductTabsStyles(snippetContainer, recid, options) { 5559 const tabsContainer = snippetContainer.querySelector('.js-store-tabs'); 5560 if (!tabsContainer) return; 5562 if (options.title_typo) { 5563 t_store_parseTypoStylesConfig( 5565 '.t-store__tabs__button-title, .t-store__tabs__item-title', 5567 'js-store-tabs-typo-title-styles-' + recid, 5574 if (options.descr_typo) { 5575 t_store_parseTypoStylesConfig( 5577 '.t-store__tabs__content', 5579 'js-store-tabs-typo-content-styles-' + recid, 5587 const titleTypo = options.title_typo ? JSON.parse(options.title_typo) : null; 5588 const color = titleTypo?.color; 5589 const colorRgb = color ? t_store_hexToRgb(color) : null; 5593 #rec${recid} .t-store__tabs__button { 5594 border-bottom: 1px solid rgba(${colorRgb.join(',')}, 0.3); 5596 #rec${recid} .t-store__tabs__button_active, 5597 #rec${recid} .t-store__tabs__button:hover { 5598 border-bottom: 1px solid rgba(${colorRgb.join(',')}, 1.0); 5600 #rec${recid} .t-store__tabs__item-button {