Commit 0217709

HPCesia <me@hpcesia.com>
2026-02-09 11:17:54
Add style for term/description list
1 parent 0a88fab
Changed files (2)
src
styles
src/styles/article/index.css
@@ -22,6 +22,10 @@ article,
 .article-table {
   @import "./table.css";
 }
+article,
+.article-term {
+  @import "./term.css";
+}
 
 article {
   @apply text-base lg:text-lg;
src/styles/article/term.css
@@ -0,0 +1,19 @@
+dl {
+  dt {
+    @apply font-bold float-left mr-4;
+  }
+  dd {
+    @apply mt-2 mb-2;
+    text-indent: 2em hanging;
+    & *:first-child {
+      @apply mt-0;
+    }
+    & *:not(:first-child) {
+      @apply pl-[2em];
+      text-indent: 0;
+    }
+    & *:last-child {
+      @apply mb-0;
+    }
+  }
+}