Your stylesheet definitions are OK as-is. Just paste them into a new tiddler in your TW5 document, and add the tag "$:/tags/Stylesheet" so that the core will recognize it as CSS definitions.
However, the syntax for *using* the CSS classnames in inline content has changed from TWC to TW5.
The TWC classwrapper syntax is:
{{classname{...content...}}}
The TW5 classwrapper syntax is:
@@.classname content@@
(note: the dot (.) before the classname and the space separating the classname from the content are important!)
For your particular use-case, it's just a tiny bit trickier because you are *nesting* the classes, and in "inline" mode, the @@ syntax doesn't nest.
However, you can easily work around this by using HTML for the outer wrapper, like this:
<span class="backYellow30">
@@.loco26 C@@@@.loco18 APON@@
@@.loco26 V@@@@.loco18 ALLEY@@
@@.loco26 R@@@@.loco18 AILROAD @@
</span>
Note also that, for this particular use case, you can use the "::first-letter" pseudo-element in your CSS definitions to achieve the same results (first letter of each word in a larger font)
.loco2618
{ font-size:18pt; }
.loco2618::first-letter
{ display:inline-block;font-size:26pt; }
Then, you can use it like this:
<span class="backYellow30">
@@.loco2618 CAPON@@
@@.loco2618 VALLEY@@
@@.loco2618 RAILROAD @@
</span>
enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions: