Jump to content

How to Create File Folder Style Navigation

Go to solution Solved by Inspirerd,

Recommended Posts

Hey @JZoeller!

Wow that looks cool! I’m willing to take a stab at it. Could you share a link to your website so I can make code for your template/style? (If it’s password protected, please include your password.)

Daniel Rodrigues | Excito LLC
Squarespace Web Design for Photographers & Creatives
🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com
💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers
🤝 Always happy to help and collaborate! Connect with me on LinkedIn.

Link to comment

Hey @JZoeller!

Here is the first draft to show you the concept. Feel free to nitpick and tell me all the adjustments you want (should the line touch the image, should there be more space between the logo and the line, should the links have bigger boxes?)

Make sure to take a look at how it behaves when you scroll the page.

Screenshot2023-11-02at12_46_53PM.thumb.png.a3effdb5009512e28afd378f26ccd494.png

Here is the code (it only applies this style to desktop/not to mobile).

@media screen and (min-width: 768px) {
    .header-nav-item {
        border: solid 1px var(--navigationLinkColor);
        border-bottom: 0;
        padding: 10px 20px;
        position: relative;
    }

    .header-nav-item--active.header-nav-item--active.header-nav-item--active > a {
        background-image: none;
    }
    
    .header-nav-item--active::before,
    .header-nav-item--active::after {
        content: "";
        position: absolute;
        bottom: 0;
        border-bottom: solid 1px var(--navigationLinkColor);
        width: 100000px;
        width: 100vw;
    }

    .header-nav-item--active::before {
        right: 100%;
    }

    .header-nav-item--active::after {
        left: 100%;
    }

    .header-title-nav-wrapper {
        align-items: flex-end;
    }

}

 

Daniel Rodrigues | Excito LLC
Squarespace Web Design for Photographers & Creatives
🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com
💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers
🤝 Always happy to help and collaborate! Connect with me on LinkedIn.

Link to comment
  • Solution

@JZoeller

Here you go! Feel free to increase the padding on the buttons (`.header-nav-item`) or ask me to, if you want them bigger. (The first padding `10px` is vertical and the second `20px` is horizontal.)

@media screen and (min-width: 768px) {
    .header-nav-item {
        border: solid 1px var(--navigationLinkColor);
        border-bottom: 0;
        padding: 10px 20px;
        position: relative;
    }

    .header-nav-item--active.header-nav-item--active.header-nav-item--active>a {
        background-image: none;
    }

    .header-nav-item--active::before,
    .header-nav-item--active::after {
        content: "";
        position: absolute;
        bottom: 0;
        border-bottom: solid 1px var(--navigationLinkColor);
        width: 100000px;
        width: 100vw;
    }

    .header-nav-item--active::before {
        right: 100%;
    }

    .header-nav-item--active::after {
        left: 100%;
    }

    .header-title-nav-wrapper {
        align-items: flex-end;
    }

    .header-announcement-bar-wrapper.header-announcement-bar-wrapper {
        padding-bottom: 0;
    }

    .header-title-logo {
        padding-bottom: 0.6vw;
    }

}

 

Edited by Inspirerd

Daniel Rodrigues | Excito LLC
Squarespace Web Design for Photographers & Creatives
🌐 https://www.excitollc.com/ | ✉ Contact Me: daniel@excitollc.com
💡 Squarespace Enthusiast | 📖 Squarespace Design Blog for Photographers
🤝 Always happy to help and collaborate! Connect with me on LinkedIn.

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.