Skip to content

Commit

Permalink
Dark nav bar for accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeSteam committed Nov 30, 2024
1 parent 1b1d2d4 commit ef2aa03
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ table_of_contents_collapsible: true
post_end_promo: <i><b>Enjoyed this article? You'll like "<a href="https://jakeweeklee.substack.com">Jake Week Lee</a>", a newsletter of articles & online things!</b></i>
google_analytics: G-HRJSZQJJ2G
replace_read_time_with_word_count: true
show_excerpts_html: true
show_excerpts_html: false
open_external_links_in_new_tab: true
outdated_content_warning:
warning_text: "⚠️ These release notes were last updated <b><DATE></b> and may be outdated."
Expand Down
5 changes: 4 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<div class="site-picker">
<div class="wrapper">
{%- for link in site.network -%}
<a href="{{ link.url }}" class="site-tile" style="background: {{ link.colour }}">{{ link.name }}</a>&nbsp;
<a href="{{ link.url }}" class="site-tile" style="background: {{ link.colour }}">
<span class="darken"></span>
<span>{{ link.name }}</span>
</a>&nbsp;
{%- endfor -%}
</div>
</div>
Expand Down
16 changes: 16 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,27 @@ h1:hover .octicon, h2:hover .octicon, h3:hover .octicon, h4:hover .octicon, h5:h
}

.site-tile {
position: relative;
padding: 3.5px 10px 3px 10px;
color: #ffffff !important;
white-space: nowrap;
}

.site-tile .darken {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 1;
}

.site-tile span {
position: relative;
z-index: 2;
}

/* Outdated content warning */
.outdated-warning {
padding: 0.75rem 1rem;
Expand Down

0 comments on commit ef2aa03

Please sign in to comment.