Skip to content

Commit d125860

Browse files
committed
change navbar-toggler to use SVG background image
1 parent a426c49 commit d125860

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scss/_navbar.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,16 @@
105105
// Bootstrap JavaScript plugin.
106106

107107
.navbar-toggler {
108+
box-sizing: content-box;
109+
width: 1em;
110+
height: 1em;
108111
padding: .5rem .75rem;
109112
font-size: $font-size-lg;
110113
line-height: 1;
111-
background: none;
114+
background: url(data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2016%22%3E%3Crect%20y%3D%222%22%20width%3D%2216%22%20height%3D%221%22%2F%3E%3Crect%20y%3D%227%22%20width%3D%2216%22%20height%3D%221%22%2F%3E%3Crect%20y%3D%2212%22%20width%3D%2216%22%20height%3D%221%22%2F%3E%3C%2Fsvg%3E) no-repeat 50% 50%;
115+
background-clip: content-box;
116+
background-origin: content-box;
117+
background-size: 1em 1em;
112118
border: $border-width solid transparent;
113119
@include border-radius($btn-border-radius);
114120

0 commit comments

Comments
 (0)