From acb5821af94582ff952c119c56c3424573f5cf8b Mon Sep 17 00:00:00 2001 From: danix Date: Sun, 26 Feb 2023 06:36:16 +0100 Subject: [PATCH] adding more variables to the stylesheet --- gitweb-danixland/gitweb.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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; } -- 2.20.1