import { applyPrefixFor, handleResponsiveSwitch, getPrefixFor } from '../../helpers' import { handleBackgroundOptionFor } from '../../variables/background' let prefix = getPrefixFor() export const getSingleElementsVariables = () => ({ // Autor Box [`${prefix}_single_author_box_spacing`]: { selector: applyPrefixFor('.author-box', prefix), variable: 'spacing', responsive: true, unit: '' }, [`${prefix}_single_author_box_background`]: { selector: applyPrefixFor('.author-box[data-type="type-1"]', prefix), variable: 'background-color', type: 'color' }, [`${prefix}_single_author_box_shadow`]: { selector: applyPrefixFor('.author-box[data-type="type-1"]', prefix), type: 'box-shadow', variable: 'box-shadow', responsive: true }, [`${prefix}_single_author_box_border`]: { selector: applyPrefixFor('.author-box[data-type="type-2"]', prefix), variable: 'border-color', type: 'color' }, // Share Box [`${prefix}_top_share_box_spacing`]: { selector: applyPrefixFor('.ct-share-box[data-location="top"]', prefix), variable: 'margin', responsive: true, unit: '' }, [`${prefix}_bottom_share_box_spacing`]: { selector: applyPrefixFor( '.ct-share-box[data-location="bottom"]', prefix ), variable: 'margin', responsive: true, unit: '' }, [`${prefix}_share_items_icon_color`]: [ { selector: applyPrefixFor( '.ct-share-box[data-type="type-1"]', prefix ), variable: 'linkInitialColor', type: 'color:default' }, { selector: applyPrefixFor( '.ct-share-box[data-type="type-1"]', prefix ), variable: 'linkHoverColor', type: 'color:hover' } ], [`${prefix}_share_items_border`]: { selector: applyPrefixFor('.ct-share-box[data-type="type-1"]', prefix), variable: 'border', type: 'border' }, [`${prefix}_share_items_icon`]: { selector: applyPrefixFor('.ct-share-box[data-type="type-2"]', prefix), variable: 'color', type: 'color' }, [`${prefix}_share_items_background`]: [ { selector: applyPrefixFor( '.ct-share-box[data-type="type-2"]', prefix ), variable: 'background-color', type: 'color:default' }, { selector: applyPrefixFor( '.ct-share-box[data-type="type-2"]', prefix ), variable: 'background-color-hover', type: 'color:hover' } ], // Related Posts [`${prefix}_related_visibility`]: [ handleResponsiveSwitch({ selector: applyPrefixFor('.ct-related-posts', prefix), on: 'grid' }), handleResponsiveSwitch({ selector: applyPrefixFor('.ct-related-posts-container', prefix), on: 'block' }) ], ...handleBackgroundOptionFor({ id: `${prefix}_related_posts_background`, selector: applyPrefixFor('.ct-related-posts-container', prefix) }), [`${prefix}_related_posts_container_spacing`]: { selector: applyPrefixFor('.ct-related-posts-container', prefix), variable: 'padding', responsive: true, unit: '' }, [`${prefix}_related_posts_label_color`]: { selector: applyPrefixFor('.ct-related-posts .ct-block-title', prefix), variable: 'headingColor', type: 'color:default' }, [`${prefix}_related_posts_link_color`]: [ { selector: applyPrefixFor('.related-entry-title', prefix), variable: 'color', type: 'color:default' }, { selector: applyPrefixFor('.related-entry-title', prefix), variable: 'colorHover', type: 'color:hover' } ], [`${prefix}_related_posts_meta_color`]: [ { selector: applyPrefixFor('.ct-related-posts .entry-meta', prefix), variable: 'color', type: 'color:default' }, { selector: applyPrefixFor('.ct-related-posts .entry-meta', prefix), variable: 'colorHover', type: 'color:hover' } ], [`${prefix}_related_thumb_radius`]: { selector: applyPrefixFor( '.ct-related-posts .ct-image-container', prefix ), type: 'spacing', variable: 'borderRadius', responsive: true }, [`${prefix}_related_narrow_width`]: { selector: applyPrefixFor('.ct-related-posts-container', prefix), variable: 'narrow-container-max-width', unit: 'px' }, // Posts Navigation [`${prefix}_post_nav_spacing`]: { selector: applyPrefixFor('.post-navigation', prefix), variable: 'margin', responsive: true, unit: '' }, [`${prefix}_posts_nav_font_color`]: [ { selector: applyPrefixFor('.post-navigation', prefix), variable: 'linkInitialColor', type: 'color:default' }, { selector: applyPrefixFor('.post-navigation', prefix), variable: 'linkHoverColor', type: 'color:hover' } ] })