The style.css file is built from the following files: main.css + visual-override.js + custom.css.
So, the custom.css rules should be located at the end of the style.css – if it works for you locally all work as should.
--
Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!