Wellspring: CSS
/* Sorry I can't just host this as a css file, don't want people hotlinking. */
.screenplay {
font: calc(0.7em + 1vw)/1 Courier New, monospace; /* font scaling optional, works without */
text-shadow: 0 0 1px; /* IMO Courier New is too thin and the ink-bleed effect looks neat */
max-width: 65ch;
margin: 0 auto;
}
.screenplay h2, .screenplay h3 {
font-size: 1em;
text-transform: uppercase;
font-weight: normal;
margin: 1em 0 1em 7.69%;
}
.screenplay b {
font-weight: normal;
text-transform: uppercase;
display: contents;
}
.screenplay i {
display: block;
grid-column: 2/4;
font-style: normal;
}
.screenplay i:first-child {
text-transform: uppercase;
margin: 0 0 0 24%;
}
.screenplay i ~ i {
margin: 0 48% 0 12%;
}
.screenplay i ~ i::before {
content: "(";
}
.screenplay i ~ i::after {
content: ")";
}
.screenplay p {
display: grid;
grid-auto-columns: auto 58.34% 25%;
margin: 1em 0 1em 7.69%;
}
.screenplay p::before {
content: "";
grid-area: 2/1/9/2; /* If for some reason you need lots of parentheticals, increase the 9 here. */
}
Home > Wellspring