« get me outta code hell

css: match custom margin for `dl dt` content headings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-09 16:46:41 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:28 -0300
commitf2d41e51686377df92963aac42b584e1ed8ab607 (patch)
treead0d11fb98a08fb48c529c34faf77da15c957750 /src
parent1294dd49f1c48fc39963602885fd7687d1a057d0 (diff)
css: match custom margin for `dl dt` content headings
Diffstat (limited to 'src')
-rw-r--r--src/static/css/site.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/static/css/site.css b/src/static/css/site.css
index 9d574bb5..e297993c 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -1345,6 +1345,9 @@ dl dt {
 }
 
 dl dt {
+  /* Heads up, this affects the measurement
+   * for dl dt which are .content-heading!
+   */
   margin-bottom: 2px;
 }
 
@@ -2170,6 +2173,13 @@ html[data-url-key="localized.home"] .carousel-container {
   animation-delay: 125ms;
 }
 
+dl dt.content-heading {
+  /* Basic margin-bottom for dt is 2px,
+   * so just subtract 3px from that.
+   */
+  margin-bottom: -1px;
+}
+
 h3.content-heading {
   clear: both;
 }