Skip to content

Commit a2b22d4

Browse files
committed
Move Admin link to teal bar (footer) / gray bar (home), camouflaged
- _includes/footer.html: admin link moves from .footer-bar-dark to .footer-bar-teal. - index.md: adds the admin link inside .home-divider-bars .bar-light on the home page (where .footer-bars is hidden). - CSS: footer .footer-admin uses accent teal (#007e79) on the teal bar so it's nearly invisible until hovered (white on hover). On home, .home-admin overrides the color to #ccc to match the gray bar's background — completely hidden until hovered.
1 parent 8a7f698 commit a2b22d4

3 files changed

Lines changed: 21 additions & 9 deletions

File tree

_includes/footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<footer class="site-footer">
22
<div class="footer-bars">
3-
<div class="footer-bar-dark">
3+
<div class="footer-bar-dark"></div>
4+
<div class="footer-bar-teal">
45
<a class="footer-admin" href="https://github.com/DasLab/DasLab.github.io/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">Admin</a>
56
</div>
6-
<div class="footer-bar-teal"></div>
77
</div>
88
<div class="institutional-logos">
99
<a href="https://www.stanford.edu/" target="_blank" rel="noopener noreferrer external">

assets/css/style.scss

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -828,12 +828,12 @@ details.show-more {
828828
.footer-bar-dark {
829829
flex: 0 0 68.86%;
830830
background-image: url("{{ '/assets/images/site/public/footer_bar_dark.png' | relative_url }}");
831-
position: relative;
832831
}
832+
.footer-bar-teal { position: relative; }
833833

834834
/* Subtle "Admin" shortcut for lab members — links to CONTRIBUTING.md.
835-
Anchored in the dark bar, low-contrast text so it doesn't pull
836-
attention from the institutional logos but is discoverable. */
835+
Color matches the bar background so it's effectively hidden until
836+
hovered. */
837837
.footer-admin {
838838
position: absolute;
839839
right: 0.6rem;
@@ -842,10 +842,20 @@ details.show-more {
842842
font-size: 0.7rem;
843843
letter-spacing: 0.1em;
844844
text-transform: uppercase;
845-
color: rgba(255, 255, 255, 0.55);
846845
text-decoration: none;
847-
&:hover { color: rgba(255, 255, 255, 1); }
846+
/* Inside the teal footer bar — teal text on teal bg, hidden until
847+
hover. Footer_bar_teal.png is roughly #007e79. */
848+
color: $accent;
849+
&:hover { color: #fff; }
850+
}
851+
852+
/* On the home page, the admin link lives in the gray .bar-light. Match
853+
that bar's #ccc background so it is completely invisible until hovered. */
854+
.home-admin {
855+
color: #ccc;
856+
&:hover { color: $text; }
848857
}
858+
.home-divider-bars .bar-light { position: relative; }
849859
.footer-bar-teal {
850860
flex: 1 1 auto;
851861
background-image: url("{{ '/assets/images/site/public/footer_bar_teal.png' | relative_url }}");

index.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ slug: home
99
<div class="home-banner" role="img" aria-label="Das Lab — RNA fold and function from scratch"></div>
1010
</div>
1111

12-
<div class="home-divider-bars" aria-hidden="true">
12+
<div class="home-divider-bars">
1313
<div class="bar-dark"></div>
14-
<div class="bar-light"></div>
14+
<div class="bar-light">
15+
<a class="footer-admin home-admin" href="https://github.com/DasLab/DasLab.github.io/blob/main/CONTRIBUTING.md" target="_blank" rel="noopener">Admin</a>
16+
</div>
1517
</div>
1618

1719
<div class="home-callouts">

0 commit comments

Comments
 (0)