diff options
-rw-r--r-- | laboratory.diff | 77 |
1 files changed, 45 insertions, 32 deletions
diff --git a/laboratory.diff b/laboratory.diff index 1f51cf9..4cf6a0a 100644 --- a/laboratory.diff +++ b/laboratory.diff @@ -13,35 +13,46 @@ index aa2e2a7..d3b0a3c 100755 from sys import argv from flask import Flask diff --git a/templates/common.html b/templates/common.html -index 79b8299..e547318 100644 +index 79b8299..1db27d9 100644 --- a/templates/common.html +++ b/templates/common.html -@@ -7,6 +7,24 @@ - <meta name="viewport" content="width=device-width"> +@@ -1,12 +1,34 @@ + <!DOCTYPE html> + <html> + <head> ++ <link rel="stylesheet" href="style.css" /> + <title> + {{ instance }} -- Laboratory GitLab frontend. + </title> +- <meta name="viewport" content="width=device-width"> </head> <body> -+ <header class="mini"> -+ <h2> -+ <span style="color: #ff3000;"> ████</span> -+ <span style="color: #ff4000;"> █████</span> -+ <span style="color: #ff5000;"> ██</span> -+ <span style="color: #ff6000;"> ███████</span> -+ <span style="color: #ff7000;"> ███████</span> -+ <span style="color: #ff8500;"> ██</span> -+ <span style="color: #ff9000;"> ██</span> -+ <span style="color: #ffa500;"> ██</span> -+ <span style="color: #ffb000;"> ██</span> -+ <span style="color: #ffc000;"> ██</span> -+ <span style="color: #ffd000;"> ██</span> -+ <span style="color: #ffe000;"> ██</span> -+ <small>laboratory gitlab</small> -+ </h2> -+ <a href="https://vitali64.duckdns.org/index.en.html">← Go back to the main page</a> -+ </header> ++ <table> ++ <td class="header"> ++ <header> ++ <pre> ++<h2> ++<span style="color: #012345;"> ████</span> ++<span style="color: #123456;"> █████</span> ++<span style="color: #234567;"> ██</span> ++<span style="color: #345678;"> ███████</span> ++<span style="color: #456789;"> ███████</span> ++<span style="color: #56789a;"> ██</span> ++<span style="color: #6789ab;"> ██</span> ++<span style="color: #789abc;"> ██</span> ++<span style="color: #89abcd;"> ██</span> ++<span style="color: #9abcde;"> ██</span> ++<span style="color: #abcdef;"> ██</span> ++<span style="color: #bcdef0;"> ██</span> ++</h2> ++ </pre> ++ </header> ++ </td> ++ <td class="main"> <nav> {% if repository %} <h1> -@@ -25,7 +43,7 @@ +@@ -25,7 +47,7 @@ <li><a class="{{ log }}" href="{{ repo_url }}/-/commits/">log</a></li> <li><a class="{{ refs }}" href="{{ repo_url }}/-/branches">refs</a></li> <li><a class="{{ issues }}" href="{{ repo_url }}/-/issues">issues</a></li> @@ -50,7 +61,7 @@ index 79b8299..e547318 100644 </ul> {% elif user %} <h1> -@@ -61,7 +79,6 @@ +@@ -61,7 +83,6 @@ {% else %} <h1> <div> @@ -58,7 +69,7 @@ index 79b8299..e547318 100644 <div class="laboratory_desc">{{ repo_description }}</div> </div> </h1> -@@ -89,13 +106,6 @@ +@@ -89,13 +110,6 @@ {% elif about %} <p> Welcome to Laboratory, a frontend for GitLab!<br /> @@ -72,7 +83,7 @@ index 79b8299..e547318 100644 <h2>Features</h2> <li>No proprietary JavaScript - Only CSS and HTML are used</li> <li>Usable in a text-only browser</li> -@@ -118,7 +128,6 @@ +@@ -118,7 +132,6 @@ {{ projects_list }} {% endif %} </main> @@ -80,9 +91,11 @@ index 79b8299..e547318 100644 <footer> Generated by the <a href="https://git.vitali64.duckdns.org/utils/laboratory.git">Laboratory GitLab frontend</a>, -@@ -128,12 +137,9 @@ +@@ -127,13 +140,12 @@ + <small>Instance name: {{ instance }}</small> {% endif %} </footer> ++ </td> <style> -body { - font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; @@ -93,10 +106,11 @@ index 79b8299..e547318 100644 +body { font-family: 'Courier New', Courier, monospace; } +a { text-decoration: none; } +a:hover { text-decoration: blue 1px solid underline; } ++table td.header { display: block; } .laboratory_bloblines pre { background-color: #f5f5f5; text-align: right; -@@ -141,10 +147,12 @@ body { +@@ -141,10 +153,12 @@ body { padding-right: 5px; } .laboratory_blob { font-size: 12pt; } @@ -112,7 +126,7 @@ index 79b8299..e547318 100644 margin-bottom: 0; font-size: 22pt; } -@@ -168,7 +176,7 @@ nav h1, nav ul, nav { +@@ -168,7 +182,7 @@ nav h1, nav ul, nav { margin: 0 2px; } .laboratory_issuestabs li a { @@ -121,12 +135,12 @@ index 79b8299..e547318 100644 text-decoration: none; color: grey; background-color: #eee; -@@ -190,28 +198,19 @@ nav ul li { +@@ -190,28 +204,19 @@ nav ul li { margin: 0; } nav ul li a { - padding: 5px 16px 5px 16px; -+ padding: 4px 16px 4px 16px; ++ padding: 1pt 16px 1pt 16px; text-decoration: none; color: grey; } @@ -152,7 +166,7 @@ index 79b8299..e547318 100644 nav h1 img { margin-right: 1ch; height: 66.656px; -@@ -222,9 +221,7 @@ nav ul form { +@@ -222,9 +227,7 @@ nav ul form { } .project_readme pre { white-space: pre-wrap; @@ -162,4 +176,3 @@ index 79b8299..e547318 100644 } </style> </body> - |