You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
147 lines
3.6 KiB
147 lines
3.6 KiB
{% extends "base.html" %}
|
|
|
|
<!--https://squidfunk.github.io/mkdocs-material/customization/#overriding-blocks-->
|
|
|
|
{% block announce %}
|
|
<div style="text-align:center">
|
|
<a href="https://github.com/kyegomez/swarms">Star and contribute</a> to Swarms on GitHub!
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block footer %}
|
|
<footer class="md-footer">
|
|
<!-- Custom Footer Links Section -->
|
|
<div class="md-footer-custom">
|
|
<div class="md-footer-custom__inner md-grid">
|
|
<div class="md-footer-links">
|
|
{% for section_name, links in config.extra.footer_links.items() %}
|
|
<div class="md-footer-links__section">
|
|
<h4 class="md-footer-links__title">{{ section_name }}</h4>
|
|
<ul class="md-footer-links__list">
|
|
{% for link in links %}
|
|
<li class="md-footer-links__item">
|
|
<a href="{{ link.url }}" class="md-footer-links__link">
|
|
{{ link.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Original Material Footer -->
|
|
{{ super() }}
|
|
</footer>
|
|
{% endblock %}
|
|
|
|
{% block styles %}
|
|
{{ super() }}
|
|
<style>
|
|
/* Custom Footer Styling */
|
|
.md-footer-custom {
|
|
background: var(--md-footer-bg-color);
|
|
border-top: 0.05rem solid var(--md-default-fg-color--lightest);
|
|
padding: 2.4rem 0 1.2rem;
|
|
}
|
|
|
|
.md-footer-custom__inner {
|
|
margin: 0 auto;
|
|
padding: 0 1.2rem;
|
|
}
|
|
|
|
.md-footer-links {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 2rem;
|
|
max-width: 1220px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.md-footer-links__section {
|
|
min-width: 0;
|
|
}
|
|
|
|
.md-footer-links__title {
|
|
color: var(--md-default-fg-color);
|
|
font-size: 0.64rem;
|
|
font-weight: 700;
|
|
margin: 0 0 1rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
|
|
padding-bottom: 0.4rem;
|
|
}
|
|
|
|
.md-footer-links__list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.md-footer-links__item {
|
|
margin: 0;
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.md-footer-links__link {
|
|
color: var(--md-default-fg-color--light);
|
|
text-decoration: none;
|
|
font-size: 0.7rem;
|
|
display: block;
|
|
padding: 0.1rem 0;
|
|
transition: color 125ms;
|
|
border-radius: 0.1rem;
|
|
}
|
|
|
|
.md-footer-links__link:hover,
|
|
.md-footer-links__link:focus {
|
|
color: var(--md-accent-fg-color);
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media screen and (max-width: 76.1875em) {
|
|
.md-footer-links {
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.md-footer-custom {
|
|
padding: 2rem 0 1rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 59.9375em) {
|
|
.md-footer-links {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 44.9375em) {
|
|
.md-footer-links {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.md-footer-custom {
|
|
padding: 1.5rem 0 0.8rem;
|
|
}
|
|
|
|
.md-footer-custom__inner {
|
|
padding: 0 1rem;
|
|
}
|
|
}
|
|
|
|
/* Dark mode adjustments */
|
|
[data-md-color-scheme="slate"] .md-footer-custom {
|
|
background: var(--md-footer-bg-color);
|
|
}
|
|
|
|
[data-md-color-scheme="slate"] .md-footer-links__title {
|
|
border-bottom-color: var(--md-default-fg-color--lightest);
|
|
}
|
|
</style>
|
|
{% endblock %} |