A
A
Andrey Filimonov2017-02-06 15:09:53
JavaScript
Andrey Filimonov, 2017-02-06 15:09:53

How to change the background of the menu bars in the mobile version?

Hello, tell me, please, how to change the background of the cross of the opened menu? 9c94558fda6c4c59920b14811607df66.png
When the screen is less than 659 px. I'm trying to make a black cross with a white/transparent background. But the closed menu should also look like 3 black stripes with a white background, like 68929ed39f09489897b924edb29eb8d6.png
here pen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Zhubartovich, 2017-02-06
@fil_and

@media only screen and (max-width: 659px)
  #menu-icon,
  #menu-icon:active {
    background: transparent;
  }

  #menu-icon span,
  #menu-icon:active span {
    border: 2px solid #000;
  }

}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question