Body (Base) * ==================================================== */ foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = 'html, body'; $property = str_replace( '_', '-', $prop ); $add['body_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['body_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['body_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } // Drop cap $add['body_line_height'][] = array( 'type' => 'css', 'element' => 'p.has-drop-cap:not(:focus):first-letter', 'property' => 'font-size', 'pattern' => '$em', 'function' => array( 'name' => 'scale_dimensions', 'args' => array( 2 ), ), ); $add['body_text_color'] = array( array( 'type' => 'css', 'element' => 'html, body', 'property' => 'color', ), array( 'type' => 'css', 'element' => '.nav-links a, .tagcloud a, .reply', 'property' => 'color', ), ); $add['link_text_color'] = array( array( 'type' => 'css', 'element' => 'a, .suki-toggle', 'property' => 'color', ), array( 'type' => 'css', 'element' => '.nav-links a:hover, .nav-links a:focus, .tagcloud a:hover, .tagcloud a:focus, .reply:hover, .reply:focus', 'property' => 'color', ), array( 'type' => 'css', 'element' => '::selection', 'property' => 'background-color', ), ); $add['link_hover_text_color'] = array( array( 'type' => 'css', 'element' => 'a:hover, a:focus, .suki-toggle:hover, .suki-toggle:focus', 'property' => 'color', ), ); $add['subtle_color'] = array( array( 'type' => 'css', 'element' => 'pre, code, .page-header, .tagcloud a', 'property' => 'background-color', ), ); $add['border_color'] = array( array( 'type' => 'css', 'element' => '*', 'property' => 'border-color', ), ); /** * ==================================================== * General Elements > Headings * ==================================================== */ for ( $i = 1; $i <= 4; $i++ ) { foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = 'h' . $i . ', .h' . $i; $property = str_replace( '_', '-', $prop ); if ( 1 === $i ) { $element .= ', .entry-title, .page-title'; } if ( 3 === $i ) { $element .= ', legend, .entry-small-title, .comments-title, .comment-reply-title, .page-header .page-title'; } $add['h' . $i . '_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['h' . $i . '_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['h' . $i . '_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } } $add['heading_text_color'] = array( array( 'type' => 'css', 'element' => 'h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6, h1 a, .h1 a, h2 a, .h2 a, h3 a, .h3 a, h4 a, .h4 a, h5 a, .h5 a, h6 a, .h6 a, .comment-author a, .entry-author-name, .entry-author-name a', 'property' => 'color', ), ); $add['heading_hover_text_color'] = array( array( 'type' => 'css', 'element' => 'h1 a:hover, h1 a:focus, .h1 a:hover, .h1 a:focus, h2 a:hover, h2 a:focus, .h2 a:hover, .h2 a:focus, h3 a:hover, h3 a:focus, .h3 a:hover, .h3 a:focus, h4 a:hover, h4 a:focus, .h4 a:hover, .h4 a:focus, h5 a:hover, h5 a:focus, .h5 a:hover, .h5 a:focus, h6 a:hover, h6 a:focus, .h6 a:hover, .h6 a:focus, .comment-author a:hover, .comment-author a:focus, .entry-author-name a:hover, .entry-author-name a:focus', 'property' => 'color', ), ); /** * ==================================================== * General Elements > Blockquote * ==================================================== */ foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = 'blockquote'; $property = str_replace( '_', '-', $prop ); $add['blockquote_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['blockquote_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['blockquote_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } /** * ==================================================== * General Elements > Button * ==================================================== */ $add['button_padding'] = array( array( 'type' => 'css', 'element' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, a.button, a.wp-block-button__link', 'property' => 'padding', ), ); $add['button_border'] = array( array( 'type' => 'css', 'element' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, a.button, a.wp-block-button__link', 'property' => 'border-width', ), ); $add['button_border_radius'] = array( array( 'type' => 'css', 'element' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, a.button, a.wp-block-button__link', 'property' => 'border-radius', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'letter_spacing' ) as $prop ) { $element = 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, a.button, a.wp-block-button__link'; $property = str_replace( '_', '-', $prop ); $add['button_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); } foreach ( array( 'bg' => 'background-color', 'border' => 'border-color', 'text' => 'color' ) as $key => $prop ) { $add['button_' . $key . '_color'] = array( array( 'type' => 'css', 'element' => 'button, input[type="button"], input[type="reset"], input[type="submit"], .button, a.button, a.wp-block-button__link', 'property' => $prop, ), ); } foreach ( array( 'bg' => 'background-color', 'border' => 'border-color', 'text' => 'color' ) as $key => $prop ) { $add['button_hover_' . $key . '_color'] = array( array( 'type' => 'css', 'element' => 'button:hover, button:focus, input[type="button"]:hover, input[type="button"]:focus, input[type="reset"]:hover, input[type="reset"]:focus, input[type="submit"]:hover, input[type="submit"]:focus, .button:hover, .button:focus, a.button:hover, a.button:focus, a.wp-block-button__link:hover, a.wp-block-button__link:focus', 'property' => $prop, ), ); } /** * ==================================================== * General Elements > Form Input * ==================================================== */ $add['input_padding'] = array( array( 'type' => 'css', 'element' => 'input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea, .select2-container .select2-selection, .select2-container .select2-dropdown .select2-search, .select2-container .select2-dropdown .select2-results .select2-results__option', 'property' => 'padding', ), ); $add['input_border'] = array( array( 'type' => 'css', 'element' => 'input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea, .select2-container .select2-selection, .select2-container .select2-dropdown', 'property' => 'border-width', ), ); $add['input_border_radius'] = array( array( 'type' => 'css', 'element' => 'input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea, .select2-container .select2-selection, .select2-container .select2-dropdown', 'property' => 'border-radius', ), ); foreach ( array( 'bg' => 'background-color', 'border' => 'border-color', 'text' => 'color' ) as $key => $prop ) { $add['input_' . $key . '_color'] = array( array( 'type' => 'css', 'element' => 'input[type="text"], input[type="password"], input[type="color"], input[type="date"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select, textarea, .search-field, .select2-container .select2-selection', 'property' => $prop, ), ); } foreach ( array( 'bg' => 'background-color', 'border' => 'border-color', 'text' => 'color' ) as $key => $prop ) { $add['input_focus_' . $key . '_color'] = array( array( 'type' => 'css', 'element' => 'input[type="text"]:focus, input[type="password"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime-local"]:focus, input[type="email"]:focus, input[type="month"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="time"]:focus, input[type="url"]:focus, input[type="week"]:focus, select:focus, textarea:focus, .search-field:focus, .select2-container .select2-selection:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection, .select2-container .select2-dropdown', 'property' => $prop, ), ); } /** * ==================================================== * General Elements > Title * ==================================================== */ foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.entry-title, .page-title'; $property = str_replace( '_', '-', $prop ); $add['title_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['title_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['title_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['title_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-title, .entry-title a, .page-title, .page-title a', 'property' => 'color', ), ); $add['title_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-title a:hover, .entry-title a:focus, .page-title a:hover, .page-title a:focus', 'property' => 'color', ), ); /** * ==================================================== * General Elements > Small Title * ==================================================== */ foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = 'legend, .entry-small-title, .comments-title, .comment-reply-title, .page-header .page-title'; $property = str_replace( '_', '-', $prop ); $add['small_title_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['small_title_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['small_title_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['small_title_text_color'] = array( array( 'type' => 'css', 'element' => 'legend, .entry-small-title, .entry-small-title a, .comments-title, .comment-reply-title, .page-header .page-title', 'property' => 'color', ), ); $add['small_title_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-small-title a:hover, .entry-small-title a:focus', 'property' => 'color', ), ); /** * ==================================================== * General Elements > Meta Info * ==================================================== */ foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.entry-meta, .comment-metadata, .widget .post-date, .widget_rss .rss-date'; $property = str_replace( '_', '-', $prop ); $add['meta_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['meta_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['meta_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['meta_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-meta, .comment-metadata, .widget .post-date, .widget_rss .rss-date, .nav-links span.current', 'property' => 'color', ), ); $add['meta_link_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-meta a, .comment-metadata a, .widget .post-date a, .widget_rss .rss-date a', 'property' => 'color', ), ); $add['meta_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.entry-meta a:hover, .entry-meta a:focus, .comment-metadata a:hover, .comment-metadata a:focus, .widget .post-date a:hover, .widget .post-date a:focus, .widget_rss .rss-date a:hover, .widget_rss .rss-date a:focus', 'property' => 'color', ), ); /** * ==================================================== * Page Canvas & Wrapper * ==================================================== */ $add['page_layout'] = array( array( 'type' => 'class', 'element' => 'body', 'pattern' => 'suki-page-layout-$', ), ); $add['boxed_page_width'] = array( array( 'type' => 'css', 'element' => 'body.suki-page-layout-boxed #page, body.suki-page-layout-boxed .suki-content-layout-narrow .alignfull, body.suki-page-layout-boxed .suki-content-layout-wide .alignfull', 'property' => 'width', ), ); $add['boxed_page_shadow'] = array( array( 'type' => 'css', 'element' => 'body.suki-page-layout-boxed #page', 'property' => 'box-shadow', ), ); $add['container_width'] = array( array( 'type' => 'css', 'element' => '.suki-wrapper, .suki-section-contained > .suki-section-inner, .suki-content-layout-narrow .alignwide', 'property' => 'width', ), array( 'type' => 'css', 'element' => '.suki-header-section.suki-section-default .sub-menu', 'property' => 'max-width', ), array( 'type' => 'css', 'element' => '.suki-content-layout-narrow .alignwide', 'property' => 'margin-left', 'pattern' => 'calc( -0.5 * $ + 50% )', ), array( 'type' => 'css', 'element' => '.suki-content-layout-narrow .alignwide', 'property' => 'margin-right', 'pattern' => 'calc( -0.5 * $ + 50% )', ), array( 'type' => 'css', 'element' => '.suki-content-layout-narrow .alignwide', 'property' => 'margin-left', 'pattern' => 'calc( -0.5 * 100vw + 50% )', 'media' => '@media screen and (max-width: $)', ), array( 'type' => 'css', 'element' => '.suki-content-layout-narrow .alignwide', 'property' => 'margin-right', 'pattern' => 'calc( -0.5 * 100vw + 50% )', 'media' => '@media screen and (max-width: $)', ), ); $add['page_bg_color'] = array( array( 'type' => 'css', 'element' => 'body, #page, .entry-card .entry-wrapper', 'property' => 'background-color', ), ); $add['outside_bg_color'] = array( array( 'type' => 'css', 'element' => 'body.suki-page-layout-boxed', 'property' => 'background-color', ), ); foreach ( array( 'bg_image', 'bg_position', 'bg_size', 'bg_repeat', 'bg_attachment' ) as $prop ) { $add['outside_' . $prop ] = array( array( 'type' => 'css', 'element' => 'body.suki-page-layout-boxed', 'property' => str_replace( 'bg_', 'background-', $prop ), 'pattern' => ( 'bg_image' == $prop ) ? 'url($)' : '$', 'media' => '@media screen and (min-width: 1024px)', ), ); } /** * ==================================================== * Header > Logo * ==================================================== */ $add['header_logo_width'] = array( array( 'type' => 'css', 'element' => '.suki-header-logo .suki-logo-image', 'property' => 'width', ), ); $add['header_mobile_logo_width'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-logo .suki-logo-image', 'property' => 'width', ), ); /** * ==================================================== * Header > Search * ==================================================== */ $add['header_search_bar_width'] = array( array( 'type' => 'css', 'element' => '.suki-header-search-bar .search-form', 'property' => 'width', ), ); $add['header_search_dropdown_width'] = array( array( 'type' => 'css', 'element' => '.suki-header-search-dropdown .sub-menu', 'property' => 'width', ), ); /** * ==================================================== * Header > Social * ==================================================== */ $add['header_social_links_target'] = array( array( 'type' => 'html', 'element' => '.suki-header-social-links a', 'property' => 'target', 'pattern' => '_$', ), ); /** * ==================================================== * Header > Top Bar * Header > Main Bar * Header > Bottom Bar * ==================================================== */ // Main bar is placed first because top bar and bottom bar can be merged into main bar. foreach ( array( 'main_bar', 'top_bar', 'bottom_bar' ) as $type ) { $bar = str_replace( '_', '-', $type ); if ( 'main_bar' !== $type ) { $add['header_' . $type . '_merged_gap'] = array( array( 'type' => 'css', 'element' => '.suki-header-main-bar.suki-header-main-bar-with-' . $bar . ' .suki-header-main-bar-row', 'property' => 'padding-' . ( 'top_bar' === $type ? 'top' : 'bottom' ), ), ); } // Layout $add['header_' . $type . '_container'] = array( array( 'type' => 'class', 'element' => '.suki-header-' . $bar, 'pattern' => 'suki-section-$', ), ); $add['header_' . $type . '_height'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar, 'property' => 'height', ), ); if ( 'main_bar' !== $type ) { $add['header_' . $type . '_height'][] = array( 'type' => 'css', 'element' => '.suki-header-main-bar.suki-header-main-bar-with-' . $bar . ' > .suki-section-inner > .suki-wrapper', 'property' => 'padding-' . ( 'top_bar' === $type ? 'top' : 'bottom' ), ); } $add['header_' . $type . '_padding'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . '-inner', 'property' => 'padding', ), ); $add['header_' . $type . '_border'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . '-inner', 'property' => 'border-width', ), ); $add['header_' . $type . '_items_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' .suki-header-column > *', 'property' => 'padding', 'pattern' => '0 $', ), array( 'type' => 'css', 'element' => '.suki-header-' . $bar . '-row', 'property' => 'margin', 'pattern' => '0 -$', ), array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' .suki-header-menu .menu-item', 'property' => 'padding', 'pattern' => '0 $', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-header-' . $bar; $property = str_replace( '_', '-', $prop ); $add['header_' . $type . '_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-header-' . $bar . ' .menu .menu-item > a'; $property = str_replace( '_', '-', $prop ); $add['header_' . $type . '_menu_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-header-' . $bar . ' .menu .sub-menu .menu-item > a'; $property = str_replace( '_', '-', $prop ); $add['header_' . $type . '_submenu_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); } $add['header_' . $type . '_icon_size'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' .suki-menu-icon', 'property' => 'font-size', ), ); $add['header_' . $type . '_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . '-inner, .suki-header-' . $bar . ' .menu .sub-menu', 'property' => 'background-color', ), ); $add['header_' . $type . '_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' *, .suki-header-' . $bar . ' .menu .sub-menu', 'property' => 'border-color', ), ); $add['header_' . $type . '_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ', .suki-header-' . $bar . ' .menu .sub-menu', 'property' => 'color', ), ); $add['header_' . $type . '_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' a:not(.button), .suki-header-' . $bar . ' .menu .sub-menu a:not(.button), .suki-header-' . $bar . ' .suki-toggle', 'property' => 'color', ), ); $add['header_' . $type . '_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' a:not(.button):hover, .suki-header-' . $bar . ' a:not(.button):focus, .suki-header-' . $bar . ' .menu .sub-menu a:not(.button):hover, .suki-header-' . $bar . ' .menu .sub-menu a:not(.button):focus, .suki-header-' . $bar . ' .suki-toggle:hover, .suki-header-' . $bar . ' .suki-toggle:focus', 'property' => 'color', ), ); $add['header_' . $type . '_link_active_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ' .current-menu-item > a, .suki-header-' . $bar . ' .current-menu-ancestor > a, .suki-header-' . $bar . ' .menu .sub-menu .current-menu-item > a, .suki-header-' . $bar . ' .menu .sub-menu .current-menu-ancestor > a', 'property' => 'color', ), ); $add['header_' . $type . '_menu_highlight'] = array( array( 'type' => 'class', 'element' => '.suki-header-' . $bar, 'pattern' => 'suki-header-menu-highlight-$', ), ); $add['header_' . $type . '_menu_hover_highlight_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .menu-item > a:hover:after, .suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .menu-item > a:focus:after', 'property' => 'background-color', ), ); $add['header_' . $type . '_menu_hover_highlight_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .menu-item > a:hover, .suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .menu-item > a:focus', 'property' => 'color', ), ); $add['header_' . $type . '_menu_active_highlight_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .current-menu-item > a:after, .suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .current-menu-ancestor > a:after', 'property' => 'background-color', ), ); $add['header_' . $type . '_menu_active_highlight_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .current-menu-item > a, .suki-header-' . $bar . ':not(.suki-header-menu-highlight-none) .suki-header-menu > .menu > .current-menu-ancestor > a', 'property' => 'color', ), ); } /** * ==================================================== * Header > Mobile Main Bar * ==================================================== */ $add['header_mobile_main_bar_height'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar', 'property' => 'height', ), ); $responsive = array( '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['header_mobile_main_bar_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar-inner', 'property' => 'padding', 'media' => $media, ), ); } $add['header_mobile_main_bar_border'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar-inner', 'property' => 'border-width', ), ); $add['header_mobile_main_bar_items_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar .suki-header-column > *, .suki-header-mobile-main-bar .suki-header-menu .menu-item', 'property' => 'padding', 'pattern' => '0 $', ), array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar .suki-header-row', 'property' => 'margin', 'pattern' => '0 -$', ), array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar .menu-item', 'property' => 'margin', 'pattern' => '0 $', ), ); $add['header_mobile_main_bar_icon_size'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar .suki-menu-icon', 'property' => 'font-size', ), ); $add['header_mobile_main_bar_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar-inner, .suki-header-mobile-main-bar .menu .sub-menu', 'property' => 'background-color', ), ); $add['header_mobile_main_bar_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar *', 'property' => 'border-color', ), ); $add['header_mobile_main_bar_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar a:not(.button), .suki-header-mobile-main-bar .suki-toggle', 'property' => 'color', ), ); $add['header_mobile_main_bar_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-main-bar a:not(.button):hover, .suki-header-mobile-main-bar a:not(.button):focus, .suki-header-mobile-main-bar .suki-toggle:hover, .suki-header-mobile-main-bar .suki-toggle:focus', 'property' => 'color', ), ); /** * ==================================================== * Header > Mobile Drawer (Popup) * ==================================================== */ $add['header_mobile_vertical_bar_position'] = array( array( 'type' => 'class', 'element' => '.suki-header-mobile-vertical', 'pattern' => 'suki-header-mobile-vertical-position-$', ), ); $add['header_mobile_vertical_bar_alignment'] = array( array( 'type' => 'class', 'element' => '.suki-header-mobile-vertical', 'pattern' => 'suki-text-align-$', ), ); $add['header_mobile_vertical_bar_width'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar', 'property' => 'width', ), ); $add['header_mobile_vertical_bar_padding'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar-inner', 'property' => 'padding', ), ); $add['header_mobile_vertical_bar_items_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar .suki-header-vertical-row, .suki-header-mobile-vertical-bar .suki-header-vertical-row > *', 'property' => 'padding', 'pattern' => '$ 0', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $add['header_mobile_vertical_bar_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => '.suki-header-mobile-vertical-bar', 'property' => str_replace( '_', '-', $prop), ), ); } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $add['header_mobile_vertical_bar_menu_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => '.suki-header-mobile-vertical-bar .menu .menu-item > a, .suki-header-mobile-vertical-bar .menu-item > .suki-toggle', 'property' => str_replace( '_', '-', $prop), ), ); } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $add['header_mobile_vertical_bar_submenu_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => '.suki-header-mobile-vertical-bar .menu .sub-menu .menu-item > a, .suki-header-mobile-vertical-bar .sub-menu .menu-item > .suki-toggle', 'property' => str_replace( '_', '-', $prop), ), ); } $add['header_mobile_vertical_bar_icon_size'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar .suki-menu-icon', 'property' => 'font-size', ), ); $add['header_mobile_vertical_bar_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar-inner', 'property' => 'background-color', ), ); $add['header_mobile_vertical_bar_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar *', 'property' => 'border-color', ), ); $add['header_mobile_vertical_bar_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar', 'property' => 'color', ), ); $add['header_mobile_vertical_bar_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar a:not(.button), .suki-header-mobile-vertical-bar .suki-toggle', 'property' => 'color', ), ); $add['header_mobile_vertical_bar_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar a:not(.button):hover, .suki-header-mobile-vertical-bar a:not(.button):focus, .suki-header-mobile-vertical-bar .suki-toggle:hover, .suki-header-mobile-vertical-bar .suki-toggle:focus', 'property' => 'color', ), ); $add['header_mobile_vertical_bar_link_active_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-header-mobile-vertical-bar .current-menu-item > a, .suki-header-mobile-vertical-bar .current-menu-ancestor > a', 'property' => 'color', ), ); /** * ==================================================== * Page Header (Title Bar) * ==================================================== */ $add['page_header_container'] = array( array( 'type' => 'class', 'element' => '.suki-page-header', 'pattern' => 'suki-section-$', ), ); $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['page_header_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-page-header-inner', 'property' => 'padding', 'media' => $media, ), ); } $add['page_header_border'] = array( array( 'type' => 'css', 'element' => '.suki-page-header-inner', 'property' => 'border-width', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-page-header-title'; $property = str_replace( '_', '-', $prop ); $add['page_header_title_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['page_header_title_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['page_header_title_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-page-header-breadcrumb'; $property = str_replace( '_', '-', $prop ); $add['page_header_breadcrumb_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['page_header_breadcrumb_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['page_header_breadcrumb_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['page_header_layout'] = array( array( 'type' => 'class', 'element' => '.suki-page-header', 'pattern' => 'suki-page-header-layout-$', ), ); $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['page_header_layout_width' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-page-header-layout-left .suki-page-header-row, .suki-page-header-layout-center .suki-page-header-row, .suki-page-header-layout-right .suki-page-header-row', 'property' => 'max-width', 'media' => $media, ), ); } $add['page_header_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header-inner', 'property' => 'background-color', ), ); $add['page_header_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header *', 'property' => 'border-color', ), ); $add['page_header_title_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header-title', 'property' => 'color', ), ); $add['page_header_breadcrumb_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header', 'property' => 'color', ), ); $add['page_header_breadcrumb_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header a', 'property' => 'color', ), ); $add['page_header_breadcrumb_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header a:hover, .suki-page-header a:focus', 'property' => 'color', ), ); $add['page_header_bg_attachment'] = array( array( 'type' => 'css', 'element' => '.suki-page-header-inner', 'property' => 'background-attachment', ), ); $add['page_header_bg_overlay_color'] = array( array( 'type' => 'css', 'element' => '.suki-page-header-inner:before', 'property' => 'background-color', ), ); /** * ==================================================== * Content & Sidebar > Section * ==================================================== */ $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['content_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-content-inner', 'property' => 'padding', 'media' => $media, ), ); } $add['content_narrow_width'] = array( array( 'type' => 'css', 'element' => '.suki-content-layout-narrow .site-main', 'property' => 'max-width', ), ); /** * ==================================================== * Content & Sidebar > Main Content Area * ==================================================== */ $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['content_main_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.content-area .site-main', 'property' => 'padding', 'media' => $media, ), array( 'type' => 'css', 'element' => '.entry-layout-default:first-child .entry-thumbnail.suki-entry-thumbnail-ignore-padding:first-child', 'property' => 'margin-top', 'pattern' => '-$ !important', 'media' => $media, 'function' => array( 'name' => 'explode_value', 'args' => array( 0 ), // 1st part = top ), ), array( 'type' => 'css', 'element' => '.entry-layout-default .entry-thumbnail.suki-entry-thumbnail-ignore-padding', 'property' => 'margin-right', 'pattern' => '-$ !important', 'media' => $media, 'function' => array( 'name' => 'explode_value', 'args' => array( 1 ), // 2nd part = right ), ), array( 'type' => 'css', 'element' => '.entry-layout-default .entry-thumbnail.suki-entry-thumbnail-ignore-padding', 'property' => 'margin-left', 'pattern' => '-$ !important', 'media' => $media, 'function' => array( 'name' => 'explode_value', 'args' => array( 3 ), // 4rd part = left ), ), ); } $add['content_main_border'] = array( array( 'type' => 'css', 'element' => '.content-area .site-main', 'property' => 'border-width', ), ); $add['content_main_bg_color'] = array( array( 'type' => 'css', 'element' => '.content-area .site-main', 'property' => 'background-color', ), ); $add['content_main_border_color'] = array( array( 'type' => 'css', 'element' => '.content-area .site-main', 'property' => 'border-color', ), ); /** * ==================================================== * Content & Sidebar > Sidebar Area * ==================================================== */ $add['sidebar_width'] = array( array( 'type' => 'css', 'element' => '.sidebar', 'property' => 'width', ), array( 'type' => 'css', 'element' => '.sidebar', 'property' => 'min-width', ), ); $add['sidebar_gap'] = array( array( 'type' => 'css', 'element' => '.ltr .suki-content-layout-right-sidebar .sidebar', 'property' => 'margin-left', ), array( 'type' => 'css', 'element' => '.rtl .suki-content-layout-right-sidebar .sidebar', 'property' => 'margin-right', ), array( 'type' => 'css', 'element' => '.ltr .suki-content-layout-left-sidebar .sidebar', 'property' => 'margin-right', ), array( 'type' => 'css', 'element' => '.rtl .suki-content-layout-left-sidebar .sidebar', 'property' => 'margin-right', ), ); $add['sidebar_widgets_mode'] = array( array( 'type' => 'class', 'element' => '.sidebar', 'pattern' => 'suki-sidebar-widgets-mode-$', ), ); $add['sidebar_widgets_gap'] = array( array( 'type' => 'css', 'element' => '.sidebar .widget', 'property' => 'margin-bottom', ), ); $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['sidebar_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.sidebar.suki-sidebar-widgets-mode-merged .sidebar-inner, .sidebar.suki-sidebar-widgets-mode-separated .widget', 'property' => 'padding', 'media' => $media, ), ); } $add['sidebar_border'] = array( array( 'type' => 'css', 'element' => '.sidebar.suki-sidebar-widgets-mode-merged .sidebar-inner, .sidebar.suki-sidebar-widgets-mode-separated .widget', 'property' => 'border-width', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.sidebar'; $property = str_replace( '_', '-', $prop ); $add['sidebar_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['sidebar_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['sidebar_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.sidebar .widget-title'; $property = str_replace( '_', '-', $prop ); $add['sidebar_widget_title_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['sidebar_widget_title_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['sidebar_widget_title_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['sidebar_widget_title_alignment'] = array( array( 'type' => 'class', 'element' => '.sidebar', 'pattern' => 'suki-widget-title-alignment-$', ), ); $add['sidebar_widget_title_decoration'] = array( array( 'type' => 'class', 'element' => '.sidebar', 'pattern' => 'suki-widget-title-decoration-$', ), ); $add['sidebar_bg_color'] = array( array( 'type' => 'css', 'element' => '.sidebar.suki-sidebar-widgets-mode-merged .sidebar-inner, .sidebar.suki-sidebar-widgets-mode-separated .widget', 'property' => 'background-color', ), ); $add['sidebar_border_color'] = array( array( 'type' => 'css', 'element' => '.sidebar *', 'property' => 'border-color', ), ); $add['sidebar_text_color'] = array( array( 'type' => 'css', 'element' => '.sidebar', 'property' => 'color', ), ); $add['sidebar_link_text_color'] = array( array( 'type' => 'css', 'element' => '.sidebar a', 'property' => 'color', ), ); $add['sidebar_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.sidebar a:hover, .sidebar a:focus', 'property' => 'color', ), ); $add['sidebar_widget_title_text_color'] = array( array( 'type' => 'css', 'element' => '.sidebar .widget-title', 'property' => 'color', ), ); $add['sidebar_widget_title_bg_color'] = array( array( 'type' => 'css', 'element' => '.sidebar.suki-widget-title-decoration-box .widget-title', 'property' => 'background-color', ), ); $add['sidebar_widget_title_border_color'] = array( array( 'type' => 'css', 'element' => '.sidebar .widget-title', 'property' => 'border-color', ), ); /** * ==================================================== * Footer > Widgets Bar * ==================================================== */ $add['footer_widgets_bar_container'] = array( array( 'type' => 'class', 'element' => '.suki-footer-widgets-bar', 'pattern' => 'suki-section-$', ), ); $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['footer_widgets_bar_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-inner', 'property' => 'padding', 'media' => $media, ), ); } $add['footer_widgets_bar_border'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-inner', 'property' => 'border-width', ), ); $add['footer_widgets_bar_columns_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-column', 'property' => 'padding', 'pattern' => '0 $', ), array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-row', 'property' => 'margin-left', 'pattern' => '-$', ), array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-row', 'property' => 'margin-right', 'pattern' => '-$', ), ); $add['footer_widgets_bar_widgets_gap'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar .widget', 'property' => 'margin-bottom', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-footer-widgets-bar'; $property = str_replace( '_', '-', $prop ); $add['footer_widgets_bar_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['footer_widgets_bar_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['footer_widgets_bar_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-footer-widgets-bar .widget-title'; $property = str_replace( '_', '-', $prop ); $add['footer_widgets_bar_widget_title_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['footer_widgets_bar_widget_title_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['footer_widgets_bar_widget_title_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['footer_widgets_bar_widget_title_alignment'] = array( array( 'type' => 'class', 'element' => '.suki-footer-widgets-bar', 'pattern' => 'suki-widget-title-alignment-$', ), ); $add['footer_widgets_bar_widget_title_decoration'] = array( array( 'type' => 'class', 'element' => '.suki-footer-widgets-bar', 'pattern' => 'suki-widget-title-decoration-$', ), ); $add['footer_widgets_bar_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar-inner', 'property' => 'background-color', ), ); $add['footer_widgets_bar_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar *', 'property' => 'border-color', ), ); $add['footer_widgets_bar_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar', 'property' => 'color', ), ); $add['footer_widgets_bar_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar a:not(.button)', 'property' => 'color', ), ); $add['footer_widgets_bar_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar a:not(.button):hover, .suki-footer-widgets-bar a:not(.button):focus', 'property' => 'color', ), ); $add['footer_widgets_bar_widget_title_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar .widget-title', 'property' => 'color', ), ); $add['footer_widgets_bar_widget_title_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar.suki-widget-title-decoration-box .widget-title', 'property' => 'background-color', ), ); $add['footer_widgets_bar_widget_title_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-widgets-bar .widget-title', 'property' => 'border-color', ), ); /** * ==================================================== * Footer > Bottom Bar * ==================================================== */ $add['footer_bottom_bar_merged_gap'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar.suki-section-merged', 'property' => 'margin-top', ), ); $add['footer_bottom_bar_container'] = array( array( 'type' => 'class', 'element' => '.suki-footer-bottom-bar', 'pattern' => 'suki-section-$', ), ); $responsive = array( '' => '', '__tablet' => '@media screen and (max-width: 1023px)', '__mobile' => '@media screen and (max-width: 499px)', ); foreach ( $responsive as $suffix => $media ) { $add['footer_bottom_bar_padding' . $suffix ] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar-inner', 'property' => 'padding', 'media' => $media, ), ); } $add['footer_bottom_bar_border'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar-inner', 'property' => 'border-width', ), ); $add['footer_bottom_bar_items_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar .suki-footer-column > *', 'property' => 'padding', 'pattern' => '0 $', ), array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar-row', 'property' => 'margin', 'pattern' => '0 -$', ), array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar .suki-footer-menu .menu-item', 'property' => 'padding', 'pattern' => '0 $', ), ); foreach ( array( 'font_family', 'font_weight', 'font_style', 'text_transform', 'font_size', 'line_height', 'letter_spacing' ) as $prop ) { $element = '.suki-footer-bottom-bar'; $property = str_replace( '_', '-', $prop ); $add['footer_bottom_bar_' . $prop ] = array( array( 'type' => 'font_family' === $prop ? 'font' : 'css', 'element' => $element, 'property' => $property, ), ); if ( in_array( $prop, array( 'font_size', 'line_height', 'letter_spacing' ) ) ) { $add['footer_bottom_bar_' . $prop . '__tablet'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 1023px)', ), ); $add['footer_bottom_bar_' . $prop . '__mobile'] = array( array( 'type' => 'css', 'element' => $element, 'property' => $property, 'media' => '@media screen and (max-width: 499px)', ), ); } } $add['footer_bottom_bar_bg_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar-inner', 'property' => 'background-color', ), ); $add['footer_bottom_bar_border_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar-inner', 'property' => 'border-color', ), ); $add['footer_bottom_bar_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar', 'property' => 'color', ), ); $add['footer_bottom_bar_link_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar a:not(.button)', 'property' => 'color', ), ); $add['footer_bottom_bar_link_hover_text_color'] = array( array( 'type' => 'css', 'element' => '.suki-footer-bottom-bar a:not(.button):hover, .suki-footer-bottom-bar a:not(.button):focus', 'property' => 'color', ), ); /** * ==================================================== * Footer > Social * ==================================================== */ // Social links $add['footer_social_links_target'] = array( array( 'type' => 'html', 'element' => '.suki-footer-social-links a', 'property' => 'target', 'pattern' => '_$', ), ); /** * ==================================================== * Blog > Posts Page * ==================================================== */ $add['blog_index_grid_columns'] = array( array( 'type' => 'class', 'element' => '.suki-loop-grid', 'pattern' => 'suki-loop-grid-$-columns', ), ); $add['blog_index_grid_columns_gutter'] = array( array( 'type' => 'css', 'element' => '.suki-loop-grid > .entry', 'property' => 'padding-left', ), array( 'type' => 'css', 'element' => '.suki-loop-grid > .entry', 'property' => 'padding-right', ), array( 'type' => 'css', 'element' => '.suki-loop-grid', 'property' => 'margin-left', 'pattern' => '-$', ), array( 'type' => 'css', 'element' => '.suki-loop-grid', 'property' => 'margin-right', 'pattern' => '-$', ), ); /** * ==================================================== * Blog > Post Layout: Default * ==================================================== */ $add['entry_header_alignment'] = array( array( 'type' => 'class', 'element' => '.entry-layout-default .entry-header', 'pattern' => 'suki-text-align-$', ), ); /** * ==================================================== * Blog > Post Layout: Grid * ==================================================== */ $add['entry_grid_header_alignment'] = array( array( 'type' => 'class', 'element' => '.entry-layout-grid .entry-header', 'pattern' => 'suki-text-align-$', ), ); $postmessages = array_merge_recursive( $postmessages, $add );