Jump to content

Multi-coloured navigation keeps breaking

Recommended Posts

Site URL: https://www.pbsconsultancy.net/

Hi,

 

I'm having trouble with my navigation colours. Each menu item has a designated colour (including its dropdown) but it keeps breaking after I've recently added a new page.

 

The colours should be:

Our services (inc drop downs) - blue #59CBE8

Our impact - red #F9423A

Our support - yellow #FFD100

About (inc drop downs) - Pink #FF29C7

Resources - Green #97D700

News- blue #59CBE8

 

Currently 'Our services' and 'Our support' are not appearing correctly

 

This is the current css:

 

 

.header-actions-action .btn {color: #003349 !important; background-color: #97d700 !important;
}

/* SS 7.1 - Remove nav underline */
header#header a:not(.btn) {
    background-image: none !important;
}
.sqs-block-html a {background-image:none!important}

/* our services hover */
.header-nav-item a[href="/our-services"]:hover {
    color: #59CBE8 !important;
}
/* our services active */
.header-nav-item--active [href="/our-services"] {
    color: #59CBE8 !important;
}
/* our services folder hover */
.header-nav-item:hover>a, .header-nav-folder-item:hover a {
  color: #59CBE8 !important;
}
/* our services folder active color */
.header-nav-item--active>a, .header-nav-folder-item--active>a, .header-menu-nav-item--active>a .header-menu-nav-item--active {
    color: #59CBE8 !important;
}
/* our impact hover */
.header-nav-item a[href="/our-impact"]:hover {
    color: #F9423A !important;
}
/* our impact active */
.header-nav-item--active [href="/our-impact"] {
    color: #F9423A !important;
}

/* our support hover */
.header-nav-item a[href="/why-our-support-is-so-special"]:hover {
    color: #FFD100 !important;
}
/* our support active */
.header-nav-item--active [href="/why-our-support-is-so-special"] {
    color: #FFD100 !important;
}
/* about hover */
.header-nav-item a[href="/about"]:hover {
    color: #FF29C7 !important;
}
/* about active */
.header-nav-item--active [href="/about"] {
    color: #FF29C7 !important;
}
/* about folder hover */
.header-nav-item:hover>a, .header-nav-folder-item:hover a {
  color: #FF29C7 !important;
}
/* about folder active color */
.header-nav-item--active>a, .header-nav-folder-item--active>a, .header-menu-nav-item--active>a .header-menu-nav-item--active {
    color: #FF29C7 !important;
}
/* resources hover */
.header-nav-item a[href="/resources"]:hover {
    color: #97D700 !important;
}
/* resources active */
.header-nav-item--active [href="/resources"] {
    color: #97D700 !important;
}
/* news hover */
.header-nav-item a[href="/news"]:hover {
    color: #59CBE8 !important;
}
/* news active */
.header-nav-item--active [href="/news"] {
    color: #59CBE8 !important;
}

Link to comment
  • Replies 2
  • Views 648
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 7/5/2021 at 9:46 PM, MrPink said:

Site URL: https://www.pbsconsultancy.net/

Hi,

 

I'm having trouble with my navigation colours. Each menu item has a designated colour (including its dropdown) but it keeps breaking after I've recently added a new page.

 

The colours should be:

Our services (inc drop downs) - blue #59CBE8

Our impact - red #F9423A

Our support - yellow #FFD100

About (inc drop downs) - Pink #FF29C7

Resources - Green #97D700

News- blue #59CBE8

 

Currently 'Our services' and 'Our support' are not appearing correctly

 

This is the current css:

 

 

.header-actions-action .btn {color: #003349 !important; background-color: #97d700 !important;
}

/* SS 7.1 - Remove nav underline */
header#header a:not(.btn) {
    background-image: none !important;
}
.sqs-block-html a {background-image:none!important}

/* our services hover */
.header-nav-item a[href="/our-services"]:hover {
    color: #59CBE8 !important;
}
/* our services active */
.header-nav-item--active [href="/our-services"] {
    color: #59CBE8 !important;
}
/* our services folder hover */
.header-nav-item:hover>a, .header-nav-folder-item:hover a {
  color: #59CBE8 !important;
}
/* our services folder active color */
.header-nav-item--active>a, .header-nav-folder-item--active>a, .header-menu-nav-item--active>a .header-menu-nav-item--active {
    color: #59CBE8 !important;
}
/* our impact hover */
.header-nav-item a[href="/our-impact"]:hover {
    color: #F9423A !important;
}
/* our impact active */
.header-nav-item--active [href="/our-impact"] {
    color: #F9423A !important;
}

/* our support hover */
.header-nav-item a[href="/why-our-support-is-so-special"]:hover {
    color: #FFD100 !important;
}
/* our support active */
.header-nav-item--active [href="/why-our-support-is-so-special"] {
    color: #FFD100 !important;
}
/* about hover */
.header-nav-item a[href="/about"]:hover {
    color: #FF29C7 !important;
}
/* about active */
.header-nav-item--active [href="/about"] {
    color: #FF29C7 !important;
}
/* about folder hover */
.header-nav-item:hover>a, .header-nav-folder-item:hover a {
  color: #FF29C7 !important;
}
/* about folder active color */
.header-nav-item--active>a, .header-nav-folder-item--active>a, .header-menu-nav-item--active>a .header-menu-nav-item--active {
    color: #FF29C7 !important;
}
/* resources hover */
.header-nav-item a[href="/resources"]:hover {
    color: #97D700 !important;
}
/* resources active */
.header-nav-item--active [href="/resources"] {
    color: #97D700 !important;
}
/* news hover */
.header-nav-item a[href="/news"]:hover {
    color: #59CBE8 !important;
}
/* news active */
.header-nav-item--active [href="/news"] {
    color: #59CBE8 !important;
}

Also, need help on these?

Site URL – https://www.pbsconsultancy.net/

1. (Mobile – Our support) Reduce space between Be aware and Be resourceful

https://www.pbsconsultancy.net/our-support

pbsconsultancy.net-01-min.png

2. (Tablet – Footer) Email is cut to 2 lines

https://www.pbsconsultancy.net/

pbsconsultancy.net-02-min.png

3. (Tablet – Children and young people) Text is cut to next line.

https://www.pbsconsultancy.net/children-and-young-people

pbsconsultancy.net-03-min.png

4. (Tablet – Our impact) Text is cut to next line.

https://www.pbsconsultancy.net/our-impact

pbsconsultancy.net-04-min.png

5. (Tablet – Resources) Increase space between 3 column?

https://www.pbsconsultancy.net/resources

pbsconsultancy.net-05-min.png

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.