From: Luc Didry Date: Wed, 9 Oct 2019 16:20:26 +0000 (+0200) Subject: ✨ Allow custom styles system wide X-Git-Url: https://git.immae.eu/?p=github%2Fwallabag%2Fwallabag.git;a=commitdiff_plain;h=7a4c375ebfae5aa43c663b1084acfb68f61b30b8 ✨ Allow custom styles system wide Should fix #4060 --- diff --git a/.gitignore b/.gitignore index 553b0e94..797e0496 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,6 @@ app/Resources/build/ admin-export.json specialexport.json /data/site-credentials-secret-key.txt + +# Custom CSS file +web/custom.css diff --git a/GNUmakefile b/GNUmakefile index 15d737db..865b35e8 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -10,14 +10,14 @@ help: ## Display this help menu clean: ## Clear the application cache rm -rf var/cache/* -install: ## Install wallabag with the latest version +install: customcss ## Install wallabag with the latest version @./scripts/install.sh $(ENV) update: ## Update the wallabag installation to the latest version @./scripts/update.sh $(ENV) dev: ENV=dev -dev: build ## Install the latest dev version +dev: build customcss ## Install the latest dev version @./scripts/dev.sh run: ## Run the wallabag built-in server @@ -27,6 +27,9 @@ build: ## Run webpack @npm install @npm run build:$(ENV) +customcss: + @touch web/custom.css + prepare: clean ## Prepare database for testsuite ifdef DB cp app/config/tests/parameters_test.$(DB).yml app/config/parameters_test.yml diff --git a/src/Wallabag/CoreBundle/Resources/views/base.html.twig b/src/Wallabag/CoreBundle/Resources/views/base.html.twig index c0eecd57..befe2ef2 100644 --- a/src/Wallabag/CoreBundle/Resources/views/base.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/base.html.twig @@ -43,6 +43,7 @@ {% block css %} {% endblock %} + {% block scripts %}