docs: Improve footer button design (#31634)
Just touching up these a little bit. I think including the page destination as a label here is a good move! Release Notes: - N/A
This commit is contained in:
parent
0791596cda
commit
a1c645e57e
3 changed files with 43 additions and 35 deletions
37
docs/theme/css/chrome.css
vendored
37
docs/theme/css/chrome.css
vendored
|
@ -177,34 +177,35 @@ a > .hljs {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.nav-wrapper {
|
||||
margin-block-start: 50px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.nav-buttons {
|
||||
.footer-buttons {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 20px 0;
|
||||
padding: 0 10px;
|
||||
gap: 1rem;
|
||||
padding: 24px 0;
|
||||
}
|
||||
|
||||
.nav-button {
|
||||
.footer-button {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
background-color: var(--bg);
|
||||
color: var(--fg) !important;
|
||||
text-decoration: none;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
background-color: var(--footer-btn-bg);
|
||||
border: 1px solid var(--footer-btn-border);
|
||||
border-radius: 0.5rem;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.nav-button:hover {
|
||||
background-color: var(--theme-hover);
|
||||
color: var(--icons-hover) !important;
|
||||
.footer-button:hover {
|
||||
background-color: var(--footer-btn-bg-hover);
|
||||
border-color: var(--footer-btn-border-hover);
|
||||
}
|
||||
|
||||
.nav-button i {
|
||||
padding: 0 6px;
|
||||
.footer-button i {
|
||||
text-decoration: underline !important;
|
||||
text-decoration-color: transparent !important;
|
||||
}
|
||||
|
||||
.mobile-nav-chapters {
|
||||
|
|
10
docs/theme/css/variables.css
vendored
10
docs/theme/css/variables.css
vendored
|
@ -86,6 +86,11 @@
|
|||
--download-btn-border: hsla(220, 60%, 40%, 0.2);
|
||||
--download-btn-border-hover: hsla(220, 60%, 50%, 0.2);
|
||||
--download-btn-shadow: hsla(220, 40%, 60%, 0.1);
|
||||
|
||||
--footer-btn-bg: hsl(220, 60%, 98%, 0.4);
|
||||
--footer-btn-bg-hover: hsl(220, 60%, 93%, 0.5);
|
||||
--footer-btn-border: hsla(220, 60%, 40%, 0.15);
|
||||
--footer-btn-border-hover: hsla(220, 60%, 50%, 0.2);
|
||||
}
|
||||
|
||||
.dark {
|
||||
|
@ -160,4 +165,9 @@
|
|||
--download-btn-border: hsla(220, 90%, 80%, 0.2);
|
||||
--download-btn-border-hover: hsla(220, 90%, 80%, 0.4);
|
||||
--download-btn-shadow: hsla(220, 50%, 60%, 0.15);
|
||||
|
||||
--footer-btn-bg: hsl(220, 90%, 95%, 0.01);
|
||||
--footer-btn-bg-hover: hsl(220, 90%, 50%, 0.05);
|
||||
--footer-btn-border: hsla(220, 90%, 90%, 0.05);
|
||||
--footer-btn-border-hover: hsla(220, 90%, 80%, 0.2);
|
||||
}
|
||||
|
|
31
docs/theme/index.hbs
vendored
31
docs/theme/index.hbs
vendored
|
@ -199,24 +199,21 @@
|
|||
</nav>
|
||||
</div>
|
||||
{{{ content }}}
|
||||
<div class="footer-buttons">
|
||||
{{#previous}}
|
||||
<a rel="prev" href="{{ path_to_root }}{{link}}" class="footer-button" title="{{title}}">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
{{title}}
|
||||
</a>
|
||||
{{/previous}}
|
||||
{{#next}}
|
||||
<a rel="next" href="{{ path_to_root }}{{link}}" class="footer-button" title="{{title}}">
|
||||
{{title}}
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
{{/next}}
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- Navigation arrows -->
|
||||
<div class="nav-wrapper">
|
||||
<div class="nav-buttons">
|
||||
{{#previous}}
|
||||
<a rel="prev" href="{{ path_to_root }}{{link}}" class="nav-button" title="{{title}}" aria-label="Previous chapter">
|
||||
<i class="fa fa-angle-left"></i>
|
||||
</a>
|
||||
{{/previous}}
|
||||
|
||||
{{#next}}
|
||||
<a rel="next" href="{{ path_to_root }}{{link}}" class="nav-button" title="{{title}}" aria-label="Next chapter">
|
||||
<i class="fa fa-angle-right"></i>
|
||||
</a>
|
||||
{{/next}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue