« get me outta code hell

Revert "content, css: try a hanging style for commentary dates" - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-04-23 05:43:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-04-23 05:43:12 -0300
commitdb1123d9dd79317fb71d6a6abdbaf6efb00e5c7d (patch)
treec4f7125676cdb041d2ecd4720a555a58e315a125
parent42800ec87aa1f1bacd8d3c6a9f64ac935636723f (diff)
Revert "content, css: try a hanging style for commentary dates"
This reverts commit 69ae36f6eca95144931ec71af38d97405cfd594f.
-rw-r--r--src/content/dependencies/generateCommentaryEntry.js8
-rw-r--r--src/static/css/site.css36
2 files changed, 22 insertions, 22 deletions
diff --git a/src/content/dependencies/generateCommentaryEntry.js b/src/content/dependencies/generateCommentaryEntry.js
index 4cb618e3..c93020f3 100644
--- a/src/content/dependencies/generateCommentaryEntry.js
+++ b/src/content/dependencies/generateCommentaryEntry.js
@@ -98,6 +98,8 @@ export default {
 
                 return language.$(workingCapsule, workingOptions);
               })),
+
+            relations.date,
           ])),
 
         html.tag('blockquote', {class: 'commentary-entry-body'},
@@ -105,10 +107,6 @@ export default {
             relations.colorStyle.clone()
               .slot('color', slots.color),
 
-          [
-            relations.date,
-
-            relations.bodyContent.slot('mode', 'multiline'),
-          ]),
+          relations.bodyContent.slot('mode', 'multiline')),
       ])),
 };
diff --git a/src/static/css/site.css b/src/static/css/site.css
index 108e44ff..b087582a 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -1664,13 +1664,14 @@ p.image-details.origin-details {
   margin: 0;
 }
 
-/*
 p.content-heading:has(+ .commentary-entry-heading.dated) {
   clear: right;
 }
-*/
 
 .commentary-entry-heading {
+  display: flex;
+  flex-direction: row;
+
   margin-left: 15px;
   padding-left: 5px;
   max-width: 625px;
@@ -1680,7 +1681,7 @@ p.content-heading:has(+ .commentary-entry-heading.dated) {
 }
 
 .commentary-entry-heading-text {
-  display: block;
+  flex-grow: 1;
   padding-left: 1.25ch;
   text-indent: -1.25ch;
 }
@@ -1689,27 +1690,28 @@ p.content-heading:has(+ .commentary-entry-heading.dated) {
   font-style: oblique;
 }
 
-.commentary-entry-body summary {
-  list-style-position: outside;
-}
-
-.commentary-entry-body summary > span {
-  color: var(--primary-color);
-}
+.commentary-entry-heading .commentary-date {
+  flex-shrink: 0;
 
-.commentary-date {
-  float: right;
-  margin-top: -0.8em;
   margin-left: 0.75ch;
+  align-self: flex-end;
+
   padding-left: 0.5ch;
-  padding-right: 0.4em;
-  font-size: 0.9em;
+  padding-right: 0.25ch;
 }
 
-.commentary-date .hoverable {
+.commentary-entry-heading .hoverable {
   box-shadow: 1px 2px 6px 5px #04040460;
 }
 
+.commentary-entry-body summary {
+  list-style-position: outside;
+}
+
+.commentary-entry-body summary > span {
+  color: var(--primary-color);
+}
+
 .commentary-art {
   float: right;
   width: 30%;
@@ -1962,7 +1964,7 @@ li .by a {
   display: inline-block;
 }
 
-p code, li code {
+p code {
   font-size: 0.95em;
   font-family: "courier new", monospace;
   font-weight: 800;