From ca83188d13e46a2284222d603c1e82a4dd70ab3f Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Thu, 28 Nov 2024 23:15:46 +0100 Subject: [PATCH] fix: remove unused css (#2084) Remove some css that isn't actually used and simplify the templates. For example, get rid of the color-scheme logic, as we're just going to use media preference. --- src/sphinxawesome_theme/header.html | 11 +- src/sphinxawesome_theme/layout.html | 50 ++------- src/sphinxawesome_theme/sidebar.html | 8 +- src/sphinxawesome_theme/static/theme.css | 2 +- src/sphinxawesome_theme/static/theme.js | 2 +- src/theme-src/.eslintrc.js | 13 +-- src/theme-src/css/styles.css | 56 +++++----- src/theme-src/package.json | 8 +- src/theme-src/pnpm-lock.yaml | 134 ++++++++++------------- src/theme-src/tailwind.config.js | 16 +-- 10 files changed, 114 insertions(+), 186 deletions(-) diff --git a/src/sphinxawesome_theme/header.html b/src/sphinxawesome_theme/header.html index af9fb1cb2..3f455d46e 100644 --- a/src/sphinxawesome_theme/header.html +++ b/src/sphinxawesome_theme/header.html @@ -1,7 +1,6 @@ {#- Template file for the header -#} -
+
{#- Extra block at the top of the header #} {%- block header_before %}{% endblock header_before -%} @@ -29,7 +28,7 @@ {%- block header_main_nav %} {%- if theme_main_nav_links|tobool -%} -