X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=gitweb-danixland%2Fgitweb.css;h=a157fdcf722529e6168d566e92bfb498d7c59939;hb=a6a0a341752bdca8f7afe6a5d8492a343345d804;hp=2e92d9148ba499e83322b1bdae59f1d343d409ed;hpb=050112dff54fa9b1de3f3c4c966d7e0a8a52a244;p=gitweb-theme-danix.git diff --git a/gitweb-danixland/gitweb.css b/gitweb-danixland/gitweb.css index 2e92d91..a157fdc 100644 --- a/gitweb-danixland/gitweb.css +++ b/gitweb-danixland/gitweb.css @@ -1,3 +1,7 @@ +/* Fonts +------------------------------------------------------------------------- */ +@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,400;0,600;1,400;1,600&family=Red+Hat+Mono&display=swap'); + /* Reset ------------------------------------------------------------------------- */ @@ -41,8 +45,27 @@ table { a { outline: none; } +/* Colors +------------------------------------------------------------------------- */ +:root { + --bg: #D8D9CF; + --bg-alt: #F0EEED; + --fg: #393E46; + --link: #CF4DCE; + --border: 34,40,49,0.035; + --accent: #FD7014; +} +@media screen and (prefers-color-scheme: dark) { + :root { + --bg: #393E46; + --bg-alt: #222831; + --fg: #D8D9CF; + --border: 216,217,207,0.2; + } +} + -/* General - light theme +/* General ---------------------------------------------------------------------------- */ html { @@ -51,20 +74,20 @@ html { } body { - font: 13px Helvetica,arial,freesans,clean,sans-serif; + font: 13px 'Montserrat',Helvetica,arial,freesans,clean,sans-serif; line-height: 1.4; margin: 0 0 105px; - background-color: #fff; - color: #000000; + background-color: var(--bg); + color: var(--fg); } /* Monospaced Fonts */ .sha1, .mode, .diff_tree .list, .pre, .diff, .patchset { - font-family: 'Consolas','Bitstream Vera Sans Mono',monospace; + font-family: 'Red Hat Mono','Consolas','Bitstream Vera Sans Mono',monospace; } a:link, a:visited { - color: #4183C4; + color: var(--link); text-decoration: none; } @@ -121,16 +144,15 @@ 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%); - border-bottom: 1px solid #dfdfdf; + 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 rgba(var(--border)); } .page_header a:link, .page_header a:visited { - color: #4183C4; + color: var(--link); text-decoration: none; padding: 3px; font-weight: bold; @@ -163,13 +185,13 @@ td, th { height: 80px; line-height: 80px; margin-top: 15px; - background: #f1f1f1; - border-top: 2px solid #ddd; - border-bottom: 1px solid #ddd; + background: var(--bg); + border-top: 2px solid var(--border); + border-bottom: 1px solid var(--border); } .page_footer_text { - color: #666; + color: var(--fg); display: inline; float: left; margin-left: 25px; @@ -216,8 +238,8 @@ a.rss_logo:hover { .index_include { width: 95%; margin: 0 auto 15px; - background: -moz-linear-gradient(center top , #FFFFFF 0%, #F5F5F5 100%) repeat scroll 0 0 transparent; - border: 1px solid #DFDFDF; + background: -moz-linear-gradient(center top , var(--bg) 0%, var(--bg-alt) 100%) repeat scroll 0 0 transparent; + border: 1px solid var(--border); padding: 8px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; @@ -234,7 +256,7 @@ a.rss_logo:hover { .history { width: 95%; margin: 0 auto 15px auto; - border: 1px solid #d8d8d8; + border: 1px solid var(--border); -moz-box-shadow: 0 0 3px rgba(0,0,0,0.2); -webkit-box-shadow: 0 0 3px rgba(0,0,0,0.2); box-shadow: 0 0 3px rgba(0,0,0,0.2); @@ -763,12 +785,21 @@ td.pre, div.pre, div.diff { .kwc { color:#d4663d; } .kwd { color:#2928ff; } +/* + * Styling for my custom added sections + */ -@media screen and (prefers-color-scheme: dark) { -/* General - dark theme ----------------------------------------------------------------------------- */ - body { - background-color: #303030; - color: #e2e2e2; - } +/* Header */ +div.site-header { + background-color: var(--bg-alt); + color: var(--fg); + padding: 1em; +} +div.site-header h1 { + text-transform: uppercase; + font-size: 2em; +} +div.site-header h1 span.evident { + background-color: var(--accent); + color: var(--bg); }