Skip to content

Commit

Permalink
Added cms-tweaks.css
Browse files Browse the repository at this point in the history
Removes unnecessary arrow and “too many items” from site tree using CSS.

Awaiting fix: silverstripe/silverstripe-lumberjack#91
  • Loading branch information
purplespider committed Sep 18, 2019
1 parent 2a629f5 commit 591d6bf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ PurpleSpider\BasicNews\NewsHolder:
- PurpleSpider\BasicNews\CustomLumberjack
PurpleSpider\BasicNews\NewsArticle:
show_in_sitetree: false
SilverStripe\Admin\LeftAndMain:
extra_requirements_css:
- 'vendor/purplespider/basic-news/client/dist/cms-tweaks.css'
9 changes: 9 additions & 0 deletions client/dist/css/cms-tweaks.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Hides unnecessary "Too many pages (show as list)" item in site tree */
.cms-tree .class-PurpleSpider_BasicNews_NewsHolder li.readonly {
display: none;
}

/* Hides unnecessary "show child pages" arrow icon in site tree */
.cms-tree .class-PurpleSpider_BasicNews_NewsHolder .font-icon-right-dir:before {
visibility: hidden;
}

0 comments on commit 591d6bf

Please sign in to comment.