Skip to content

Commit

Permalink
Merge pull request #65 from tuurep/followup-definition-lists
Browse files Browse the repository at this point in the history
(Followup #61) Fix definition lists with multiple consecutive <dd>
  • Loading branch information
jannis-baum authored May 6, 2024
2 parents 0cb23f1 + f073533 commit 82c5944
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,30 @@ dt {
font-weight: bold;
box-sizing: border-box;
padding: 0.25em;
border-right: 0.2px solid #444;
margin: 0.25em 0;
}
dd {
flex-basis: 80%;
flex-grow: 1;
text-align: left;
box-sizing: border-box;
border-left: 0.2px solid #444;
margin: 0;
padding: 0.25em;
margin: 0.25em 0;
}
dd + dd {
margin-left: 20%;
margin-top: -0.25em;
}
dt + dt {
margin-right: 80%;
margin-top: -0.25em;
}
dt + dt + dd {
margin-left: 20%;
margin-top: -2.25em; /* Align definition with last term */
} /* Self height - margin - padding */

/* --------------------------------------------------------------------------
* LIGHT MODE --------------------------------------------------------------- */
Expand Down Expand Up @@ -210,4 +222,8 @@ dd {
border-top: 0.2px solid #d8dee4;
color: #656d76;
}

dd {
border-left: 0.2px solid #d8dee4;
}
}

0 comments on commit 82c5944

Please sign in to comment.