Newbie here (to coding as much as to Twinery).
I added the " tw-sidebar { display: none } " to my stylesheet when starting my project, then decided i wanted to keep the buttons after all.
However, even after removing those lines from the stylesheet, the undo/redo buttons have not reappeared, and I cannot figure out how to reactivate them.
Comments
What story format are you using?
In Harlowe, the code to hide the undo and redo buttons should looks something like this:
Can you check if you have it in your CSS?
And remove the "visibility: hidden;" bit.
I'm working in Harlowe 1.2.2.
There is nothing referencing the tw-icon or tw-sidebar in my stylesheet (if that's what you mean by CSS).
This is all I have in the stylesheet:
body {
background-image: linear-gradient(135deg, DarkBlue, black);
}
tw-passage {
color: white;
}
tw-link {
color:crimson;
}
tw-link.hover {
color:#0099FF;
}
tw-link.visited {
color:#777;
}
var back=$('<tw-icon tabindex=0 class="undo" title="Undo">↶</tw-icon>').click(Engine.goBack),fwd=$('<tw-icon tabindex=0 class="redo" title="Redo">↷</tw-icon>').click(Engine.goForward)
However there is no undo/redo button in the published story, or when I test it in the twine editor.
FYI I switched between formats as I was writing the story (first time using the software, testing it out). Are there "relics" if I switched and saved and switched and saved again? May this be why I cannot get the undo/redo buttons to appear?
I created a new project and the buttons are there, so I checked my Story more carefully, and found the buttons at the bottom of the page...right after the background repeats itself.
Still no idea why they aren't in the default position, though, given there are no instructions to move them in the stylesheet.
Screenshot: http://imgur.com/OubDr3R
Would it be OK to share your CSS? Or check in it if you can see anything that would cause the container of those two buttons to move?
Is that what you mean by the sharing my CSS, or is there a fuller CSS code I can extract from my story (perhaps in the HTML "published" file) to show you?
Thanks
I suggest you delete both your tw-sidebar and tw-passage related CSS and replace them with the following html element based CSS
This is what I don't understand: I thought the stylesheet editor in twine displayed all CSS modifications I apply to my story, however, I removed those lines from the Twine Stylesheet window. How is it that these CSS elements I deleted are still active? Is there another way to edit the project stylesheet, other than in the Twine software?
Thanks,
Thanks for your help.