(please don't use tabs in code, configure your editor to 4 cc per tab)
Within the docs a JS loads the theme CSS if opend within Moodle. Within docstyles.php the standard doc styles can be overwritten.