regular text in tables is invisible in dark mode
[gitweb-theme-danix.git] / gitweb-danixland / gitweb.css
index 3c7a7b1..1873317 100644 (file)
@@ -55,6 +55,10 @@ a { outline: none; }
   --link-visited: #e7b788;
   --border: 34,40,49,0.035;
   --accent: #FD7014;
+  --bluish-grey: #3f4c77;
+  --dark-grey: #393E46;
+  --light-grey: #ababcf;
+/* Icons */
   --file-icon: url("file-dark.svg");
   --dir-icon: url("folder-dark.svg");
   --ref-icon: url("commit-dark.svg");
@@ -62,6 +66,11 @@ a { outline: none; }
   --branch-icon: url("merge-dark.svg");
   --rss-icon:url("rss-dark.svg");
   --opml-icon:url("opml-dark.svg");
+/* social colors */
+  --twitter: #1DA1F2;
+  --instagram: #E4405F;
+  --spotify: #1ed760;
+  --github: #6e5494;
 }
 @media screen and (prefers-color-scheme: dark) {
   :root {
@@ -80,7 +89,7 @@ a { outline: none; }
 }
 
 
-/* General
+/* Main
 ---------------------------------------------------------------------------- */
 
 html {
@@ -168,10 +177,8 @@ td, th {
   margin-bottom: 20px;
   font-size: 20px;
   font-family: 'Montserrat', Helvetica, Arial, Freesans, Clean, sans-serif;
-  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%);
+  background: var(--bluish-grey); /* old browsers */
+  background: linear-gradient(112deg, var(--bluish-grey) 10%, var(--light-grey) 75%);
   border-bottom: 1px solid rgba(var(--border));
 }
 
@@ -198,30 +205,32 @@ td, th {
   margin-right: 5px;
 }
 
+.page_header:before {
+  content: 'You\'re in: ';
+}
+
 /* Page Footer
 ---------------------------------------------------------------------------- */
 
 .page_footer,
 .site-footer {
   width: 100%;
-  background: var(--bg-alt);
+  background: var(--bluish-grey); /* old browsers */
+  background: linear-gradient(112deg, var(--bluish-grey) 65%, var(--light-grey) 100%);
+  margin: 0;
 }
 
 .page_footer {
   height: 40px;
-  position: absolute;
-  left: 0;
-  bottom: 0;
   line-height: 40px;
-  margin-top: 15px;
-  border-top: 2px solid var(--border);
-  border-bottom: 1px solid var(--border);
+  border-top: 2px solid rgba(var(--border));
+  border-bottom: 1px solid rgba(var(--border));
 }
 
 .page_footer_text {
-  background-color: var(--accent);
-  color: var(--fg);
+  color: var(--bg);
   text-align: right;
+  padding-right: 2em;
   display: inline;
   float: right;
   width: calc(100% - 2em);
@@ -231,10 +240,50 @@ td, th {
 }
 
 .site-footer {
+  position: absolute;
+  left: 0;
+  bottom: 0;
+  display: flex;
+  flex-direction: row;
+  flex-wrap: nowrap;
+  justify-content: space-around;
+  align-items: center;
+  align-content: stretch;
+}
 
+.site-footer .columns {
+  display: block;
+  flex-grow: 1;
+  flex-basis: auto;
+  align-self: stretch;
+  order: 0;
+}
+
+.social-links ul li {
+  display: inline-block;
+  margin: 1em;
+}
+
+.social-links ul li a {
+  height: 32px;
+  text-align: center;
+}
+.social-links ul li.spotify a {
+  color: var(--spotify);
+}
+.social-links ul li.twitter a {
+  color: var(--twitter);
+}
+.social-links ul li.instagram a {
+  color: var(--instagram);
+}
+.social-links ul li.github a {
+  color: var(--github);
 }
 
-a.rss_logo {
+a.rss_logo,
+div.social-links ul li a span,
+div.page_header a img.logo {
   border: 0;
   clip: rect(1px, 1px, 1px, 1px);
   clip-path: inset(100%);
@@ -253,8 +302,6 @@ a.rss_logo {
 .index_include {
   width: 95%;
   margin: 0 auto 15px;
-  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;
@@ -271,7 +318,7 @@ a.rss_logo {
 .history {
   width: 95%;
   margin: 0 auto 15px auto;
-  border: 1px solid var(--border);
+  border: 1px solid rgba(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);
@@ -281,7 +328,8 @@ a.rss_logo {
 .shortlog th,
 .tree th,
 .commit_search th {
-  color: #afafaf;
+  background-color: var(--bluish-grey);
+  color: var(--light-grey);
   font-weight: normal;
 }
 
@@ -293,10 +341,10 @@ a.rss_logo {
 .shortlog tr,
 .tree tr,
 .commit_search tr {
-  background: #eaeaea;
+  background: var(--light-grey);
   height: 2.5em;
   text-align: left;
-  color: #545454;
+  color: var(--fg);
 }
 
 .project_list tr.dark, .project_list tr.light,
@@ -305,13 +353,10 @@ a.rss_logo {
 .commit_search tr.dark, .commit_search tr.light,
 .history tr.dark, .history tr.light,
 .heads tr.dark, .heads tr.light {
-  background: #F9F9F9; /* old browsers */
-  background: -moz-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%); /* firefox */
-  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F9F9F9), color-stop(100%,#EFEFEF)); /* webkit */
-  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F9F9F9', endColorstr='#EFEFEF',GradientType=0 ); /* ie */
-  background: -o-linear-gradient(top, #F9F9F9 0%, #EFEFEF 100%);
+  background-color: var(--bg-alt);
+  color: var(--fg);
   height: 2.5em;
-  border-bottom: 1px solid #e1e1e1;
+  border-bottom: 1px solid rgba(var(--border));
 }
 
 th .header {
@@ -329,7 +374,7 @@ th .header {
 .projsearch {
   position: absolute;
   right: 4%;
-  top: 15px;
+  top: 40px;
 }
 
 .projsearch a {
@@ -337,7 +382,7 @@ th .header {
 }
 
 .commit_search {
-  background: #eaeaea;
+  background: var(--fg);
 }
 
 .page_nav,
@@ -345,26 +390,31 @@ th .header {
 .page_path,
 .search {
   width: 94%;
-  background: #eaeaea;
-  color: #545454;
-  border: 1px solid #d8d8d8;
+  background: var(--fg);
+  color: var(--bg);
+  border: 1px solid rgba(var(--border));
   padding: 5px;
   margin: 0 auto 15px auto;
 }
+.page_nav {
+  text-align: center;
+}
 
 .history {
   background: #eaeaea;
 }
 
 .title {
+  font-size: 2em;
+  font-style: capitalize;
   margin: 0 auto 15px auto;
   padding: 5px;
   width: 95%;
 }
 
 .readme {
-  background: #eaf2f5;
-  border: 1px solid #bedce7;
+  background: var(--bg-alt);
+  border: 1px solid rgba(var(--border));
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
@@ -418,7 +468,8 @@ th .header {
   margin-bottom: 0;
 }
 
-.readme pre {
+.readme pre,
+.readme code {
   font-family: 'Red Hat Mono', monospace;
   margin: 1em 0;
   white-space: pre;
@@ -435,8 +486,8 @@ th .header {
 .projects_list,
 .tags {
   width: 95%;
-  background: #f0f0f0;
-  color: #545454;
+  background: var(--bluish-grey);
+  color: var(--light-grey);
   border: 1px solid #d8d8d8;
   padding: 5px;
   margin: 0 auto 15px auto;
@@ -453,8 +504,8 @@ th .header {
 .header {
   width: 94%;
   margin: 0 auto 15px auto;
-  background: #eaf2f5;
-  border: 1px solid #bedce7;
+  background: var(--light-grey);
+  border: 1px solid rgba(var(--border));
   padding: 5px;
 }
 
@@ -535,7 +586,7 @@ span.refs span {
   display: inline-block;
   margin: 0;
   background-color: var(--bg);
-  border: 1px solid var(--border);
+  border: 1px solid rgba(var(--border));
   border-radius: 3px;
   height: 18px;
   padding: 0 6px;
@@ -676,16 +727,16 @@ div.chunk_block div.new {
 ---------------------------------------------------------------------------- */
 
 td.category {
-  background: #E6F1F6; /* old browsers */
-  background: -moz-linear-gradient(top, #C8D8E7 0%, #E6F1F3 100%); /* firefox */
-  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#C8D8E7), color-stop(100%,#E6F1F3)); /* webkit */
-  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#C8D8E7', endColorstr='#E6F1F3',GradientType=0 ); /* ie */
-  background: -o-linear-gradient(top, #C8D8E7 0%, #E6F1F3 100%);
+  background: var(--accent); /* old browsers */
+  color: var(--dark-grey);
+  padding-left: 3em;
   font-weight: bold;
-  border-bottom: 1px solid #D1D1D1;
-  border-top: 1px solid #D1D1D1;
+  border-bottom: 3px solid rgba(var(--border));
+  border-left: 3px solid rgba(var(--border));
+}
+td.category:before {
+  content: "Cat.: ";
 }
-
 /* Age
 ---------------------------------------------------------------------------- */
 
@@ -816,6 +867,15 @@ div.site-header {
 div.site-header h1 {
   text-transform: uppercase;
   font-size: 2em;
+  padding: 0;
+  margin: 0;
+  line-height: 2em;
+}
+div.site-header h1 img.site-logo {
+  height: 50px;
+  width: auto;
+  position: relative;
+  top: 15px;
 }
 div.site-header h1 span.evident {
   background-color: var(--accent);