Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css targeting using passage tags #6

Open
HarmlessTrouble opened this issue Mar 26, 2013 · 4 comments
Open

css targeting using passage tags #6

HarmlessTrouble opened this issue Mar 26, 2013 · 4 comments

Comments

@HarmlessTrouble
Copy link
Owner

Tagging a passage with css class format ".classname" will render that passage with class="classname" attribute.

@webbedspace
Copy link

I hope it won't be too easy for people to accidentally invoke one of the story format's built-in CSS classes...

@HarmlessTrouble
Copy link
Owner Author

good point. "tag" prefix perhapse.

@webbedspace
Copy link

sisal prefix perhapse.

Well, one thing to consider is, it'd be a bit of a pain for non-coders to have to learn a new set of CSS classes (different from the Sugarcane/Jonah set of "passage, internalLink, title" etc.) just so they can make the passage text red in this new format.

Secondarily, what about CSS classes added by custom macros? My <<revision>> macro, for instance, gives its generated HTML the classes "becomes", "gains", "revision", "cycle", "insertion", etc. depending on usage.

@HarmlessTrouble
Copy link
Owner Author

This doesn't change the original twine set of css selectors.
These classes are appended to the passage element.

On Thu, Apr 18, 2013 at 4:30 PM, Leon [email protected] wrote:

sisal prefix perhapse.

Well, one thing to consider is, it'd be a bit of a pain for non-coders to
have to learn a new set of CSS classes (different from the Sugarcane/Jonah
set of "passage, internalLink, title" etc.) just so they can make the
passage text red in this new format.

Secondarily, what about CSS classes added by custom macros? My <> macro,
for instance, gives its generated HTML the classes "becomes", "gains",
"revision", "cycle", "insertion", etc. depending on usage.


Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-16579715
.

Just remember Hanlon's razor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants