Skip to content

Commit

Permalink
add download pdf link and update header colors
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCrew committed Oct 2, 2024
1 parent c348ea0 commit b04c01a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
2 changes: 2 additions & 0 deletions preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
:!table-caption:
//:page-role: -toc
:page-pagination:
:pdf-filename: index.pdf
:page-pdf-filename: index.pdf

[.float-group]
--
Expand Down
8 changes: 4 additions & 4 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
--nav-border-color: var(--color-gray-10);
--nav-line-height: 1.35;
--nav-heading-font-color: var(--color-txlogo-reds-7);
--nav-muted-color: var(--color-gray-70);
--nav-muted-color: var(--color-threatx-cod-gray);
--nav-panel-divider-color: var(--color-smoke-90);
--nav-secondary-background: var(--color-smoke-70);
/* toolbar */
Expand Down Expand Up @@ -117,15 +117,15 @@
--heading-font-weight: bold;
--alt-heading-font-weight: var(--body-font-weight-bold);
--section-divider-color: var(--color-txlogo-greys-4);
--link-font-color: #1565c0;
--link_hover-font-color: #104d92;
--link-font-color: var(--color-txlogo-reds-7);
--link_hover-font-color: var(--color-txlogo-reds-5);
--link_unresolved-font-color: var(--important-color);
--abstract-background: var(--color-smoke-70);
--abstract-font-color: var(--color-jet-20);
--abstract-border-color: var(--panel-border-color);
--admonition-background: var(--panel-background);
--admonition-label-font-weight: var(--body-font-weight-bold);
--caption-font-color: var(--color-threatx-tree-poppy);
--caption-font-color: var(--color-threatx-glaucous);
--caption-font-style: italic;
--caption-font-weight: var(--body-font-weight-bold);
--code-background: var(--color-smoke-70);
Expand Down
5 changes: 4 additions & 1 deletion src/partials/footer-content.hbs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<footer class="footer">
<p>© Copyright 2024 Threat X, Inc. All rights reserved.</p>
<p align="center">
<a style="color:#c1c1c1" href="https://www.threatx.com">ThreatX.com</a> | <a style="color:lightgray" href="mailto:support@threatx.com">Support</a>
</p>
<p align="center"><em>© Copyright 2024 Threat X, Inc. All rights reserved.</em></p>
</footer>
11 changes: 7 additions & 4 deletions src/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-end">
<a class="navbar-item" href="#">📚 Home</a>
<a class="navbar-item" href="mailto:support@threatx.com">🛟 Support</a>
<div class="navbar-item has-dropdown is-hoverable">
</div>
{{#if page.attributes.pdf-filename}}
<div class="navbar-item">
<span class="control">
<a class="button is-primary" href="{{{page.attributes.pdf-filename}}}">📥 Download PDF</a>
</span>
</div>
{{/if}}
</div>
</div>
</nav>
Expand Down
3 changes: 3 additions & 0 deletions src/partials/toolbar.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
{{/with}}
{{> breadcrumbs}}
{{> page-versions}}
{{#if page.editUrl}}
<div class="edit-this-page"><a href="{{page.editUrl}}"></a></div>
{{/if}}
</div>

0 comments on commit b04c01a

Please sign in to comment.