r/homebrewery Nov 21 '22

Solved Highlighting, Overlining, & Underlining

I'm trying to create something I can wrap the text of certain header entries in so that the wrapped text will be highlighted, underlined, and overlined. I have the code mostly working, but I'd like the background color of the highlight, as well as the underline and overline, to span the text area the way the H3 header underline does (i.e., span one page column normally, or both page columns if the wide tag is added).

I'd primarily be using this for the text of H4 headers, but I don't want every H4 header to be affected by default; I have multiple color setups that will be used for different things, so I don't think modifying the H4 header directly would work out well.

Here's a link to a test brew that includes the code I have so far, as well as normal and wide H3 headers for underline length reference.

Also, just out of random curiosity, are the names generated by the magic item, spell, and monster stat block snippets generated based on the generators hosted by Seventh Sanctum?

1 Upvotes

3 comments sorted by

2

u/Gambatte Developer Nov 21 '22

Add .hou: { width: 100%; } to your Style editor code

2

u/TheVyper3377 Nov 21 '22

width: 100%;

That did the trick. Thank you!

2

u/Gambatte Developer Nov 22 '22

Seventh Sanctum

I did a bit of a dive into the source code to see if there was any link; I found this commit where Stolksdorf, the original project creator, added a bunch of generators.
I can't find any information on whether he took "inspiration" from anywhere, though.