.$_el .x-graphic { @unless $graphic_margin?? { margin: $graphic_margin; } } @if $graphic_type === 'icon' { .$_el .x-graphic-icon { @if $graphic_icon_width !== 'auto' { width: $graphic_icon_width; } @unless $graphic_icon_border_width?? || $graphic_icon_border_style?? { border-width: $graphic_icon_border_width; border-style: $graphic_icon_border_style; border-color: $graphic_icon_border_color; } @unless $graphic_icon_border_radius?? { border-radius: $graphic_icon_border_radius; } @if $graphic_icon_height !== 'auto' { height: $graphic_icon_height; line-height: $graphic_icon_height; } font-size: $graphic_icon_font_size; @unless $graphic_icon_text_shadow_dimensions?? { @if $graphic_icon_text_shadow_color === 'transparent' { text-shadow: none; } @if $graphic_icon_text_shadow_color !== 'transparent' { text-shadow: $graphic_icon_text_shadow_dimensions $graphic_icon_text_shadow_color; } } color: $graphic_icon_color; @if $graphic_icon_bg_color !== 'transparent' { background-color: $graphic_icon_bg_color; } @unless $graphic_icon_box_shadow_dimensions?? { @if $graphic_icon_box_shadow_color === 'transparent' { box-shadow: none; } @if $graphic_icon_box_shadow_color !== 'transparent' { box-shadow: $graphic_icon_box_shadow_dimensions $graphic_icon_box_shadow_color; } } } @if $graphic_has_alt === true { .$_el .x-graphic-icon[class*="active"] { @unless $graphic_icon_text_shadow_dimensions?? { @if $graphic_icon_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $graphic_icon_text_shadow_color_alt !== 'transparent' { text-shadow: $graphic_icon_text_shadow_dimensions $graphic_icon_text_shadow_color_alt; } } color: $graphic_icon_color_alt; @unless $graphic_icon_border_width?? || $graphic_icon_border_style?? { border-color: $graphic_icon_border_color_alt; } @if $graphic_icon_bg_color_alt !== 'transparent' { background-color: $graphic_icon_bg_color_alt; } @unless $graphic_icon_box_shadow_dimensions?? { @if $graphic_icon_box_shadow_color_alt === 'transparent' { box-shadow: none; } @if $graphic_icon_box_shadow_color_alt !== 'transparent' { box-shadow: $graphic_icon_box_shadow_dimensions $graphic_icon_box_shadow_color_alt; } } } } } @if $graphic_type === 'image' { .$_el .x-graphic-image { @unless $graphic_image_max_width?? { max-width: $graphic_image_max_width; } } } @if $graphic_type === 'toggle' { .$_el .x-toggle { color: $toggle_color; } .$_el[class*="active"] .x-toggle, .$_el .x-toggle[class*="active"] { color: $toggle_color_alt; } @if $toggle_type LIKE 'burger%' { .$_el .x-toggle-burger { width: $toggle_burger_width; margin: $toggle_burger_spacing 0; font-size: $toggle_burger_size; } .$_el .x-toggle-burger-bun-t { transform: translate3d(0, -$toggle_burger_spacing, 0); } .$_el .x-toggle-burger-bun-b { transform: translate3d(0, $toggle_burger_spacing, 0); } } @if $toggle_type LIKE 'grid%' { .$_el .x-toggle-grid { margin: $toggle_grid_spacing; font-size: $toggle_grid_size; } .$_el .x-toggle-grid-center { box-shadow: -$toggle_grid_spacing -$toggle_grid_spacing, 0 -$toggle_grid_spacing, $toggle_grid_spacing -$toggle_grid_spacing, -$toggle_grid_spacing 0, $toggle_grid_spacing 0, -$toggle_grid_spacing $toggle_grid_spacing, 0 $toggle_grid_spacing, $toggle_grid_spacing $toggle_grid_spacing; } } @if $toggle_type LIKE 'more%' { .$_el .x-toggle-more-h, .$_el .x-toggle-more-v { margin: $toggle_more_spacing; font-size: $toggle_more_size; } .$_el .x-toggle-more-1 { transform: translate3d(-$toggle_more_spacing, 0, 0); } .$_el .x-toggle-more-3 { transform: translate3d($toggle_more_spacing, 0, 0); } }}