.$_el.x-anchor { @if $anchor_width !== 'auto' { width: $anchor_width; } @unless $anchor_min_width?? { min-width: $anchor_min_width; } @unless $anchor_max_width?? { max-width: $anchor_max_width; } @if $anchor_height !== 'auto' { height: $anchor_height; } @unless $anchor_min_height?? { min-height: $anchor_min_height; } @unless $anchor_max_height?? { max-height: $anchor_max_height; } @unless $anchor_margin?? { margin: $anchor_margin; } @unless $anchor_border_width?? || $anchor_border_style?? { border-width: $anchor_border_width; border-style: $anchor_border_style; border-color: $anchor_border_color; } @unless $anchor_border_radius?? { border-radius: $anchor_border_radius; } font-size: $anchor_base_font_size; background-color: $anchor_bg_color; @unless $anchor_box_shadow_dimensions?? { @if $anchor_box_shadow_color === 'transparent' { box-shadow: none; } @if $anchor_box_shadow_color !== 'transparent' { box-shadow: $anchor_box_shadow_dimensions $anchor_box_shadow_color; } } } .$_el.x-anchor .x-anchor-content { flex-direction: $anchor_flex_direction; justify-content: $anchor_flex_justify; align-items: $anchor_flex_align; @if $anchor_flex_wrap === true { flex-wrap: wrap; align-content: $anchor_flex_align; } @unless $anchor_padding?? { padding: $anchor_padding; } } .$_el.x-anchor[class*="active"] { @unless $anchor_border_width?? || $anchor_border_style?? { border-color: $anchor_border_color_alt; } background-color: $anchor_bg_color_alt; @unless $anchor_box_shadow_dimensions?? { @if $anchor_box_shadow_color_alt === 'transparent' { box-shadow: none; } @if $anchor_box_shadow_color_alt !== 'transparent' { box-shadow: $anchor_box_shadow_dimensions $anchor_box_shadow_color_alt; } } } @unless $anchor_text === false { .$_el.x-anchor .x-anchor-text { @if $anchor_text_overflow === true && $anchor_flex_direction === 'column' { width: 100%; } @unless $anchor_text_margin?? { margin: $anchor_text_margin; } } @if $anchor_text_overflow === true { .$_el.x-anchor .x-anchor-text-primary, .$_el.x-anchor .x-anchor-text-secondary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } } .$_el.x-anchor .x-anchor-text-primary { font-family: $anchor_primary_font_family; font-size: $anchor_primary_font_size; font-style: $anchor_primary_font_style; font-weight: $anchor_primary_font_weight; line-height: $anchor_primary_line_height; @unless $anchor_primary_letter_spacing?? { letter-spacing: $anchor_primary_letter_spacing; margin-right: calc($anchor_primary_letter_spacing * -1); } @unless $anchor_primary_text_align?? { text-align: $anchor_primary_text_align; } @unless $anchor_primary_text_decoration?? { text-decoration: $anchor_primary_text_decoration; } @unless $anchor_primary_text_shadow_dimensions?? { @if $anchor_primary_text_shadow_color === 'transparent' { text-shadow: none; } @if $anchor_primary_text_shadow_color !== 'transparent' { text-shadow: $anchor_primary_text_shadow_dimensions $anchor_primary_text_shadow_color; } } @unless $anchor_primary_text_transform?? { text-transform: $anchor_primary_text_transform; } color: $anchor_primary_text_color; } .$_el.x-anchor[class*="active"] .x-anchor-text-primary { @unless $anchor_primary_text_shadow_dimensions?? { @if $anchor_primary_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $anchor_primary_text_shadow_color_alt !== 'transparent' { text-shadow: $anchor_primary_text_shadow_dimensions $anchor_primary_text_shadow_color_alt; } } color: $anchor_primary_text_color_alt; } @if $anchor_has_template === true { @unless $anchor_text_secondary_content === '' { .$_el.x-anchor .x-anchor-text-secondary { @if $anchor_text_reverse === true { margin-bottom: $anchor_text_spacing; } @if $anchor_text_reverse === false { margin-top: $anchor_text_spacing; } font-family: $anchor_secondary_font_family; font-size: $anchor_secondary_font_size; font-style: $anchor_secondary_font_style; font-weight: $anchor_secondary_font_weight; line-height: $anchor_secondary_line_height; @unless $anchor_secondary_letter_spacing?? { letter-spacing: $anchor_secondary_letter_spacing; margin-right: calc($anchor_secondary_letter_spacing * -1); } @unless $anchor_secondary_text_align?? { text-align: $anchor_secondary_text_align; } @unless $anchor_secondary_text_decoration?? { text-decoration: $anchor_secondary_text_decoration; } @unless $anchor_secondary_text_shadow_dimensions?? { @if $anchor_secondary_text_shadow_color === 'transparent' { text-shadow: none; } @if $anchor_secondary_text_shadow_color !== 'transparent' { text-shadow: $anchor_secondary_text_shadow_dimensions $anchor_secondary_text_shadow_color; } } @unless $anchor_secondary_text_transform?? { text-transform: $anchor_secondary_text_transform; } color: $anchor_secondary_text_color; } .$_el.x-anchor[class*="active"] .x-anchor-text-secondary { @unless $anchor_secondary_text_shadow_dimensions?? { @if $anchor_secondary_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $anchor_secondary_text_shadow_color_alt !== 'transparent' { text-shadow: $anchor_secondary_text_shadow_dimensions $anchor_secondary_text_shadow_color_alt; } } color: $anchor_secondary_text_color_alt; } } } } @if $anchor_has_template === true && $anchor_graphic === true { .$_el.x-anchor .x-graphic { @unless $anchor_graphic_margin?? { margin: $anchor_graphic_margin; } } @if $anchor_graphic_type === 'icon' { .$_el.x-anchor .x-graphic-icon { @if $anchor_graphic_icon_width !== 'auto' { width: $anchor_graphic_icon_width; } @unless $anchor_graphic_icon_border_width?? || $anchor_graphic_icon_border_style?? { border-width: $anchor_graphic_icon_border_width; border-style: $anchor_graphic_icon_border_style; border-color: $anchor_graphic_icon_border_color; } @unless $anchor_graphic_icon_border_radius?? { border-radius: $anchor_graphic_icon_border_radius; } @if $anchor_graphic_icon_height !== 'auto' { height: $anchor_graphic_icon_height; line-height: $anchor_graphic_icon_height; } font-size: $anchor_graphic_icon_font_size; @unless $anchor_graphic_icon_text_shadow_dimensions?? { @if $anchor_graphic_icon_text_shadow_color === 'transparent' { text-shadow: none; } @if $anchor_graphic_icon_text_shadow_color !== 'transparent' { text-shadow: $anchor_graphic_icon_text_shadow_dimensions $anchor_graphic_icon_text_shadow_color; } } color: $anchor_graphic_icon_color; @if $anchor_graphic_icon_bg_color !== 'transparent' { background-color: $anchor_graphic_icon_bg_color; } @unless $anchor_graphic_icon_box_shadow_dimensions?? { @if $anchor_graphic_icon_box_shadow_color === 'transparent' { box-shadow: none; } @if $anchor_graphic_icon_box_shadow_color !== 'transparent' { box-shadow: $anchor_graphic_icon_box_shadow_dimensions $anchor_graphic_icon_box_shadow_color; } } } @if $anchor_graphic_has_alt === true { .$_el.x-anchor .x-graphic-icon[class*="active"] { @unless $anchor_graphic_icon_text_shadow_dimensions?? { @if $anchor_graphic_icon_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $anchor_graphic_icon_text_shadow_color_alt !== 'transparent' { text-shadow: $anchor_graphic_icon_text_shadow_dimensions $anchor_graphic_icon_text_shadow_color_alt; } } color: $anchor_graphic_icon_color_alt; @unless $anchor_graphic_icon_border_width?? || $anchor_graphic_icon_border_style?? { border-color: $anchor_graphic_icon_border_color_alt; } @if $anchor_graphic_icon_bg_color_alt !== 'transparent' { background-color: $anchor_graphic_icon_bg_color_alt; } @unless $anchor_graphic_icon_box_shadow_dimensions?? { @if $anchor_graphic_icon_box_shadow_color_alt === 'transparent' { box-shadow: none; } @if $anchor_graphic_icon_box_shadow_color_alt !== 'transparent' { box-shadow: $anchor_graphic_icon_box_shadow_dimensions $anchor_graphic_icon_box_shadow_color_alt; } } } } } @if $anchor_graphic_type === 'image' { .$_el.x-anchor .x-graphic-image { @unless $anchor_graphic_image_max_width?? { max-width: $anchor_graphic_image_max_width; } } } @if $anchor_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); } }} } @if $anchor_has_template === true && $anchor_type === 'menu-item' && $anchor_sub_indicator === true { .$_el.x-anchor .x-anchor-sub-indicator { @if $anchor_sub_indicator_width !== 'auto' { width: $anchor_sub_indicator_width; } @if $anchor_sub_indicator_height !== 'auto' { height: $anchor_sub_indicator_height; line-height: $anchor_sub_indicator_height; } @unless $anchor_sub_indicator_margin?? { margin: $anchor_sub_indicator_margin; } font-size: $anchor_sub_indicator_font_size; @unless $anchor_sub_indicator_text_shadow_dimensions?? { @if $anchor_sub_indicator_text_shadow_color === 'transparent' { text-shadow: none; } @if $anchor_sub_indicator_text_shadow_color !== 'transparent' { text-shadow: $anchor_sub_indicator_text_shadow_dimensions $anchor_sub_indicator_text_shadow_color; } } color: $anchor_sub_indicator_color; } .$_el.x-anchor[class*="active"] .x-anchor-sub-indicator { @unless $anchor_sub_indicator_text_shadow_dimensions?? { @if $anchor_sub_indicator_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $anchor_sub_indicator_text_shadow_color_alt !== 'transparent' { text-shadow: $anchor_sub_indicator_text_shadow_dimensions $anchor_sub_indicator_text_shadow_color_alt; } } color: $anchor_sub_indicator_color_alt; } } @if $anchor_primary_particle === true { .$_el.x-anchor .x-anchor-particle-primary { width: $anchor_primary_particle_width; height: $anchor_primary_particle_height; @unless $anchor_primary_particle_border_radius?? { border-radius: $anchor_primary_particle_border_radius; } color: $anchor_primary_particle_color; transform-origin: $anchor_primary_particle_transform_origin; } .$_el.x-anchor .x-anchor-particle-primary[class*="active"] { @unless $anchor_primary_particle_delay?? { transition-delay: $anchor_primary_particle_delay; } } } @if $anchor_secondary_particle === true { .$_el.x-anchor .x-anchor-particle-secondary { width: $anchor_secondary_particle_width; height: $anchor_secondary_particle_height; @unless $anchor_secondary_particle_border_radius?? { border-radius: $anchor_secondary_particle_border_radius; } color: $anchor_secondary_particle_color; transform-origin: $anchor_secondary_particle_transform_origin; } .$_el.x-anchor .x-anchor-particle-secondary[class*="active"] { @unless $anchor_secondary_particle_delay?? { transition-delay: $anchor_secondary_particle_delay; } } }