Re: [Galette-discussion] Modification CSS ? |
[ Thread Index |
Date Index
| More lists.galette.eu/users Archives
]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Re: [Galette-discussion] Modification CSS ?
- From: Johan Cwiklinski <johan@xxxxxxxx>
- Date: Mon, 23 Oct 2023 15:58:16 +0200
- Authentication-results: garm.ovh; auth=pass (GARM-98R002c8f2b16b-5927-4436-94af-e61ccaf95740, 23663C106CCF0E7CA5E9ED7CFB938452F73AE8ED) smtp.auth=trasher@xxxxxxxx
- Autocrypt: addr=johan@xxxxxxxx; keydata= xsDiBEREJRkRBADXks2BblFxHgRP984vxxgf/2pvwalevw323L7DipKGwBcUNZXTMe0ZIBJz J8lKr93DfwX9ZbyYBlzBiLdBH3jdzY2hu91K6k+s6VHFW3S7HPp9fx02MWRb+FkgDS6UH78X ugTQOVaafH2wGHlz2JcghAJjvLh5VlTOP3cnp7oy9wCg8tiVJHLB2k4ImNLaIjSVjKgmHlME ALxSYZtz8CziA4Z0YHs2T6ehQrvsNadFm9jTkwHBpLR39GpF1tWnA7jzzinvwY4lyaWuK/Dq duzaHcMrt++xTnUBVC7t1pRy9L+jwJ+YMp10nsVBgYpuf+cF9o7klHhxnG9yWY0wFOWnc6Pv BUU1xP9HYw8Fps86v8hkFM3ehOyVA/4n98P/QKR9bJvhtcT9/cxviFqvGEazC5TI4h+SQzB4 PU6UTKbDvOdW9uyIu6DrhLCxMytlK5A9mq3Zda9ObgHTp+6qVHTmh+igC5gsTL4pIyfeLemi ml3GHrrsGn0LGC/XdH+h/gwVBme1l0bPpYm5+G4Oo1wW+DIeskp5eCg/MM0rSm9oYW4gQ3dp a2xpbnNraSAoVHJhc2hlcikgPGpvaGFuQHgtdG5kLmJlPsJjBBMRAgAjAhsDBgsJCAcDAgQV AggDBBYCAwECHgECF4AFAk74aC8CGQEACgkQ7N2B+4uln5QCRQCghZ6Bm2s6cmHZQa6rzqIl ZFkUBukAn1h7Jh0KW2LFjz86XXqdQxI2vxlDzsFNBEREJTwQCACaK+nWjmCJAcfoGlT7r3ed Z6etzZTtl+n+F3nNHoMi4oDA7IMXDGh12DQCvBCYJ/LwyzmXb3F6V/stZTkKgbrKFdG7om5V dHGfGfUeHx3azNMWYqjKzYr1FP84ZkGaf74td94mN7VJG9NfehsO0gwUE92BhKoqB/NO0n03 4eP7s0C+IDYdTwvQd+Ze01Ue1UcfBio8i98ERVeKPdPR4MkOcXseMIjwt0zzh/glQSp6Pp06 /mudrIIvbchNPzV7H1VjLd+qfVqDLtRo0lP1cFbOsHpxwF3o12YvI+4Clf7m/vVTyVGzzzSy V1U9tHtl9S42sfxCrI6TRgShBKhGk/bjAAMFCACG89KzryeRtpimyAUmCJIMG8Rw+Rb2XWX5 nXpxSTzpWcWSEUGSprcoOmQmXskkm1p8p8MQ0fsrehqLFFMcyKYtO49DFpJ1C5MsKUUOZtOF oM/ivkZLxYXRWMexkt6uLdNzG2rfryMFu3EGfdVc0oDGb/LFw4XORHiC7dKvQ9IJB1x8Fd5n p0dFcjSOCwL0YzbMDjjlUz46qjE15RmLU8eUjmT1tMsyyoFr5lRRXsCDca8bLsLuNqOtKPGB zsaPWCo9V5Pn4WcjTs3cjtt4eTZ7i+6dCt2Z8UxmArAUIw6sTNVrI4qPcbaGBE9rhs4117Zs 7ib+1+/YiObCSFr/4F51wkkEGBECAAkFAkREJTwCGwwACgkQ7N2B+4uln5TwuACeIsPMX2FG J44EEKDy1E7I3Ocy1z4AoJaR/EBoaSrg9/xP93EI7JPG0VTn
Re,
Le 23/10/2023 à 15:18, eM Villemagne a écrit :
ok je vais essayer de bricoler avec un fichier galette_local.css. et qui
sait, peut-être à terme proposer un thème sombre à partager à la
communauté !
merci Johan pour ta réactivité
:)
Ci-joint, un mini patch avec une alternative possible - mais
malheureusement assez lente :/
++
--
Johan
diff --git a/galette/templates/default/elements/scripts.html.twig b/galette/templates/default/elements/scripts.html.twig
index fc781b96c..fed591c09 100644
--- a/galette/templates/default/elements/scripts.html.twig
+++ b/galette/templates/default/elements/scripts.html.twig
@@ -1,5 +1,6 @@
<script type="text/javascript" src="{{ base_path() }}/{{ constant('GALETTE_THEME') }}ui/semantic.min.js"></script>
<script type="text/javascript" src="{{ base_path() }}/assets/js/galette-main.bundle.min.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/darkreader@4.9.67/darkreader.min.js"></script>
<script type="text/javascript">
function csrfSafeMethod(method) {
@@ -8,6 +9,12 @@
}
$(function(){
+ DarkReader.enable({
+ brightness: 100,
+ contrast: 90,
+ sepia: 10
+ });
+
$.ajaxPrefilter(function(options, originalOptions, jqXHR){
if (options.type.toLowerCase() === "post") {
// initialize `data` to empty string if it does not exist