summaryrefslogtreecommitdiff
path: root/data/cgit.css
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-01-12 17:24:25 -0600
committersanine <sanine.not@pm.me>2023-01-12 17:24:25 -0600
commit655cd79991ec9204afb9f5acf52495c13af14d25 (patch)
treec2f441e09ce65337bb622183107a77c40c0dad0b /data/cgit.css
parent35de9c18b9c9ce7d466e5aecec0b4becde2795bb (diff)
begin go refactorgo-dynamic
Diffstat (limited to 'data/cgit.css')
-rw-r--r--data/cgit.css176
1 files changed, 176 insertions, 0 deletions
diff --git a/data/cgit.css b/data/cgit.css
new file mode 100644
index 0000000..9242499
--- /dev/null
+++ b/data/cgit.css
@@ -0,0 +1,176 @@
+:root {
+ --light: #eee;
+ --dark: #1c1c1c;
+ --highlight: #f5ae2e;
+}
+
+body {
+ color: var(--light);
+ background: var(--dark);
+ font-family: monospace;
+ font-size: 14px;
+}
+
+#navigation {
+ text-align: center;
+}
+
+.centered {
+ text-align: center;
+}
+
+#content {
+ width: 600px;
+ max-width: 100%;
+ margin: auto;
+}
+
+a {
+ color: var(--highlight);
+}
+
+a:hover {
+ color: var(--dark);
+ background: var(--highlight);
+ text-decoration: none;
+}
+
+ul {
+ list-style: none;
+}
+
+li:before {
+ content: '* ';
+}
+
+code {
+ background: black;
+ padding: 0 6px;
+ border-radius: 4px;
+}
+
+pre code {
+ padding: 0;
+}
+
+
+/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ *
+ * cgit-specific css
+ *
+ * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ */
+
+div#cgit {
+ width: 700px;
+ max-width: 100%;
+ margin: auto;
+}
+
+div#cgit table#header {
+ width: 100%;
+ margin-bottom: 1em;
+}
+
+div#cgit table#header tbody tr td.logo a {
+ display: none;
+}
+
+div#cgit table#header td.form {
+ text-align: right;
+ vertical-align: bottom;
+ padding-right: 1em;
+ padding-bottom: 2px;
+ white-space: nowrap;
+}
+
+div#cgit table.tabs {
+ border-bottom: solid 3px var(--highlight);
+ border-collapse: collapse;
+ margin-top: 2em;
+ margin-bottom: 0;
+ width: 100%;
+}
+
+div#cgit table.tabs td {
+ padding: 0px 1em;
+ vertical-align: bottom;
+}
+
+div#cgit table.tabs td a {
+ padding: 2px 0.75em;
+ text-decoration: none;
+}
+
+div#cgit table.tabs td a.active {
+ color: var(--dark);
+ background-color: var(--highlight);
+}
+
+
+div#cgit table.tabs td.form {
+ text-align: right;
+}
+
+div#cgit table.tabs td.form form {
+ padding-bottom: 2px;
+ white-space: nowrap;
+}
+
+
+div#cgit div.content {
+ margin: 0px;
+ padding: 2em 0;
+ border-bottom: solid 3px var(--light);
+}
+
+div#cgit select, input {
+ font-family: monospace;
+}
+
+
+div#cgit table.list {
+ width: 100%;
+ border: none;
+ border-collapse: collapse;
+}
+
+div#cgit table.list tr {
+ background: white;
+}
+
+div#cgit table.list tr.logheader {
+ background: #eee;
+}
+
+div#cgit table.list tr:nth-child(even) {
+ background: #151515;
+}
+
+div#cgit table.list tr:nth-child(odd) {
+ background: var(--dark);
+}
+
+
+div#cgit table.blob td.hashes,
+div#cgit table.blob td.lines {
+ margin: 0; padding: 0 0 0 0.5em;
+ vertical-align: top;
+ background-color: #151515;
+}
+
+div#cgit table.blob td.lines code {
+ background-color: #151515;
+}
+
+div#cgit span.decoration {
+ margin: 0 1em;
+}
+
+div#cgit span.decoration a::before {
+ content: "[";
+}
+
+div#cgit span.decoration a::after {
+ content: "]";
+}