Skip to content

Commit

Permalink
Add version warning for viewing unreleased docs (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
dphfox authored Dec 26, 2023
2 parents bcd60d3 + 0b66931 commit 7e5f5a7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
Binary file added docs/assets/aura.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/assets/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{% extends "base.html" %}

{% block announce %}
This information is for a newer, unreleased version of Fusion. Use the version
switcher if you're not on Fusion's dev branch.
{% endblock %}

{% block fonts %}
<!-- Load fonts from Google -->
{% if config.theme.font != false %}
Expand Down
21 changes: 18 additions & 3 deletions docs/assets/theme/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,25 @@
color: var(--fusiondoc-bg-1);
}

.md-banner__inner {
position: relative;
max-width: 100%;
width: fit-content;
margin: 0 auto;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
height: 100%;
}

.md-banner {
background-color: var(--fusiondoc-bg-0);
text-align: center;
.md-banner__inner::before {
content: "";
position: absolute;
top: 0;
left: -50%;
right: -50%;
bottom: 0;
background: url(../aura.png);
background-size: 100% 100%;
}

.md-footer__inner {
Expand Down

0 comments on commit 7e5f5a7

Please sign in to comment.