4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Bootstrap4 ハンバーガーメニューの色変更

Posted at

#CSSで設定する
##1.ハンバーガーメニューの3本線の色を変更する
rgbaのところいじってやるrgba(255,255,255,1)

.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

##2.ハンバーガーメニューの背景色を変更する

.navbar-toggler{
  background-color: #000000;
}

##3.ハンバーガーメニューの枠線を変更する

.navbar-toggler{
  border-color: #ffffff;
}
4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?