Skip to content

Instantly share code, notes, and snippets.

View andersjohansson's full-sized avatar

Anders Johansson andersjohansson

View GitHub Profile
@shvchk
shvchk / userChrome.css
Last active May 4, 2025 09:52
userChrome.css: Floating collapsible sidebar for vertical tabs. Video demo: https://youtu.be/bonasv2q98U
@-moz-document url("chrome://browser/content/browser.xhtml") {
/* To bring back OS title bar with min/max/close buttons, some users might
* consider setting browser.tabs.drawInTitlebar to false in about:config
*/
:root {
--custom-sidebar-collapsed-width: 35px;
--custom-sidebar-full-width: 20vw;
--custom-sidebar-border: 0px solid #404040;
}
@stephenh1988
stephenh1988 / sh-wp-dropdown-taxonomies.php
Created June 9, 2012 20:40
A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID
<?php
/*
* A walker class to use that extends wp_dropdown_categories and allows it to use the term's slug as a value rather than ID.
*
* See http://core.trac.wordpress.org/ticket/13258
*
* Usage, as normal:
* wp_dropdown_categories($args);
*