Jump to content

Change the distance between items in the middle of a folder

Go to solution Solved by Ziggy,

Recommended Posts

Hello everyone!
Please help change the distance between items in the middle of a folder.

My code:

/* nav hover */
.header-nav-item>a:hover {
    color: #EF9362 !important;
}
.header-nav-folder-item:hover a {
    color: #EF9362 !important;
}
 
.header-nav-item>a:hover:after {
  content: "";
  display: block;
  height: 1px;
  background-color: #EF9362;
  margin-top: 5px;
 
  
}

// Folder Color //
.header-nav-folder-content {
background: transparent !important;
}


// Folder Link Color  //

.header-nav-folder-item a {
  color: #22181C !important;
}



@media(min-width:767px) {
  .col.wm-sticky-column {
    position:sticky;
    top: 150px;
  }
}

.header-actions .header-nav-item {
  padding-right:1.1vw !important; /**change as needed**/

}

.header-nav-list   {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-pack:end !important;
      -ms-flex-pack:end !important;
          justify-content:flex-end !important;
  .header-nav-item {
     padding-right:1.1vw !important; 
   /**change as needed**/
  }
}

.header-actions--right {
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-pack:justify;
      -ms-flex-pack:justify;
          justify-content:space-between;
}

.header-actions .header-nav-item {
  padding-right:1.5vw !important;
  //change as needed

}

.header-nav-list   {
  display:flex;
  justify-content:flex-start !important;
  .header-nav-item {
     padding-right:1.5vw !important;
    //change as needed
    
  }
}


.header-actions--right {
  display:flex;
  justify-content:space-between;
}


.header-nav-folder-content {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 2.5em;
  margin-left: 0em;
  padding: .0em .0em;
  text-align: left;
  box-sizing: border-box;
  width: 185px;
  z-index: 10;
  padding-top: 0.5vw;
}


.header-nav-item--folder:hover .header-nav-folder-content, .header-nav-item--folder .header-nav-folder-content.focus-within {
  opacity: 1;
  pointer-events: auto;
}

 .header-nav-item--folder:hover .header-nav-folder-content, .header-nav-item--folder .header-nav-folder-content.focus-within {
    opacity: 1;
    pointer-events: auto;
  
}

 

header.png

Link to comment
  • Replies 5
  • Views 200
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Can you share your website URL?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
  • Solution

There's very little padding currently, you can try this Custom CSS to see if that helps:

.header .header-nav-wrapper a {
  padding:0;
}
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
  line-height:1em;
}

 

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

Link to comment
11 minutes ago, Ziggy said:

There's very little padding currently, you can try this Custom CSS to see if that helps:

.header .header-nav-wrapper a {
  padding:0;
}
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
  line-height:1em;
}

 

yes! but I changed line-height on 1.9em and it turned out perfectly.

you're a wizard!

Link to comment

Sorry, I misunderstood slightly, if you want it bigger, use this instead:

.header .header-nav-wrapper a {
  padding:1rem 0;
}
.header-nav .header-nav-item--folder .header-nav-folder-content .header-nav-folder-item {
  line-height:1.3m;
}

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 

  Did I help? Buy me a coffee?

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

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.