]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/help/html/stylesheet.css
webapps: better style
[factor.git] / basis / help / html / stylesheet.css
index 7a5ffff5ee91b8653ec2abaede5d64d26445fe75..7fe0ca3900585178c1219be37cbd0ab7ea5e1b01 100644 (file)
@@ -6,18 +6,19 @@ html {
     box-sizing: inherit;
 }
 
-a, .link { color: #104e8b; }
+a, .link { color: #2A5DB0; }
 a:link, a:visited, a:active, .link { text-decoration: none; }
 a:hover, .link:hover { text-decoration: underline; }
 
 body {
     margin: 0;
     font-family: sans-serif;
+    font-size: 12pt;
     line-height: 150%;
 }
 
 input {
-    border: 1px solid #999999;
+    border: 1px solid #d5d5d5;
     border-radius: 3px;
     font-size: 1.0em;
 }
@@ -36,32 +37,31 @@ table {
     margin-bottom: 5px;
 }
 
-.navbar {
-    margin: 0;
-    padding: 15px;
-    padding-top: 10px;
-    padding-bottom: 10px;
-    line-height: 150%;
-    border-bottom: 1px solid #ccc;
+tr:hover {
     background-color: #f5f5f5;
 }
 
-.navbar a {
-    margin-right: 10px;
+nav {
+    border-bottom: 1px solid #d5d5d5;
+    background-color: #f5f5f5;
+    padding: 10px;
+    padding-left: calc(max(50% - 400px, 0px) + 15px);
+    padding-right: calc(max(50% - 400px, 0px) + 15px);
 }
 
-.navbar form a {
-    margin-left: 10px;
-    font-size: 1.0em;
-    font-weight: bold;
+nav a, nav .link {
+    margin-right: 10px;
 }
 
-#container {
-    max-width: 800px;
+nav img {
+    vertical-align: middle;
 }
 
 .page {
-    margin: 15px;
+    max-width: 800px;
+    position: relative;
+    left: calc(max(-400px,-50%) + 50%);
+    padding: 15px;
 }
 
 .page img {
@@ -69,6 +69,13 @@ table {
     height: 16px;
 }
 
+footer {
+    margin-top: 15px;
+    border-top: 1px dashed #d5d5d5;
+    color: #666;
+    font-size: 10pt;
+}
+
 @media screen and (max-width: 480px) {
 
     input {
@@ -78,11 +85,42 @@ table {
     input[type=text] {
         width: 100px;
     }
+
+    nav img {
+        display: none;
+    }
 }
 
 @media screen and (max-width: 600px) {
 
-    .navbar form a {
-        display: none;
+}
+
+/* Dark mode */
+@media (prefers-color-scheme: dark) {
+    body {
+        background-color: #202124;
+        color: #bdc1c6;
+    }
+
+    a {
+        color: #8ab4f8;
+    }
+
+    nav {
+        background-color: #373e48;
+        border-bottom: 1px solid #666;
+    }
+
+    footer {
+        border-top: 1px dashed #666;
+        color: #999;
+    }
+
+    input {
+        border: 1px solid #666;
+    }
+
+    tr:hover {
+        background-color: #373e48;
     }
 }