Toggle Sidebar BHL
STÁTI
Tuten šablon jest používati jen SCP Wiki.
PROSITI NECHATI TUTEN STRÁNKA
BEZ POVOLENIE ZŘIEDITELE
What this does
Makes the sidebar hidden by default and toggled via a corner button, similar to the mobile version of the site.
- Does NOT work on Sigma-9. This ONLY functions with Black Highlighter.
- Use this component by EstrellaYoshte instead if you intend to use Sigma-9.
- If you prefer, there is also a Collapsible Sidebar that functions on both BHL and Sigma-9.
The collapsible sidebar functions via hovering rather than clicking and is slightly more visible than the Toggle Sidebar.
How to use
1. Copy code below.
2. Paste in article after Black Highlighter and any other Theme include.
[[include :scp-wiki:component:toggle-sidebar-bhl]]
3. (Optional) Style toggle button if using a theme.
There are also 5 CSS Vars available to style the button if needed.
For the colors, it is heavily suggested that you use the available BHL Color Vars which can be found here.
:root {
--toggle-button-bg: hex/rgb/hsl color;
--toggle-border-color: hex/rgb/hsl color;
--toggle-border-width: px/rem/em;
--toggle-icon-color: hex/rgb/hsl color;
--toggle-roundness: percentage;
}
revize stránky: 4, naposledy editováno: 10 Mar 2021 01:40
