The reason some parts your example appears blue is because those parts are being interpreted by the software the forum uses.
Normally you should use the C button in the Comment field's toolbar to wrap your code examples in code tags but because your example includes an URL the forum software will display it incorrectly so you should use the quote button instead.
There is one error and one potential issue in your example, the error is that you have a colon directly after the tw-passage selector, the minor issue is that it is safer to wrap the parameter of the url() function in quotes.
The following is a corrected version of your sample, wrapped in quote tags:
Sorry but this still didn't work. I copied the code in the bottom box, or did you mean to copy the code in the top one?
I just retested the code in both of the boxes within a new Harlowe based story, and they both change the font to Lora and the (fore-ground) colour to white.
You are place the CSS within your story's Story Stylesheet area?
And the CSS is at the start of the area before all other CSS with no blank lines between the start of the area and the @import line?
Sorry but this still didn't work. I copied the code in the bottom box, or did you mean to copy the code in the top one?
I just retested the code in both of the boxes within a new Harlowe based story, and they both change the font to Lora and the (fore-ground) colour to white.
You are place the CSS within your story's Story Stylesheet area?
And the CSS is at the start of the area before all other CSS with no blank lines between the start of the area and the @import line?
Thank you very much. I've been trying to get this to work for ages!
Comments
@import url(https://fonts.googleapis.com/css?family=Lora);
And here's what I put into the Stylesheet from the Integrate:
tw-passage:
{
font-family: 'Lora', serif;
color: white;
}
The font's called 'Lora'.
P.S.: I have a black background.
Normally you should use the C button in the Comment field's toolbar to wrap your code examples in code tags but because your example includes an URL the forum software will display it incorrectly so you should use the quote button instead.
There is one error and one potential issue in your example, the error is that you have a colon directly after the tw-passage selector, the minor issue is that it is safer to wrap the parameter of the url() function in quotes.
The following is a corrected version of your sample, wrapped in quote tags:
note: Harlowe actually sets the default font and (fore-ground) colour using a html selector, not a tw-passage selector.
Thanks.
You are place the CSS within your story's Story Stylesheet area?
And the CSS is at the start of the area before all other CSS with no blank lines between the start of the area and the @import line?
Thank you very much. I've been trying to get this to work for ages!