It is generally considered a bad idea to modify Moodle core code because it makes upgrading difficult.
To work around this you can use a 3rd party theme and modify appearance through that, or via the admin setting here
yourmoodle.com/admin/settings.php?section=additionalhtml