Thread: Disapearing CSS
View Single Post
Old 03-25-2015, 12:22 AM   #52
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,369
Karma: 20212733
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
OH NO!!!

It just happened again. CSS blanked.... I Guess I can go back to my workaround again!

Working with Sigil 8.4... yadda yadda (Windows 8.1, Firefox, windows explorer, and skype)

I was almost done with the book...already had styles.css imported and edited...I "Generated the table of contents" then realized I had not imported the sgc-toc.css so I did that. Then "created HTML toc".

The toc appeared formatted correctly per my imported sgc-toc file. I went in and manually edited some of the titles in the toc.html, then manually edited some of the titles in the toc.ncx (to match the toc.html).

In the preview pane the formatting for the toc appears as I had formatted it...but it was just a stale view. The toc file had closed itself from the code view and the sgc-toc.css file was still in the book browser section...but completely blank.

I re-opened the toc.html and all my manual edits were still there...and the file was still properly linked to the sgc-toc.css....just no formatting since the css file was blank.

I had not saved the book from the point right before importing the sgc-toc.css file.

Here's my sgc-toc.css template if anyone thinks that will help:
Spoiler:
div.sgc-toc-title {
font-size: 1.5em;
font-weight: bold;
margin-bottom: 1em;
text-align: center;
}

div.sgc-toc-level-1 {margin-top:1em;
margin-left: 0em;
}

div.sgc-toc-level-2 {
margin-left: 2em; padding-left:4em; text-indent:-4em
}

div.sgc-toc-level-3 {
margin-left: 2em;
}

div.sgc-toc-level-4 {
margin-left: 2em;
}

div.sgc-toc-level-5 {
margin-left: 2em;
}

div.sgc-toc-level-6 {
margin-left: 2em;
}

.I {font-style:italic}
.spc {margin-top:1em}
a {color:inherit; text-decoration:none}

-- Hope that helps!

Last edited by Turtle91; 03-25-2015 at 12:27 AM.
Turtle91 is offline   Reply With Quote