commit 68deef9e64bfbff5296f3fc523647a80c5306074
parent bb296fc81fc4ca42e7b739acafc3018077b750ee
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Tue, 12 Mar 2024 16:39:52 -0700
Move timesheet CSS to a separate file
No use loading it if there isn't any timesheet to style.
Diffstat:
3 files changed, 35 insertions(+), 37 deletions(-)
diff --git a/css/main.css b/css/main.css
@@ -1,39 +1,3 @@
body {
padding: 2rem;
}
-
-table, tr, th, td {
- border-collapse: collapse;
- border-spacing: 0;
- border: 1px solid black;
-}
-
-tr:nth-child(even) {
- background-color: #F3F3F3;
-}
-
-th, td {
- text-align: left;
- padding: 0.2rem;
-}
-
-th[scope=col] {
- background-color: lightblue;
-}
-
-td > form {
- display: inline;
-}
-
-tr:nth-child(even) > td > form > input[type="submit"] {
- background-color: white;
-}
-
-td > form > input[type="submit"] {
- margin: 0;
- width: 100%;
- height: 100%;
- border-width: 0.1rem;
- border-radius: 0;
-}
-
diff --git a/css/timesheet.css b/css/timesheet.css
@@ -0,0 +1,34 @@
+table, tr, th, td {
+ border-collapse: collapse;
+ border-spacing: 0;
+ border: 1px solid black;
+}
+
+tr:nth-child(even) {
+ background-color: #F3F3F3;
+}
+
+th, td {
+ text-align: left;
+ padding: 0.2rem;
+}
+
+th[scope=col] {
+ background-color: lightblue;
+}
+
+td > form {
+ display: inline;
+}
+
+tr:nth-child(even) > td > form > input[type="submit"] {
+ background-color: white;
+}
+
+td > form > input[type="submit"] {
+ margin: 0;
+ width: 100%;
+ height: 100%;
+ border-width: 0.1rem;
+ border-radius: 0;
+}
diff --git a/pages/main.c b/pages/main.c
@@ -299,7 +299,7 @@ gettf(char *tfs)
enum kcgi_err
pagemain(struct pagedata *pd)
{
- static char *css[] = { "css/main.css", NULL };
+ static char *css[] = { "css/main.css", "css/timesheet.css", NULL };
static char *scripts[] = {
"scripts/localize.js",
"scripts/counter.js",