Skip to content

Commit

Permalink
Fix ASF Website Check issue. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
weiting-chen authored Sep 9, 2024
1 parent bffb8fc commit de86f79
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
7 changes: 4 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,11 @@ heading_anchors: true

# External navigation links
#nav_external_links:
# - title: Just the Docs on GitHub
# url: https://github.com/just-the-docs/just-the-docs
# - title: Foundation
# url: https://www.apache.org/
# hide_icon: false # set to true to hide the external link icon - defaults to false
# opens_in_new_tab: false # set to true to open this link in a new tab - defaults to false
# opens_in_new_tab: true # set to true to open this link in a new tab - defaults to false


color_scheme: light

Expand Down
63 changes: 63 additions & 0 deletions _includes/header_custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<style>
/* Style The Dropdown Button */
.dropbtn {
background-color: #0000ff80;
color: white;
padding: 22px;
width: 100%;
font-size: 14px;
border: none;
cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
color: black;
padding: 12px 14px;
text-decoration: none;
display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: #f1f1f1}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover .dropbtn {
background-color: #0000ff;
}
</style>

<!-- Collect the nav links, forms, and other content for toggling -->
<div class="dropdown" id="apache-navbar" style="float:left;">
<button class="dropbtn">ASF</button>
<div class="dropdown-content">
<a class="dropdown-item" href="https://www.apache.org/">Foundation</a>
<a class="dropdown-item" href="https://www.apache.org/events/current-event.html">Event</a>
<a class="dropdown-item" href="https://www.apache.org/licenses/">License</a>
<a class="dropdown-item" href="https://www.apache.org/foundation/sponsorship.html">Sponsorship</a>
<a class="dropdown-item" href="https://www.apache.org/security/">Security</a>
<a class="dropdown-item" href="https://privacy.apache.org/policies/privacy-policy-public.html">Privacy</a>
<a class="dropdown-item" href="https://www.apache.org/foundation/thanks.html">Thanks</a>
</div>
</div><!-- /.navbar-collapse -->
22 changes: 0 additions & 22 deletions asf.md

This file was deleted.

0 comments on commit de86f79

Please sign in to comment.