Skip to content

Commit

Permalink
add a footer
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgryan committed May 9, 2024
1 parent cba7b1e commit 3dd26ab
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 28 deletions.
44 changes: 44 additions & 0 deletions docs/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@import "https://unpkg.com/open-props";

l-map {
display: block;
block-size: 40ch;
isolation: isolate;
z-index: 1;
}

body {
font-family: system-ui;
line-height: 1.6;
margin: 0;
}

h1, h2, h3 {
font-weight: 100;
}

pre {
padding-inline: 0.75rem;
padding-block: 0.5rem;
border-radius: 0.2rem;
overflow-x: auto;
}

main {
inline-size: min(90%, 80ch);
margin-inline: auto;
}

footer {
margin-block-start: var(--size-3);
min-height: 15ch;
background-color: var(--gray-9);
padding: var(--size-3);

& .logo {
color: var(--gray-2);
font-size: var(--font-size-0);
letter-spacing: var(--font-letterspacing-5);
}
}

32 changes: 4 additions & 28 deletions docs/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,8 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>

l-map {
display: block;
block-size: 40ch;
isolation: isolate;
z-index: 1;
}

body {
font-family: system-ui;
line-height: 1.6;
}

h1, h2, h3 {
font-weight: 100;
}

pre {
padding-inline: 0.75rem;
padding-block: 0.5rem;
border-radius: 0.2rem;
overflow-x: auto;
}

main {
inline-size: min(90%, 80ch);
margin-inline: auto;
}
</style>
<link rel="stylesheet" href="/style.css" />
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
Expand Down Expand Up @@ -62,5 +35,8 @@
<a href="{{ get_url(path='@/articles/_index.md') }}">Articles</a>
</nav>
{% block content %}{% endblock %}
<footer>
<div class="logo">Leaflet-HTML</div>
</footer>
</body>
</html>

0 comments on commit 3dd26ab

Please sign in to comment.