A customer wants Tripane HTML5 help with the Navigation pane displaying only Contents (no Index, Glossary, etc).
In Skin > General > Features, I can remove all of the other features while leaving the Contents (TOC) display. However, at this point the Contents tab at the top of the Navigation pane is redundant. How can I remove or hide that Contents tab?
Thanks in advance.
Remove navigation tabs in Tripane?
Remove navigation tabs in Tripane?
You do not have the required permissions to view the files attached to this post.
Moshe Davis
Jerusalem, Israel
Jerusalem, Israel
Re: Remove navigation tabs in Tripane?
There's no skin setting to remove the tabs.
If you really want to do this, and think it's worth the effort, then it'll involve modifying the skin using CSS.
I've written a blog post explaining how to add a 'skin stylesheet' for a HTML5 tripane skin.
https://ukauthor.wordpress.com/2014/08/ ... tml5-skin/
You can use this skin stylesheet to modify the skin CSS as required; e.g.
- Hide the tabs:
- Move the pane:
If you really want to do this, and think it's worth the effort, then it'll involve modifying the skin using CSS.
I've written a blog post explaining how to add a 'skin stylesheet' for a HTML5 tripane skin.
https://ukauthor.wordpress.com/2014/08/ ... tml5-skin/
You can use this skin stylesheet to modify the skin CSS as required; e.g.
- Hide the tabs:
Code: Select all
.tabs-nav { display: none; }Code: Select all
.tabs-panel { top: 0; }Re: Remove navigation tabs in Tripane?
Thank you so much, Dave! I will definitely check this out.
I have already made significant changes to the existing skin. I have to see what is involved in adding a new skin CSS stylesheet.
Question: This will also hide the Navigation buttons in the Tablet/Mobile mediums (corresponding to the Navigation tabs in Web medium)?
By the way, Dave, do you sleep?
Moshe
I have already made significant changes to the existing skin. I have to see what is involved in adding a new skin CSS stylesheet.
Question: This will also hide the Navigation buttons in the Tablet/Mobile mediums (corresponding to the Navigation tabs in Web medium)?
By the way, Dave, do you sleep?
Moshe
Moshe Davis
Jerusalem, Israel
Jerusalem, Israel
Re: Remove navigation tabs in Tripane?
Ah, yeah - it will hide it in tablet/mobile, so that's not going to work. You need the tab to be visible in tablet/mobile, as you have to be able to select it to view the contents.moshe wrote:Question: This will also hide the Navigation buttons in the Tablet/Mobile mediums (corresponding to the Navigation tabs in Web medium)?
By the way, Dave, do you sleep? :lol:
Moshe
I think the desktop medium adds a 'web' class to html tag, so perhaps this might work instead:
Code: Select all
html.web .tabs-nav { display: none; }(I do sleep - I'm in the UK, so it's daytime here)
Re: Remove navigation tabs in Tripane?
Another idea - will this work?Dave Lee wrote: Ah, yeah - it will hide it in tablet/mobile, so that's not going to work. You need the tab to be visible in tablet/mobile, as you have to be able to select it to view the contents.
Is there a way in tablet/mobile to have the Contents open by default when the tablet/mobile menu first displays (similar to the default behavior in web medium)?
That is, for the first level of the Contents (TOC) to be displayed without having first to select the Contents button?
If that can be done, the redundant Contents tab will not be visible, the Contents themselves will display, and my customer (and I) will be very happy.
Moshe Davis
Jerusalem, Israel
Jerusalem, Israel
Re: Remove navigation tabs in Tripane?
I don't know of any way to do that.moshe wrote:Is there a way in tablet/mobile to have the Contents open by default when the tablet/mobile menu first displays
I remember reading the same question in another thread somewhere.
Re: Remove navigation tabs in Tripane?
Are these the threads you are referring to?Dave Lee wrote:I don't know of any way to do that.moshe wrote:Is there a way in tablet/mobile to have the Contents open by default when the tablet/mobile menu first displays
I remember reading the same question in another thread somewhere.
Expand TOC by default
viewtopic.php?f=6&t=6447
TOC in HTML5 output does not expand automatically
viewtopic.php?f=9&t=19912
They don't provide a ready solution. I do want my customer to be happy.
I have succeeding in hiding the Contents tab in web medium: But when in tablet or mobile medium, the Contents menu is closed by default: Clicking on the (in this case, blank) Contents button opens the Contents: This open display is what I would like when the tablet/mobile menu first opens, without having to click on the Contents button to open the Contents.
If there isn't a way to do this, perhaps this is another possible option:
Is it possible to have one UI Text in the navigation "Contents" tab in Web medium, and a different UI Text in the corresponding tab in Tablet and Mobile mediums?
If that is possible, I could then have:
- Web medium output without a visible Contents tab (i.e, blank Contents tab label) but the first level of the TOC is expanded by default.
- Tablet/Mobile medium Contents menu which initially displays closed, but with a "Contents" button (with a visible "Contents" label) to be clicked to open.
Is this possible?
You do not have the required permissions to view the files attached to this post.
Moshe Davis
Jerusalem, Israel
Jerusalem, Israel
Re: Remove navigation tabs in Tripane?
I don't have much time at the moment, but the CSS example I posted above worked for me - it hides the tabs in the desktop medium, but doesn't hide tabs in tablet\mobile.
Code: Select all
html.web .tabs-nav { display: none; }