Skip to main content

Changing Basemap Switcher with CSS

Comments

5 comments

  • Permanently deleted user
    Hi Denise,

     

    Try this to see if it works. Change the colour to what you need.

     

    .map-bottom-left .flyout-menu-collapsible-area:after {

     

       background: black;

     

    }

     

    Thanks,

     

    Marion.

     

     
    0
  • Denise Beckham
    Marion,

     

    Thank you so much! That did the trick!

     

    However, I did notice that the flyout menu floating area seems to sit one pixel lower than the floutmenuactive tool button.  Is there any way to raise the floating area a pixel? If not, then that's ok though.  I am very grateful that you helped helped me finally get the color of that gap changed!

     

    Thanks,

     

    Denise

     

    User-added image
    0
  • Permanently deleted user
    HI Denise,

     

    Just testing on the dev tools, try this - it should help with the pixel on top, but not sure about the bottom:

     

    .flyout-menu .toolbar-item.toolbar-group {

     

    background-color: black;

     

    }

     

     
    0
  • Denise Beckham
    Marion,

     

    Thank you for your response! I tried using that code and removing part of the code I had before, but it left white space at the bottom of the flyout menu. 

     

    However, I discovered that I had the wrong element colored in! Before, I had the following. 

     

    div.flyout-menu-floating-area {

     

        background-color: #333333;

     

        border: 1px solid #595959;

     

    }

     

    After trying a few different things I discovered that the following fixed the problem. 

     

    div.flyout-menu-collapsible-area.flyout-menu-tools.bound-visible {

     

     background-color: #333333;

     

     border: 1px solid #595959;

     

    }

     

    Now it's all lined up properly and, most importantly, there's no white gap between the button and the flyout menu!

     

    User-added image

     

    Thanks for all your help!

     

    Denise
    0
  • Permanently deleted user
    Hi Denise,

     

    I'm glad you got it working. There are so many selectors in css, it is hard to get the right one!

     

    Marion.

     

     
    0

Please sign in to leave a comment.