]> jxnshi.xyz Git - jxnshi.xyz.git/commitdiff
Update gitweb style
authorjxnshi <jxnshi@proton.me>
Thu, 9 Jan 2025 11:53:47 +0000 (11:53 +0000)
committerjxnshi <jxnshi@proton.me>
Thu, 9 Jan 2025 11:53:47 +0000 (11:53 +0000)
public/layout.html
public/style.css

index e95f0e435c130f347e8fa7e584f29eff7dd32687..16e73277435e11e1b42eb2aa79905be236349b63 100644 (file)
@@ -7,27 +7,25 @@
         <link rel="stylesheet" href="/style.css">
     </head>
     <body>
-        <div id="main-div">
-            <header>
-                <div></div>
-                <div id="header-middle">
-                    <h1><a href="/">jxnshi.xyz</a></h1>
-                    <div class="isle">
-                        <div>
-                            <h2 id="projects-title">Projects</h2>
-                            <ul>
-                                <li><a href="/books">books</a></li>
-                                <li><a href="/repos" target="_blank">repos</a></li>
-                            </ul>
-                        </div>
+        <header>
+            <div></div>
+            <div id="header-middle">
+                <h1><a href="/">jxnshi.xyz</a></h1>
+                <div class="isle">
+                    <div>
+                        <h2 id="projects-title">Projects</h2>
+                        <ul>
+                            <li><a href="/books">books</a></li>
+                            <li><a href="/repos" target="_blank">repos</a></li>
+                        </ul>
                     </div>
                 </div>
-                <img id="lain-pic" src="/lain.png" alt="Lain" width="150" height="150">
-            </header>
-            <div id="content-div">
-                <div>
-                    {s}
-                </div>
+            </div>
+            <img id="lain-pic" src="/lain.png" alt="Lain" width="150" height="150">
+        </header>
+        <div id="content-div">
+            <div>
+                {s}
             </div>
         </div>
     </body>
index 4e4dfa6dfb4d5e2a040cfa613aeb61ebf4db790d..9b71f4f575cc0c9808ba0231c52b5b97621e7c3e 100644 (file)
 
 body {
     display: flex;
-    justify-content: center;
+    flex-direction: column;
+    align-items: center;
+    gap: 20px;
+
     background-color: black;
     background-image: url("/background.png");
     background-size: 100% 1000px;
+
     padding-bottom: 20px;
     padding-top: 20px;
+
+    width: 100%;
 }
 
 header {
@@ -65,14 +71,6 @@ a:hover {
     list-style: none;
 }
 
-#main-div {
-    display: flex;
-    flex-direction: column;
-    align-items: center;
-    gap: 20px;
-    width: 100%;
-}
-
 #content-div {
     display: flex;
     flex-direction: column;
@@ -114,3 +112,22 @@ a:hover {
     padding: 10px;
     border: 2px solid white;
 }
+
+/* Gitweb */
+.page_header {
+    display: flex;
+    gap: 5px;
+}
+
+.project_list,
+.page_body,
+.page_body > .tree,
+.history,
+.projects_list,
+.shortlog,
+.heads
+{
+    background-color: black;
+    padding: 20px 100px;
+    width: 100%;
+}