From c150d1b42165606665bbfe5b20de1a6d93143638 Mon Sep 17 00:00:00 2001 From: Miranda Wopps <127881339+MirandaWopps@users.noreply.github.com> Date: Sun, 10 Nov 2024 19:56:05 -0300 Subject: [PATCH] Update markdown.css I've being trying to solve errors on development environment and I need to upload something to the university discipline im in. I've dealing with 3 diferent erros for, if we sum everthing, more than 12 hours: all on the "provision" part. --- web/styles/portico/markdown.css | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/web/styles/portico/markdown.css b/web/styles/portico/markdown.css index 183c03dfde..b3f9337731 100644 --- a/web/styles/portico/markdown.css +++ b/web/styles/portico/markdown.css @@ -514,3 +514,30 @@ } } } + + /* If darkmode is preferred by OS */ +@media(prefers-color-scheme: dark){ + .markdown{ + background-color: #000; /* Dark background. */ + color: #fff; + } + + .markdown a{ + color: #39ff14; /* Links green neon to dark mode. */ + } + + .markdown h1, + .markdown h2, + .markdown h3{ + color: #ffffff; /* White letters. */ + } + + .markdown code, + .markdown pre{ + background-color: #333; /* Codes with grey background. */ + color: #e5e5e5; /* Grey light letters. */ + } + +} + +