Revert "call document function if provided overriding default styles"

This reverts commit 07f93c248c24e5ad8e6230861e6c5dc078b72a84.
1.0.5