Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions docs/_includes/default.njk
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@
{# Global navigation #}
<aside id="nav">
<header>
<a href="/" class="flex">
<img src="/assets/images/logo.svg" alt="Sloth.css" class="w-12 h-12 rounded-full" />
</a>
<div>
<div class="text-xl font-semibold">Sloth.css</div>
<div class="text-sm text-muted font-sans flex gap-2">v{{ meta.version }}</div>
<div class="wordmark">
<a href="/" class="flex">
<img src="/assets/images/logo.svg" alt="Sloth.css" class="w-12 h-12 rounded-full" />
</a>
<div>
<div class="text-xl font-semibold">Sloth.css</div>
<div class="text-sm text-muted font-sans flex gap-2">v{{ meta.version }}</div>
</div>
</div>
<div class="actions">
<a href="{{ repoUrl }}" target="_blank" class="button hollow neutral sm">GitHub</a>
<a href="{{ donationUrl }}" target="_blank" class="button hollow sm">Support</a>
</div>
</header>

Expand Down
12 changes: 11 additions & 1 deletion docs/assets/styles/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,18 @@ body {
width: 11rem;
padding: 1.5rem 1.5rem .5rem 1.5rem;
display: flex;
align-items: center;
flex-direction: column;
gap: 1rem;

.wordmark {
display: flex;
align-items: center;
gap: 1rem;
}
.actions {
display: flex;
gap: .5rem;
}
}

nav {
Expand Down
1 change: 1 addition & 0 deletions eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = function(eleventyConfig) {
eleventyConfig.addGlobalData('repoUrl', 'https://github.com/devmount/sloth.css');
eleventyConfig.addGlobalData('cdnUrl', 'https://unpkg.com/@devmount/sloth.css@^0');
eleventyConfig.addGlobalData('creatorUrl', 'https://devmount.com');
eleventyConfig.addGlobalData('donationUrl', 'https://paypal.me/devmount');
eleventyConfig.addGlobalData('layout', 'default');
eleventyConfig.addGlobalData('toc', true);
eleventyConfig.addGlobalData('meta', {
Expand Down