Ok, so I am trying to get Tag CSS (http://www.glorioustrainwrecks.com/node/5013) to work with displaying two fairly-complicated stylesheets, “Capricorn” and “FramingStory” (which can be found here: http://www.glorioustrainwrecks.com/node/5163).
I cannot for the life of me get it to work. While I’m not new to Twine, my understanding of CSS is still limited. I’ve been able to get the individual [data-tags~=whatever] to work on some separate sections of code, ala body or .passage, but I can’t figure out how to apply the tag to the entire stylesheet. The example shows :
[data-tags~=dream] {
color: aqua;
text-shadow: aqua 0 0 3px;
}
But how would you apply that to chunks of code that already have “{“ in them? Like #passages { and .passage {
I’d hoped I’d just be able to add my tag at the beginning, along with an extra { } framing the entire thing, but that doesn’t seem to work.
I’ve been using a trial and error approach of plugging in data-tags on each section, but I can’t get the thing to work entirely that way either.Any ideas? Is it some obvious CSS thing I’m missing? Or am I wrong to assume this is even possible?
Ok, so basically I have written a story that I’ve split into two parts; the first to use the “Capricorn” stylesheet (a complicated pulsing green box dealy) and the second to use “framing story,” a simpler series of brown boxes that simulate a frame. Trying to do this using the “Tag CSS” macros (to apply CSS to passages with specific tags) from Glorious Trainwrecks.
I would use “[data-tags~=capricon]” (without quotes) in the stylesheet for the first section, and “[data-tags~=frame]” for the second, having given each passage of each section the appropriate “capricorn” or “frame” tag.
The syntax for adding the tags to the stylesheets is simply [data-tags~=tag_name] {. I’d hoped I could just add a curly bracket { } to enclose the entire stylesheet, but it doesn’t seem to work. I’m still learning CSS, so I don’t know if there’s something obvious I’m missing.
You can add the data tag to individual elements, but again I couldn’t get it to work that way either.
I’m uploading my twine file, as well 2 HTMLs of the story split into its 2 separate parts so you can see what the stylesheets look like in action. (which I am trying to combine into a single file). Feel free to read it if you like.
Thanks!
--
You received this message because you are subscribed to a topic in the Google Groups "Tweecode / Twine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tweecode/CU_XXFqIq6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tweecode+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[data-tags~=capricorn] body{
width: 100%;
margin-left: 0;
}
[data-tags~=capricorn] #passages{
font-size: 1.5em;
text-align:center;
border-left: 0;
margin-left: 0;
padding-left: 0;
}
[data-tags~="capricorn"] .passage{
display: inline-block;
width: 50%;
padding: 4em;
margin: 5em 0 5em 0;
border-radius: 8em;
border-color: white;
border-width: 2px;
box-shadow: 0 0 2.5em 2.5em;
animation: borderkeyframe 6s infinite;
-webkit-animation: borderkeyframe 6s infinite;
}
[data-tags~=capricorn] a.internalLink:hover, [data-tags~=capricorn] a.externalLink:hover {
color: yellow;
text-decoration: none;
text-shadow: 0 0 1.5em greenyellow, 0 0 0.75em greenyellow;
}
.passage[data-tags~=tier6] {
text-shadow: 0 0 1em hsl(0,100%,60%);
color: hsl(0,100%,50%);
background-color: hsl(0,100%,5%);
}
[data-tags~=capricorn] .passage[data-tags~=tier6] {
text-shadow: 0 0 1em hsl(0,100%,60%);
color: hsl(0,100%,50%);
background-color: hsl(0,100%,5%);
}
--
--
Oh awesome, thanks!
Yeah, I don't look at that forum much anymore either. :)
- Liam
--