implement table of contents theming (3 posts)

  1. spiralofhope
    Posted 3 years ago #

    There is a configuration entry for "Theme for code colorizing (aka. syntax highlighting)". It would be nice if that same option would also colour the table of contents.


  2. Sebastian Krysmanski
    Plugin Author

    Posted 3 years ago #

    What do you mean? Styling for tables? That's the responsibility of the WordPress theme you're using (and the theme usually provides styles for tables).

  3. spiralofhope
    Posted 3 years ago #

    My theme, "Parament", does indeed colour tables.

    Settings > BlogText, I removed all content in "Custom CSS" and then clicked "Save Changes" then "Clear Page Cache".

    I created a new post with the following content:

    --- BEGIN



    = test

    --- END

    Previewing this, the BlogText table of contents looks themed for a light website.

    I could file a ticket upstream to have the theme updated, but when I look at the resulting CSS, it looks like BlogText is forcing its own colour scheme.

    Here is some CSS I extracted:

    .toc{max-width:200px;border:1px solid #AAA;background-color:#F9F9F9;padding:5px 25px;margin:5px 10px;font-size:80%}.toc .toc-title{font-size:1.2em;border-bottom:1px solid #ccc;margin-bottom:0.5em}.toc .toc-toggle{font-size:75%;text-decoration:none;display:block;float:right;margin-left:5px}.toc ul{list-style-type:none;list-style-image:none;margin-left:0;margin-bottom:0 !important;padding-left:0;text-align:left}.toc ul ul{margin:0 0 0 1.5em}

    I suppose it's also possible that my W3 Total Cache plugin is doing something naughty.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • BlogText
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic