X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=gitweb-danixland%2Fgitweb.css;h=b65942a33b1c02f3bd06ae8982bd2948b2a08dd7;hb=d76bc59dec50c3d36ef896681280c1b68b2790e4;hp=49bedb92b396872e8e09abd673193eb37e46a426;hpb=ae45705c064e6e457c56147c1a59141dc6924838;p=gitweb-theme-danix.git diff --git a/gitweb-danixland/gitweb.css b/gitweb-danixland/gitweb.css index 49bedb9..b65942a 100644 --- a/gitweb-danixland/gitweb.css +++ b/gitweb-danixland/gitweb.css @@ -55,11 +55,22 @@ a { outline: none; } --link-visited: #e7b788; --border: 34,40,49,0.035; --accent: #FD7014; - --file-icon: url("file.svg"); - --dir-icon: url("folder.svg"); - --ref-icon: url("commit.svg"); - --tag-icon: url("tag.svg"); - --branch-icon: url("merge.svg"); + --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"); + --tag-icon: url("tag-dark.svg"); + --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 { @@ -67,12 +78,18 @@ a { outline: none; } --bg-alt: #222831; --fg: #D8D9CF; --border: 216,217,207,0.2; - --svg-color: teal; + --file-icon: url("file.svg"); + --dir-icon: url("folder.svg"); + --ref-icon: url("commit.svg"); + --tag-icon: url("tag.svg"); + --branch-icon: url("merge.svg"); + --rss-icon:url("rss.svg"); + --opml-icon:url("opml.svg"); } } -/* General +/* Main ---------------------------------------------------------------------------- */ html { @@ -110,7 +127,7 @@ a:hover { } td.list a[href*='tree'], td.list a[href*='blob'] { - padding-left: 20px; + padding-left: 40px; display: block; float: left; height: 32px; @@ -141,7 +158,7 @@ td, th { #generating_info { font-size: 10px; - color: #aaa; + color: var(--fg); text-align: center; } @@ -159,11 +176,9 @@ td, th { padding: 0 27px; margin-bottom: 20px; font-size: 20px; - font-family: 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%); + font-family: 'Montserrat', Helvetica, Arial, Freesans, Clean, sans-serif; + 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)); } @@ -190,63 +205,96 @@ td, th { margin-right: 5px; } +.page_header:before { + content: 'You\'re in: '; +} + /* Page Footer ---------------------------------------------------------------------------- */ -.page_footer { - position: absolute; - left: 0; - bottom: 0; +.page_footer, +.site-footer { width: 100%; - height: 80px; - line-height: 80px; - margin-top: 15px; - background: var(--bg); + background: var(--bluish-grey); /* old browsers */ + background: linear-gradient(112deg, var(--bluish-grey) 65%, var(--light-grey) 100%); + margin: 0; +} + +.page_footer { + height: 40px; + line-height: 40px; border-top: 2px solid var(--border); border-bottom: 1px solid var(--border); } .page_footer_text { - color: var(--fg); + color: var(--bg); + text-align: right; + padding-right: 2em; display: inline; - float: left; - margin-left: 25px; - width: 80%; + float: right; + width: calc(100% - 2em); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } -a.rss_logo { - float: right; - padding: 3px 1px; - width: 35px; - line-height: 10px; - border: 1px solid; - border-color: #fcc7a5 #7d3302 #3e1a01 #ff954e; - color: #ffffff; - background-color: #ff6600; - font-weight: bold; - font-family: sans-serif; - font-size: 80%; - text-align: center; - text-decoration: none; - margin-top: 30px; - margin-left: 5px; +.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; } -a.rss_logo:hover { - background-color: #ee5500; +.site-footer .columns { + display: block; + flex-grow: 1; + flex-basis: auto; + align-self: stretch; + order: 0; } -.rss_logo { - margin-right: 25px; - background: yellow; +.social-links ul li { + display: inline-block; + margin: 1em; } -.rss_logo:last-child { - margin-right: 5px; +.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, +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%); + height: 1px; + overflow: hidden; + padding: 0; + position: absolute; + white-space: nowrap; + width: 1px; +} + /* Index include ---------------------------------------------------------------------------- */ @@ -254,8 +302,6 @@ a.rss_logo:hover { .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; @@ -282,7 +328,8 @@ a.rss_logo:hover { .shortlog th, .tree th, .commit_search th { - color: #afafaf; + background-color: var(--bluish-grey); + color: var(--light-grey); font-weight: normal; } @@ -294,10 +341,10 @@ a.rss_logo:hover { .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, @@ -306,11 +353,8 @@ a.rss_logo:hover { .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(--dark-grey); height: 2.5em; border-bottom: 1px solid #e1e1e1; } @@ -330,7 +374,7 @@ th .header { .projsearch { position: absolute; right: 4%; - top: 15px; + top: 40px; } .projsearch a { @@ -338,7 +382,7 @@ th .header { } .commit_search { - background: #eaeaea; + background: var(--fg); } .page_nav, @@ -346,9 +390,9 @@ th .header { .page_path, .search { width: 94%; - background: #eaeaea; - color: #545454; - border: 1px solid #d8d8d8; + background: var(--fg); + color: var(--bg); + border: 1px solid var(--border); padding: 5px; margin: 0 auto 15px auto; } @@ -358,6 +402,8 @@ th .header { } .title { + font-size: 2em; + font-style: capitalize; margin: 0 auto 15px auto; padding: 5px; width: 95%; @@ -419,14 +465,15 @@ th .header { margin-bottom: 0; } -.readme pre { - font-family: monospace; +.readme pre, +.readme code { + font-family: 'Red Hat Mono', monospace; margin: 1em 0; white-space: pre; } .readme tt, .readme code, .readme kbd, .readme samp { - font-family: monospace; + font-family: 'Red Hat Mono', monospace; } .readme blockquote { @@ -436,8 +483,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; @@ -535,8 +582,8 @@ span.refs span { color: #707070; display: inline-block; margin: 0; - background-color: #eee; - border: 1px solid #ccc; + background-color: var(--bg); + border: 1px solid var(--border); border-radius: 3px; height: 18px; padding: 0 6px; @@ -547,8 +594,8 @@ span.refs span.ref { color: #707070; display: inline-block; margin: 0; - background-color: #c4c4ff; - border: 1px solid #7878ff; + background-color: var(--bg-alt); + border: 1px solid var(--link); border-radius: 3px; height: 18px; padding: 0 6px; @@ -677,16 +724,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: 1px solid var(--border); + border-top: 1px solid var(--border); +} +td.category:before { + content: "Cat.: "; } - /* Age ---------------------------------------------------------------------------- */ @@ -817,6 +864,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);