You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor the hideSidebar option using a CSS class instead of styles applied directly to HTML elements.
What problem does this feature solve?
The hideSidebar implementation applies styles directly to the <section class="content"> element to override the styles specified in a theme stylesheet. This makes it very difficult for other themes (like docsify-themeable) to support the hideSidebar option properly without resorting to a JavaScript "fix".
How should this be implemented in your opinion?
A better implementation would be to add a class to an appropriate parent element (e.g. <body>) that indicates the sidebar is hidden. This would allow end users and theme authors to use the class as a hook for additional styling and/or behaviors.
Are you willing to work on this yourself?
Yes
The text was updated successfully, but these errors were encountered:
Feature request
Refactor the
hideSidebar
option using a CSS class instead of styles applied directly to HTML elements.What problem does this feature solve?
The
hideSidebar
implementation applies styles directly to the<section class="content">
element to override the styles specified in a theme stylesheet. This makes it very difficult for other themes (like docsify-themeable) to support thehideSidebar
option properly without resorting to a JavaScript "fix".How should this be implemented in your opinion?
A better implementation would be to add a class to an appropriate parent element (e.g.
<body>
) that indicates the sidebar is hidden. This would allow end users and theme authors to use the class as a hook for additional styling and/or behaviors.Are you willing to work on this yourself?
Yes
The text was updated successfully, but these errors were encountered: