enqueued styles within the hook inside a conditional

After registering styles in the wp_register_styles hook, the enqueues
on template files stopped working; so I added a conditional inside the
hook function to enqueue them there.