Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Synchronise colour change in navbar with background

Synchronise colour change in navbar with background

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 623 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 12b1
    12b1
    12b
    wrote on last edited by
    #1

    I am currently working on a site where the About page will have a different background colour, navbar and site title. Please see links below:

    Homepage
    http://foolscap-editions.com/homepage

    About page
    http://foolscap-editions.com/about

    So when you transition between the two pages currently the background colour of the nav bar fades in quicker than the background of the page so feels slightly clunky. Is there a way to avoid this / synchronise?

    Currently I am using the following code:

    /* navbar colour about page*/
    body[data-type="page"][data-id="333"] .navbar{
    background-color: #f28000 !important;
    }

    /* site title text colour about page*/
    body[data-type="page"][data-id="333"] ._Bold {
    color: #ffffff !important;
    }

    /* menu text colour about page*/
    body[data-type="page"][data-id="333"] ._Default{
    color: #ffffff !important;
    }

    1 Reply Last reply
    0
    • edgrbnzE
      edgrbnzE
      edgrbnz
      wrote on last edited by edgrbnz
      #2

      Did you try adding a transition: ease-in-out 1s; and play around with the time?
      Here’s more info about transitions.

      ✦ ✦ ✦

      1 Reply Last reply
      1
      • 12b1
        12b1
        12b
        wrote on last edited by
        #3

        Thanks! Useful link. Managed to make a workaround by simply making navbar transparent, didn't think of that first time round!

        1 Reply Last reply
        1
        • edgrbnzE
          edgrbnzE
          edgrbnz
          wrote on last edited by
          #4

          👌
          That’s the way to do it. Didn’t think of this at all…

          ✦ ✦ ✦

          1 Reply Last reply
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Online Users
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search