From 2df5b19fd464c5fcda2304a38746db4cee3045a3 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Tue, 31 Jan 2023 11:09:24 +0200 Subject: [PATCH] Sans serif w/ autoindex monospace --- sanic/pages/autoindex.py | 2 +- sanic/pages/base.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sanic/pages/autoindex.py b/sanic/pages/autoindex.py index b2331c66..6639fd39 100644 --- a/sanic/pages/autoindex.py +++ b/sanic/pages/autoindex.py @@ -24,7 +24,7 @@ class AutoIndex(BasePage): # no cov #breadcrumbs .path-0 a::before {{ content: "🏠"; }} #breadcrumbs > span > a {{ color: {BasePage.ACCENT}; }} main a {{ color: inherit; font-weight: bold; }} - table.autoindex {{ width: 100%; }} + table.autoindex {{ width: 100%; font-family: monospace; }} table.autoindex tr {{ display: flex; }} table.autoindex tr:hover {{ background-color: #ddd; }} table.autoindex td {{ margin: 0 0.5rem; }} diff --git a/sanic/pages/base.py b/sanic/pages/base.py index fd4d4027..983cc454 100644 --- a/sanic/pages/base.py +++ b/sanic/pages/base.py @@ -11,7 +11,7 @@ class BasePage(ABC): # no cov ACCENT = "#ff0d68" BASE_STYLE = dedent( """ - html { font: 16px monospace; background: #eee; color: #111; } + html { font: 16px sans-serif; background: #eee; color: #111; } body { margin: 0; font-size: 1.25rem; } body > * { padding: 1rem 2vw; } @media (max-width: 1200px) {