From: danix Date: Sun, 26 Feb 2023 05:36:16 +0000 (+0100) Subject: adding more variables to the stylesheet X-Git-Url: https://git.danix.xyz/?p=gitweb-theme-danix.git;a=commitdiff_plain;h=acb5821af94582ff952c119c56c3424573f5cf8b adding more variables to the stylesheet --- diff --git a/gitweb-danixland/gitweb.css b/gitweb-danixland/gitweb.css index 41b3022..bc667be 100644 --- a/gitweb-danixland/gitweb.css +++ b/gitweb-danixland/gitweb.css @@ -45,11 +45,14 @@ a { outline: none; } ------------------------------------------------------------------------- */ :root { --bg: #D8D9CF; + --bg-alt: #F0EEED; --fg: #393E46; + --link: #CF4DCE; } @media screen and (prefers-color-scheme: dark) { :root { --bg: #393E46; + --bg-alt: #222831; --fg: #D8D9CF; } } @@ -77,7 +80,7 @@ body { } a:link, a:visited { - color: #4183C4; + color: var(--link); text-decoration: none; } @@ -134,11 +137,10 @@ td, th { margin-bottom: 20px; font-size: 20px; font-family: Helvetica, Arial, Freesans, Clean, sans-serif; - background: #FFFFFF; /* old browsers */ - background: -moz-linear-gradient(top, #FFFFFF 0%, #F5F5F5 100%); /* firefox */ - background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFFFFF), color-stop(100%,#F5F5F5)); /* webkit */ - filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#F5F5F5',GradientType=0 ); /* ie */ - background: -o-linear-gradient(top, #FFFFFF 0%, #F5F5F5 100%); + background: var(--bg); /* old browsers */ + background: -moz-linear-gradient(top, var(--bg) 0%, var(--bg-alt) 100%); /* firefox */ + background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,var(--bg)), color-stop(100%,var(--bg-alt))); /* webkit */ + background: -o-linear-gradient(top, var(--bg) 0%, var(--bg-alt) 100%); border-bottom: 1px solid #dfdfdf; }