larva modules: header-sticky
header-sticky
README
This needs docs!
Create a README.md in the pattern's directory and add details about using this pattern in markdown.
header-sticky
Twig The markup file.
<div class="header-sticky // {{ header_sticky_classes }}">
<div class="header-sticky-content // {{ header_sticky_content_classes }} ">
<div class="lrv-a-wrapper">
<div class="header-sticky-content-inner // {{ header_sticky_content_inner_classes }}">
{% if icon_logo_wrap %}
<div class="header-sticky-icon-logo-wrap // {{ header_sticky_icon_logo_wrap_classes }} ">
{% endif %}
<div class="header-sticky-icons // {{ header_sticky_icons_classes }} ">
{% include "@larva/objects/o-icon-button/o-icon-button.twig" with o_icon_button_menu %}
{% include "@larva/modules/expandable-search/expandable-search.twig" with expandable_search %}
</div>
<div class="header-sticky-logo // {{ header_sticky_logo_classes }} ">
{% include "@larva/components/c-logo/c-logo.twig" with c_logo %}
</div>
{% if icon_logo_wrap %}
</div>
{% endif %}
{% if read_next %}
{% include "@larva/modules/read-next/read-next.twig" with read_next %}
{% endif %}
{% if o_social_list %}
{% include "@larva/objects/o-social-list/o-social-list.twig" with o_social_list %}
{% endif %}
<div class="header-sticky-links // {{ header_sticky_links_classes }} ">
{% include "@larva/objects/o-header-buttons/o-header-buttons.twig" with o_header_buttons %}
</div>
</div>
</div>
</div>
</div>
header-sticky
JSON The data object for this pattern.
{
"header_sticky_classes": " lrv-u-border-color-grey-light lrv-u-border-b-1 lrv-u-background-color-white lrv-u-width-100p",
"o_icon_button_menu": {
"o_icon_button_classes": "js-MegaMenu-Trigger lrv-u-align-items-center lrv-u-border-a-0 lrv-u-flex lrv-u-padding-lr-1 lrv-u-background-color-transparent lrv-u-color-brand-primary:hover",
"o_icon_button_ga_tracking": {},
"o_icon_button_rel_attr": "",
"o_icon_button_screen_reader_text": "Click to expand the Mega Menu",
"o_icon_button_target_attr": "",
"c_icon": {
"c_icon_link_classes": "",
"c_icon_name": "hamburger",
"c_icon_target_attr": "_blank",
"c_icon_link_screen_reader_text": "Icon Link",
"c_icon_url": false,
"c_icon_classes": "lrv-u-display-block lrv-u-width-30 lrv-u-height-30",
"c_icon_rel_name": "noopener noreferrer",
"c_icon_screen_reader_tag_text": "",
"c_icon_screen_reader_text": "Plus Icon",
"c_icon_screen_reader_title_attr": "Plus Icon"
},
"c_span": {
"modifier_class": "",
"c_span_classes": "lrv-u-margin-l-050",
"c_span_text": "",
"c_span_url": false,
"c_span_link_classes": ""
}
},
"c_logo": {
"c_logo_is_h1": false,
"c_logo_classes": "",
"c_logo_url": "/",
"c_logo_svg": "brand-logo",
"c_logo_screen_reader_text": "Logo text"
},
"read_next": false,
"expandable_search": {
"expandable_search_outer_classes": "js-ExpandableSearch lrv-u-flex lrv-u-margin-l-auto lrv-a-glue-parent",
"expandable_search_classes": "js-ExpandableSearch-target lrv-a-unstyle-button lrv-u-color-black js-fade js-fade-is-out",
"expandable_search_inner_classes": "lrv-u-height-auto lrv-a-glue lrv-a-glue--l-0 lrv-a-glue--t-50p lrv-u-flex lrv-u-transform-translateY-n50p",
"o_icon_button_search": {
"o_icon_button_classes": "lrv-a-unstyle-button lrv-a-unstyle-link lrv-u-cursor-pointer lrv-u-flex js-ExpandableSearch-trigger",
"o_icon_button_ga_tracking": {},
"o_icon_button_rel_attr": "",
"o_icon_button_screen_reader_text": "Click to Expand Search Input",
"o_icon_button_target_attr": "",
"c_icon": {
"c_icon_link_classes": "",
"c_icon_name": "search",
"c_icon_target_attr": "_blank",
"c_icon_link_screen_reader_text": "Icon Link",
"c_icon_url": false,
"c_icon_classes": " lrv-u-display-block lrv-u-width-24 lrv-u-height-24 lrv-u-color-brand-primary:hover",
"c_icon_rel_name": "noopener noreferrer",
"c_icon_screen_reader_tag_text": "",
"c_icon_screen_reader_text": "Plus Icon",
"c_icon_screen_reader_title_attr": "Plus Icon"
},
"c_span": false
},
"search_form": {
"search_form_classes": "",
"search_form_action_url": "#",
"search_form_is_swiftype": false,
"search_form_input_classes": "",
"search_form_input_placeholder_attr": "Search...",
"search_form_submit_classes": ""
}
},
"o_social_list": false,
"o_header_buttons": {
"c_login_link": {
"modifier_class": "",
"c_link_classes": " lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover",
"c_link_text": "Log In",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"c_subscribe_link": {
"modifier_class": "",
"c_link_classes": "lrv-a-unstyle-button lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover",
"c_link_text": "Subscribe",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"o_account_menu": {
"o_account_menu_classes": "js-Tooltip-parent lrv-a-glue-parent lrv-u-flex",
"o_account_content_classes": "js-Tooltip lrv-a-glue lrv-a-glue--t-100p lrv-u-box-shadow-medium",
"o_account_content_inner_classes": "lrv-a-glue-parent lrv-a-icon-after-arrow-top-left lrv-u-background-color-white lrv-u-border-a-2 lrv-u-flex lrv-u-flex-direction-column lrv-u-text-align-left lrv-u-flex-wrap-wrap lrv-u-margin-t-1 lrv-u-padding-tb-050 lrv-u-padding-lr-150 lrv-u-width-200",
"o_account_welcome_span_classes": "lrv-u-border-b-1 lrv-u-padding-tb-050",
"o_account_manage_account_classes": "lrv-u-border-b-1 lrv-u-padding-tb-050",
"o_account_logout_classes": "lrv-u-padding-tb-050",
"c_welcome_span": {
"modifier_class": "",
"c_span_classes": "subscriber-name lrv-a-font-body lrv-u-color-black lrv-u-font-size-12 lrv-u-text-transform-uppercase",
"c_span_text": "Welcome Name",
"c_span_url": "#",
"c_span_link_classes": "lrv-u-color-black lrv-u-color-brand-primary:hover"
},
"c_account_link": {
"modifier_class": "",
"c_link_classes": " lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover lrv-u-margin-tb-025",
"c_link_text": "Account",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"c_manage_account": {
"modifier_class": "",
"c_link_classes": "subscriber-self-care-link lrv-u-text-transform-uppercase lrv-a-font-secondary lrv-u-color-black lrv-u-font-size-12 lrv-u-width-100 lrv-u-text-align-center lrv-u-color-brand-primary:hover",
"c_link_text": "Manage Account",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"c_log_out": {
"modifier_class": "",
"c_link_classes": "subscriber-logout-link lrv-a-font-secondary lrv-u-color-black lrv-u-color-brand-primary:hover lrv-u-font-size-12 lrv-u-text-transform-uppercase",
"c_link_text": "Sign Out",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
}
},
"c_got_a_tip": {
"modifier_class": "",
"c_link_classes": "lrv-a-unstyle-link lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-b-1 lrv-u-border-color-white lrv-u-border-color-brand-primary:hover",
"c_link_text": "Got A Tip?",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"c_account_link": {
"modifier_class": "",
"c_link_classes": "lrv-u-text-transform-uppercase lrv-u-font-family-body lrv-u-font-size-12 lrv-u-font-size-8@mobile-max lrv-u-color-brand-primary:hover lrv-u-border-color-white lrv-u-border-color-brand-primary:hover",
"c_link_text": "Account",
"c_link_url": "#",
"c_link_rel_attr": false,
"c_link_aria_label_attr": false,
"c_link_target_attr": false
},
"button_wrap": false,
"show_flyout": true,
"o_header_button_classes": "lrv-a-space-children-horizontal lrv-a-space-children--1",
"got_tip_wrapper_classes": "lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-flex lrv-u-align-items-center lrv-u-margin-tb-025 lrv-a-hidden@mobile-max",
"account_menu_classes": "lrv-u-flex lrv-u-align-items-center lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-margin-tb-025",
"hide_flyout_classes": " ",
"subscribe_wrapper_classes": "subscribe-link cx-dynamic-link lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-u-margin-tb-025",
"login_wrapper_classes": "lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-padding-tb-025 lrv-a-hidden@mobile-max",
"button_wrap_classes": "lrv-u-flex lrv-u-flex-direction-column lrv-u-align-items-center lrv-u-border-l-00@mobile-max lrv-u-border-l-1 lrv-u-padding-l-1 lrv-u-margin-tb-025"
},
"icon_logo_wrap": false,
"header_sticky_content_classes": "lrv-u-border-b-1 lrv-u-border-t-1 lrv-u-margin-t-025 lrv-u-padding-t-050 lrv-u-padding-b-050",
"header_sticky_content_inner_classes": " lrv-u-flex lrv-u-justify-content-space-between lrv-u-align-items-center",
"header_sticky_icon_logo_wrap_classes": " lrv-u-flex lrv-u-justify-content-space-between lrv-u-align-items-center",
"header_sticky_links_classes": "lrv-u-align-items-center lrv-u-flex lrv-u-justify-content-end",
"header_sticky_logo_classes": "lrv-u-align-items-center lrv-u-flex lrv-u-flex-shrink-0 lrv-u-justify-content-center lrv-u-margin-lr-00@desktop lrv-u-margin-lr-auto",
"header_sticky_inner_classes": "lrv-u-align-items-center lrv-u-flex",
"header_sticky_outer_classes": "lrv-a-wrapper",
"header_sticky_icons_classes": "lrv-a-glue-parent lrv-u-align-items-center lrv-u-flex lrv-u-padding-r-1"
}