[Resolved] Formatting the Navigation Search Box

Home Forums Support [Resolved] Formatting the Navigation Search Box

Home Forums Support Formatting the Navigation Search Box

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #690256
    lunatrix

    I would like to add a border around the active search box that matches my site colours. Currently, I have managed to style it with a light grey background, but when you click on it and start to type, a light blue border box appears (see attached) around it. I would like that box to be as soon as I click on the search icon, and I want to make it orange (#e37222)

    light blue border box

    #690329
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Give this CSS a shot:

    .navigation-search input {
        outline: 0 !important;
    }
    
    .nav-search-active {
        border: 2px solid #e37222 !important;
        border-radius: 5px;
        margin-top: -2px;
    }
    #690337
    lunatrix

    Perfect ! How can I make the corners a little more ‘soft’ ? I tried border-radius, but since it’s outline and not border, it’s still squaring off the corners.

    PS – I’m LOVING GeneratePress, it’s so easy to configure πŸ™‚

    #690342
    Tom
    Lead Developer
    Lead Developer

    Try the above instead: https://generatepress.com/forums/topic/formatting-the-navigation-search-box/#post-690329

    Thank you! Great to hear πŸ™‚

    #690348
    lunatrix

    That’s exactly what I wanted. Thanks!

    #690822
    Tom
    Lead Developer
    Lead Developer

    You’re welcome πŸ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.