Jump to content

Header actions flex design

Go to solution Solved by sorca_marian,

Recommended Posts

Can anybody help me order and stack the header actions components? At about 1160px wide, when the main nav stacks on the left, I want the header actions to stack on the right, but also change order: social media icons, button, language switcher. I'd also like the social media and language switcher to be centered above and below the button, but the button should remain aligned right...

https://sycamorecollab.org/

Here is a screen shot of how I want it to look:Screenshot2024-03-18at4_30_25PM.thumb.png.eb20f35a0b073d980b7b5d1427f71ea4.png

Link to comment

Like this?

 

.header-display-desktop .header-title-nav-wrapper .header-nav-list {
    display: flex;
    flex-direction : column;
    align-items: baseline;
}

.header-display-desktop  .header-actions--right {
    flex-direction : column;
    width: auto;
}

.header-display-desktop .header-actions-action--social {
    order : -2;
}

.header-display-desktop .header-actions-action--cta {
    order : -1;
    margin-top : 5px;
    margin-bottom : 5px;
}

 

Screenshot 2024-03-18 at 22.44.17.png

Link to comment
  • Solution

Updated

.header-display-desktop .header-title-nav-wrapper .header-nav-list {
    display: flex;
    flex-direction : column;
    align-items: baseline;
}

.header-display-desktop .header-nav {
    flex: 0;
}

.header-display-desktop .header-nav,
.header-display-desktop  .header-actions--right {
    flex-direction : column;
    width: auto;
}

.header-display-desktop .header-actions-action--social {
    order : -2;
}

.header-display-desktop .header-actions-action--cta {
    order : -1;
    margin-top : 5px;
    margin-bottom : 5px;
}

 

Screenshot 2024-03-18 at 22.58.47.png

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.