Work Skin: scripts
Oct. 11th, 2011 05:16 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Cesy poked me to share this over here, so here it is!
One of the formats of writing that's seeing more publication on the Archive is that of script writing. Unfortunately, if you're not that code-savvy, formatting it will rely on a lot of nbsp; entries (which make kittens cry salty tears of misery) and manual line breaks (puppies wail in anguish). Fear not! For I have heard your suffering, and lo have I written some code for you to use as a Work Skin.
Most measurements are in percentages to scale properly, for screen width and for font size (it will break at much larger font sizes). I have used the
These are all designed to be used with the <p> tag and would look like:
<p class="dialogue">words</p>
The charnameinline style is designed to be used with <span> tags (<span class="charnameinline">name</span>) and is designed for character first reference.
On to the code!
This code will work with any site that allows for CSS. If you want to use it on your personal site, strip out every instance of
One of the formats of writing that's seeing more publication on the Archive is that of script writing. Unfortunately, if you're not that code-savvy, formatting it will rely on a lot of nbsp; entries (which make kittens cry salty tears of misery) and manual line breaks (puppies wail in anguish). Fear not! For I have heard your suffering, and lo have I written some code for you to use as a Work Skin.
Most measurements are in percentages to scale properly, for screen width and for font size (it will break at much larger font sizes). I have used the
font-variant: small-caps;
property to mimic the upcase format style calls for (CSS3 does not yet have a font-variant: all-caps;
.) These are all designed to be used with the <p> tag and would look like:
<p class="dialogue">words</p>
The charnameinline style is designed to be used with <span> tags (<span class="charnameinline">name</span>) and is designed for character first reference.
On to the code!
This code will work with any site that allows for CSS. If you want to use it on your personal site, strip out every instance of
#workskin
(and drop me a line to ask how to attach it to your site code). If you're using it on Tumblr or FF.N...well, I have no idea. I will play with making it work on DW, though don't hold your breath, since DW does weird things to HTML.