Skip to content

Commit 3926816

Browse files
authored
feature: Add black bg to mobile BLM + lighter menu for a11y (#2618)
1 parent cee0c42 commit 3926816

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

themes/vue/layout/layout.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</head>
9292
<body class="<%- isIndex ? '' : 'docs' -%>">
9393
<div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>>
94-
<a class="menu-button"></a>
94+
<a class="menu-button blm"></a>
9595
<a class="logo" href="/"></a>
9696
<a class="blm-mobile" href="/#">#BlackLivesMatter</a>
9797
</div>

themes/vue/source/css/_header.styl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ red-dot-before(leftPos = -8px)
1818
z-index: $z-header
1919

2020
#blm
21-
background-color: #fff
22-
height: $blm-height
21+
background-color: #000
22+
min-height: $blm-height
2323
padding: $heading-padding-vertical 60px
2424
z-index: $z-header - 1
2525
box-sizing: border-box
2626
text-align: center
27+
color: #fff
2728

2829
#blm-hashtag
2930
font-weight: bold
@@ -40,12 +41,6 @@ red-dot-before(leftPos = -8px)
4041
color: $green
4142
white-space: nowrap
4243

43-
@media screen and (min-width: 901px)
44-
#blm
45-
background-color: #000
46-
#blm-hashtag
47-
color: #fff
48-
4944
body.docs
5045
#blm
5146
position: fixed
@@ -176,6 +171,9 @@ body.docs
176171
left: 12px
177172
background: url(../images/menu.png) center center no-repeat
178173
background-size: 24px
174+
&.blm
175+
background: url(../images/menu-blm.png) center center no-repeat
176+
background-size: 24px
179177
.logo
180178
position: absolute
181179
width: 30px

themes/vue/source/images/menu-blm.png

257 Bytes
Loading

0 commit comments

Comments
 (0)