From 4bdca4d3c85544ddbe0648607a6a5b7014d85d1b Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 18 Aug 2023 03:11:13 +0200 Subject: [PATCH] Style commit-like entities --- static/base.css | 47 +++++++++++-------------------- templates/pages/commit.html | 4 +-- templates/pages/run_finished.html | 4 +-- templates/pages/worker.html | 4 +-- 4 files changed, 22 insertions(+), 37 deletions(-) diff --git a/static/base.css b/static/base.css index 7ba98a0..94bee76 100644 --- a/static/base.css +++ b/static/base.css @@ -232,49 +232,34 @@ nav a:hover { background-color: #ddd; } -/* Commit */ +/* Commit-like entities */ -/* - -.commit * { - margin: 0; -} - -.commit dl { +.commit-like dl { display: grid; grid: auto-flow / max-content 1fr; column-gap: 1ch; } -.commit .hash { - color: #b70; - font-weight: bold; +.commit-like dl, .commit-like dt, .commit-like dd { + margin: 0; } -.commit pre { +.commit-like pre { margin: 1em 0ch 1em 4ch; white-space: pre-wrap; } -*/ - -/* Worker */ - -/* - -.worker * { - margin: 0; -} - -.worker dl { - display: grid; - grid: auto-flow / max-content 1fr; - column-gap: 1ch; -} - -.worker .name { - color: #380; +.commit-like.commit .title { + color: #b70; font-weight: bold; } -*/ +.commit-like.run .title { + color: #07e; + font-weight: bold; +} + +.commit-like.worker .title { + color: #380; + font-weight: bold; +} diff --git a/templates/pages/commit.html b/templates/pages/commit.html index ba58742..3412e6a 100644 --- a/templates/pages/commit.html +++ b/templates/pages/commit.html @@ -7,8 +7,8 @@

Commit

-
- commit {{ hash }} +
+ commit {{ hash }}
Author:
{{ author }}
diff --git a/templates/pages/run_finished.html b/templates/pages/run_finished.html index 302ca99..535a1e1 100644 --- a/templates/pages/run_finished.html +++ b/templates/pages/run_finished.html @@ -6,8 +6,8 @@

Run

-
- run {{ id }} +
+ run {{ id }}
Commit:
{{ commit|safe }}
diff --git a/templates/pages/worker.html b/templates/pages/worker.html index 77ba422..c49c23d 100644 --- a/templates/pages/worker.html +++ b/templates/pages/worker.html @@ -6,8 +6,8 @@

Worker

-
- worker {{ name }} +
+ worker {{ name }}
Connected:
{{ connected }}