.$_el.x-anchor { @if $toggle_anchor_width !== 'auto' { width: $toggle_anchor_width; } @unless $toggle_anchor_min_width?? { min-width: $toggle_anchor_min_width; } @unless $toggle_anchor_max_width?? { max-width: $toggle_anchor_max_width; } @if $toggle_anchor_height !== 'auto' { height: $toggle_anchor_height; } @unless $toggle_anchor_min_height?? { min-height: $toggle_anchor_min_height; } @unless $toggle_anchor_max_height?? { max-height: $toggle_anchor_max_height; } @unless $toggle_anchor_margin?? { margin: $toggle_anchor_margin; } @unless $toggle_anchor_border_width?? || $toggle_anchor_border_style?? { border-width: $toggle_anchor_border_width; border-style: $toggle_anchor_border_style; border-color: $toggle_anchor_border_color; } @unless $toggle_anchor_border_radius?? { border-radius: $toggle_anchor_border_radius; } font-size: $toggle_anchor_base_font_size; background-color: $toggle_anchor_bg_color; @unless $toggle_anchor_box_shadow_dimensions?? { @if $toggle_anchor_box_shadow_color === 'transparent' { box-shadow: none; } @if $toggle_anchor_box_shadow_color !== 'transparent' { box-shadow: $toggle_anchor_box_shadow_dimensions $toggle_anchor_box_shadow_color; } } } .$_el.x-anchor .x-anchor-content { flex-direction: $toggle_anchor_flex_direction; justify-content: $toggle_anchor_flex_justify; align-items: $toggle_anchor_flex_align; @if $toggle_anchor_flex_wrap === true { flex-wrap: wrap; align-content: $toggle_anchor_flex_align; } @unless $toggle_anchor_padding?? { padding: $toggle_anchor_padding; } } .$_el.x-anchor[class*="active"] { @unless $toggle_anchor_border_width?? || $toggle_anchor_border_style?? { border-color: $toggle_anchor_border_color_alt; } background-color: $toggle_anchor_bg_color_alt; @unless $toggle_anchor_box_shadow_dimensions?? { @if $toggle_anchor_box_shadow_color_alt === 'transparent' { box-shadow: none; } @if $toggle_anchor_box_shadow_color_alt !== 'transparent' { box-shadow: $toggle_anchor_box_shadow_dimensions $toggle_anchor_box_shadow_color_alt; } } } @unless $toggle_anchor_text === false { .$_el.x-anchor .x-anchor-text { @if $toggle_anchor_text_overflow === true && $toggle_anchor_flex_direction === 'column' { width: 100%; } @unless $toggle_anchor_text_margin?? { margin: $toggle_anchor_text_margin; } } @if $toggle_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: $toggle_anchor_primary_font_family; font-size: $toggle_anchor_primary_font_size; font-style: $toggle_anchor_primary_font_style; font-weight: $toggle_anchor_primary_font_weight; line-height: $toggle_anchor_primary_line_height; @unless $toggle_anchor_primary_letter_spacing?? { letter-spacing: $toggle_anchor_primary_letter_spacing; margin-right: calc($toggle_anchor_primary_letter_spacing * -1); } @unless $toggle_anchor_primary_text_align?? { text-align: $toggle_anchor_primary_text_align; } @unless $toggle_anchor_primary_text_decoration?? { text-decoration: $toggle_anchor_primary_text_decoration; } @unless $toggle_anchor_primary_text_shadow_dimensions?? { @if $toggle_anchor_primary_text_shadow_color === 'transparent' { text-shadow: none; } @if $toggle_anchor_primary_text_shadow_color !== 'transparent' { text-shadow: $toggle_anchor_primary_text_shadow_dimensions $toggle_anchor_primary_text_shadow_color; } } @unless $toggle_anchor_primary_text_transform?? { text-transform: $toggle_anchor_primary_text_transform; } color: $toggle_anchor_primary_text_color; } .$_el.x-anchor[class*="active"] .x-anchor-text-primary { @unless $toggle_anchor_primary_text_shadow_dimensions?? { @if $toggle_anchor_primary_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $toggle_anchor_primary_text_shadow_color_alt !== 'transparent' { text-shadow: $toggle_anchor_primary_text_shadow_dimensions $toggle_anchor_primary_text_shadow_color_alt; } } color: $toggle_anchor_primary_text_color_alt; } @if $toggle_anchor_has_template === true { @unless $toggle_anchor_text_secondary_content === '' { .$_el.x-anchor .x-anchor-text-secondary { @if $toggle_anchor_text_reverse === true { margin-bottom: $toggle_anchor_text_spacing; } @if $toggle_anchor_text_reverse === false { margin-top: $toggle_anchor_text_spacing; } font-family: $toggle_anchor_secondary_font_family; font-size: $toggle_anchor_secondary_font_size; font-style: $toggle_anchor_secondary_font_style; font-weight: $toggle_anchor_secondary_font_weight; line-height: $toggle_anchor_secondary_line_height; @unless $toggle_anchor_secondary_letter_spacing?? { letter-spacing: $toggle_anchor_secondary_letter_spacing; margin-right: calc($toggle_anchor_secondary_letter_spacing * -1); } @unless $toggle_anchor_secondary_text_align?? { text-align: $toggle_anchor_secondary_text_align; } @unless $toggle_anchor_secondary_text_decoration?? { text-decoration: $toggle_anchor_secondary_text_decoration; } @unless $toggle_anchor_secondary_text_shadow_dimensions?? { @if $toggle_anchor_secondary_text_shadow_color === 'transparent' { text-shadow: none; } @if $toggle_anchor_secondary_text_shadow_color !== 'transparent' { text-shadow: $toggle_anchor_secondary_text_shadow_dimensions $toggle_anchor_secondary_text_shadow_color; } } @unless $toggle_anchor_secondary_text_transform?? { text-transform: $toggle_anchor_secondary_text_transform; } color: $toggle_anchor_secondary_text_color; } .$_el.x-anchor[class*="active"] .x-anchor-text-secondary { @unless $toggle_anchor_secondary_text_shadow_dimensions?? { @if $toggle_anchor_secondary_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $toggle_anchor_secondary_text_shadow_color_alt !== 'transparent' { text-shadow: $toggle_anchor_secondary_text_shadow_dimensions $toggle_anchor_secondary_text_shadow_color_alt; } } color: $toggle_anchor_secondary_text_color_alt; } } } } @if $toggle_anchor_has_template === true && $toggle_anchor_graphic === true { .$_el.x-anchor .x-graphic { @unless $toggle_anchor_graphic_margin?? { margin: $toggle_anchor_graphic_margin; } } @if $toggle_anchor_graphic_type === 'icon' { .$_el.x-anchor .x-graphic-icon { @if $toggle_anchor_graphic_icon_width !== 'auto' { width: $toggle_anchor_graphic_icon_width; } @unless $toggle_anchor_graphic_icon_border_width?? || $toggle_anchor_graphic_icon_border_style?? { border-width: $toggle_anchor_graphic_icon_border_width; border-style: $toggle_anchor_graphic_icon_border_style; border-color: $toggle_anchor_graphic_icon_border_color; } @unless $toggle_anchor_graphic_icon_border_radius?? { border-radius: $toggle_anchor_graphic_icon_border_radius; } @if $toggle_anchor_graphic_icon_height !== 'auto' { height: $toggle_anchor_graphic_icon_height; line-height: $toggle_anchor_graphic_icon_height; } font-size: $toggle_anchor_graphic_icon_font_size; @unless $toggle_anchor_graphic_icon_text_shadow_dimensions?? { @if $toggle_anchor_graphic_icon_text_shadow_color === 'transparent' { text-shadow: none; } @if $toggle_anchor_graphic_icon_text_shadow_color !== 'transparent' { text-shadow: $toggle_anchor_graphic_icon_text_shadow_dimensions $toggle_anchor_graphic_icon_text_shadow_color; } } color: $toggle_anchor_graphic_icon_color; @if $toggle_anchor_graphic_icon_bg_color !== 'transparent' { background-color: $toggle_anchor_graphic_icon_bg_color; } @unless $toggle_anchor_graphic_icon_box_shadow_dimensions?? { @if $toggle_anchor_graphic_icon_box_shadow_color === 'transparent' { box-shadow: none; } @if $toggle_anchor_graphic_icon_box_shadow_color !== 'transparent' { box-shadow: $toggle_anchor_graphic_icon_box_shadow_dimensions $toggle_anchor_graphic_icon_box_shadow_color; } } } @if $toggle_anchor_graphic_has_alt === true { .$_el.x-anchor .x-graphic-icon[class*="active"] { @unless $toggle_anchor_graphic_icon_text_shadow_dimensions?? { @if $toggle_anchor_graphic_icon_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $toggle_anchor_graphic_icon_text_shadow_color_alt !== 'transparent' { text-shadow: $toggle_anchor_graphic_icon_text_shadow_dimensions $toggle_anchor_graphic_icon_text_shadow_color_alt; } } color: $toggle_anchor_graphic_icon_color_alt; @unless $toggle_anchor_graphic_icon_border_width?? || $toggle_anchor_graphic_icon_border_style?? { border-color: $toggle_anchor_graphic_icon_border_color_alt; } @if $toggle_anchor_graphic_icon_bg_color_alt !== 'transparent' { background-color: $toggle_anchor_graphic_icon_bg_color_alt; } @unless $toggle_anchor_graphic_icon_box_shadow_dimensions?? { @if $toggle_anchor_graphic_icon_box_shadow_color_alt === 'transparent' { box-shadow: none; } @if $toggle_anchor_graphic_icon_box_shadow_color_alt !== 'transparent' { box-shadow: $toggle_anchor_graphic_icon_box_shadow_dimensions $toggle_anchor_graphic_icon_box_shadow_color_alt; } } } } } @if $toggle_anchor_graphic_type === 'image' { .$_el.x-anchor .x-graphic-image { @unless $toggle_anchor_graphic_image_max_width?? { max-width: $toggle_anchor_graphic_image_max_width; } } } @if $toggle_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 $toggle_anchor_has_template === true && $toggle_anchor_type === 'menu-item' && $toggle_anchor_sub_indicator === true { .$_el.x-anchor .x-anchor-sub-indicator { @if $toggle_anchor_sub_indicator_width !== 'auto' { width: $toggle_anchor_sub_indicator_width; } @if $toggle_anchor_sub_indicator_height !== 'auto' { height: $toggle_anchor_sub_indicator_height; line-height: $toggle_anchor_sub_indicator_height; } @unless $toggle_anchor_sub_indicator_margin?? { margin: $toggle_anchor_sub_indicator_margin; } font-size: $toggle_anchor_sub_indicator_font_size; @unless $toggle_anchor_sub_indicator_text_shadow_dimensions?? { @if $toggle_anchor_sub_indicator_text_shadow_color === 'transparent' { text-shadow: none; } @if $toggle_anchor_sub_indicator_text_shadow_color !== 'transparent' { text-shadow: $toggle_anchor_sub_indicator_text_shadow_dimensions $toggle_anchor_sub_indicator_text_shadow_color; } } color: $toggle_anchor_sub_indicator_color; } .$_el.x-anchor[class*="active"] .x-anchor-sub-indicator { @unless $toggle_anchor_sub_indicator_text_shadow_dimensions?? { @if $toggle_anchor_sub_indicator_text_shadow_color_alt === 'transparent' { text-shadow: none; } @if $toggle_anchor_sub_indicator_text_shadow_color_alt !== 'transparent' { text-shadow: $toggle_anchor_sub_indicator_text_shadow_dimensions $toggle_anchor_sub_indicator_text_shadow_color_alt; } } color: $toggle_anchor_sub_indicator_color_alt; } } @if $toggle_anchor_primary_particle === true { .$_el.x-anchor .x-anchor-particle-primary { width: $toggle_anchor_primary_particle_width; height: $toggle_anchor_primary_particle_height; @unless $toggle_anchor_primary_particle_border_radius?? { border-radius: $toggle_anchor_primary_particle_border_radius; } color: $toggle_anchor_primary_particle_color; transform-origin: $toggle_anchor_primary_particle_transform_origin; } .$_el.x-anchor .x-anchor-particle-primary[class*="active"] { @unless $toggle_anchor_primary_particle_delay?? { transition-delay: $toggle_anchor_primary_particle_delay; } } } @if $toggle_anchor_secondary_particle === true { .$_el.x-anchor .x-anchor-particle-secondary { width: $toggle_anchor_secondary_particle_width; height: $toggle_anchor_secondary_particle_height; @unless $toggle_anchor_secondary_particle_border_radius?? { border-radius: $toggle_anchor_secondary_particle_border_radius; } color: $toggle_anchor_secondary_particle_color; transform-origin: $toggle_anchor_secondary_particle_transform_origin; } .$_el.x-anchor .x-anchor-particle-secondary[class*="active"] { @unless $toggle_anchor_secondary_particle_delay?? { transition-delay: $toggle_anchor_secondary_particle_delay; } } } .$_el.x-modal { font-size: $modal_base_font_size; } .$_el.x-modal .x-modal-bg { @unless $modal_bg_color === 'transparent' { background-color: $modal_bg_color; } } .$_el.x-modal .x-modal-close { width: calc(1em * $modal_close_dimensions); height: calc(1em * $modal_close_dimensions); font-size: $modal_close_font_size; color: $modal_close_color; } .$_el.x-modal .x-modal-close:hover, .$_el.x-modal .x-modal-close:focus { color: $modal_close_color_alt; } .$_el.x-modal .x-modal-content-inner { padding: calc($modal_close_font_size * $modal_close_dimensions); } .$_el.x-modal .x-modal-content { max-width: $modal_content_max_width; @unless $modal_content_border_width?? || $modal_content_border_style?? { border-width: $modal_content_border_width; border-style: $modal_content_border_style; border-color: $modal_content_border_color; } @unless $modal_content_border_radius?? { border-radius: $modal_content_border_radius; } @unless $modal_content_padding?? { padding: $modal_content_padding; } @unless $modal_content_bg_color === 'transparent' { background-color: $modal_content_bg_color; } @unless $modal_content_box_shadow_dimensions?? { box-shadow: $modal_content_box_shadow_dimensions $modal_content_box_shadow_color; } }