Skip to content

Instantly share code, notes, and snippets.

@muzzwood
Last active February 23, 2019 00:29
Show Gist options
  • Select an option

  • Save muzzwood/6c9b10bf296177c3c9086dc2b6dbd827 to your computer and use it in GitHub Desktop.

Select an option

Save muzzwood/6c9b10bf296177c3c9086dc2b6dbd827 to your computer and use it in GitHub Desktop.
Group Contexts Hack in MODX 2.
<?php
$modx->regClientStartupHTMLBlock('
<style>
#modx-leftbar-tabpanel > .x-tab-panel-bwrap {box-shadow:none;}
.x-tree-root-node {background-color:#f2f2f2;}
.x-tree-root-node > .x-tree-node {background-color:#fff; box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);}
.x-tree-root-node > .x-tree-node:nth-child(3) { margin-bottom:30px;}
.x-tree-root-node > .x-tree-node:nth-child(6) { margin-bottom:30px;}
</style>
');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment