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.

Revisions

  1. @digitalpenguin digitalpenguin revised this gist Feb 23, 2019. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions groupcontexts.plugin.php
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,10 @@
    <?php
    // Manually specify which contexts/nodes should have a margin below in the :nth-child() part.
    $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);}
    // Manually specify which contexts/nodes should have a margin below.
    .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>
  2. @digitalpenguin digitalpenguin revised this gist Feb 23, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions groupcontexts.plugin.php
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,7 @@
    .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);}
    // Manually specify which contexts/nodes should have a margin below.
    .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>
  3. @digitalpenguin digitalpenguin renamed this gist Feb 23, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @digitalpenguin digitalpenguin created this gist Feb 23, 2019.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    <?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>
    ');