kimai / kimai

Kimai is a web-based multi-user time-tracking application. Works great for everyone: freelancers, companies, organizations - everyone can track their times, generate reports, create invoices and do so much more. SaaS version available at https://www.kimai.cloud
https://www.kimai.org
GNU Affero General Public License v3.0
3.29k stars 585 forks source link

Custom CSS File #1267

Closed Bjoern3003 closed 4 years ago

Bjoern3003 commented 4 years ago

I know about the CustomCSS Plugin. But this is inject inline code and where not compiled by sass.

I think it could be nice, to support a custom.scss File in kimai to add some custom code, who can overwrite the default one.

kevinpapst commented 4 years ago

Can you explain why that would be beneficial? If you write a bundle, you need to provide pre-compiled css, that you can include in your own templates. And you can add code to the complete application via hooks already. Or via the CustomCSS-Bundle if it is only for yourself. Recompiling the application files would only bring merge problems during the next update.

kevinpapst commented 4 years ago

You can hook into the ThemeEvent::HTML_HEAD and add a line for your own css file. See https://github.com/kevinpapst/kimai2/blob/master/src/Event/ThemeEvent.php#L19

How you create the CSS file is up to you. You can use a SCSS compiler and import the kimai css files, if you want to re-use existing variables.

But I will not provide a way for custom scss.

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.