Skip to content

Add black bg to mobile BLM + lighter menu for a11y #2618

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion themes/vue/layout/layout.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</head>
<body class="<%- isIndex ? '' : 'docs' -%>">
<div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>>
<a class="menu-button"></a>
<a class="menu-button blm"></a>
<a class="logo" href="/"></a>
<a class="blm-mobile" href="/#">#BlackLivesMatter</a>
</div>
Expand Down
14 changes: 6 additions & 8 deletions themes/vue/source/css/_header.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ red-dot-before(leftPos = -8px)
z-index: $z-header

#blm
background-color: #fff
height: $blm-height
background-color: #000
min-height: $blm-height
padding: $heading-padding-vertical 60px
z-index: $z-header - 1
box-sizing: border-box
text-align: center
color: #fff

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

@media screen and (min-width: 901px)
#blm
background-color: #000
#blm-hashtag
color: #fff

body.docs
#blm
position: fixed
Expand Down Expand Up @@ -176,6 +171,9 @@ body.docs
left: 12px
background: url(../images/menu.png) center center no-repeat
background-size: 24px
&.blm
background: url(../images/menu-blm.png) center center no-repeat
background-size: 24px
.logo
position: absolute
width: 30px
Expand Down
Binary file added themes/vue/source/images/menu-blm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.