Keleo / CustomCSSBundle

Kimai bundle to add custom CSS rules to your installation.
https://www.kimai.org/store/keleo-css-custom-bundle.html
MIT License
15 stars 10 forks source link

How to change application title and login-page #8

Closed Collandi closed 5 years ago

Collandi commented 5 years ago

Hi Kevin, I installed the Plugin and it works fineafter login.

But

  1. How to change application title? (Kimai Zeiterfassung -> Custom Title)

  2. Is it possible to change the Login-Page?

.login-page {
background:#d2d6de
} 

doesn't works.

THX Andreas

buzter commented 5 years ago

Hi,

I had the same issue. For me worked the following:

.login-logo, .register-logo { visibility: hidden; } .layout-boxed body, .layout-boxed html, body, html { background: #000000; } .login-page, .register-page { background: none; }

kevinpapst commented 5 years ago

You need the latest Kimai release 1.1. In previous versions the Custom CSS wasn't loaded on the login screen.

kevinpapst commented 5 years ago

And the browser title can't be changed with CSS

kevinpapst commented 5 years ago

And here is the docu for all the other stuff: https://www.kimai.org/documentation/branding.html

Collandi commented 5 years ago

Hi Kevin, thank you very much.

If you use these options, you should really consider to donate something back to Kimai!

For sure!

Collandi commented 5 years ago

You need the latest Kimai release 1.1. In previous versions the Custom CSS wasn't loaded on the login screen.

It doesn't works in my Kimai2 installation. I tried to use the code above to change the login background color. I cleared and warmed up the cache but nothing is changed.

Any suggestions?

kevinpapst commented 5 years ago

"Doesn't work" is not very descriptive ;-) Make sure the Custom CSS plugin is loaded (check the admin screen). Make sure the CSS rule is included in your login pages source HTML code (use "show source" in your browser). As @buzter rules work in http://demo-plugins.kimai.org/ it must be something on your end.

Collandi commented 5 years ago

Hi Kevin, first I have to tell you, we are very impressed of Kimai Timetracker. Great work and easy to use without nicknack. Thank you very much.

About my issue: Yes, the Custom CSS Plugin is loaded and work for the screens after login but not for the login-page.

If I change the CSS rule in the browser it works.

Screenshot: kimai-css-login-page-browser-change

If I add the same css rule in the plugin:

kimai-css-backend

nothing is changed:

kimai-css-login-page-with-custom-css

I tried with !important too without success.

What's wrong?

Best regards Andreas

kevinpapst commented 5 years ago

Make sure the CSS rule is included in your login pages source HTML code (use "show source" in your browser).

Bildschirmfoto 2019-07-30 um 18 00 50
Collandi commented 5 years ago

I know. But isn't included:

login-source

kevinpapst commented 5 years ago

Output of bin/console kimai:version?

Collandi commented 5 years ago

Kimai 2 - 1.0.1 stable (Ayumi) by Kevin Papst and contributors.

kevinpapst commented 5 years ago

Oh really. Come one...

You need the latest Kimai release 1.1. In previous versions the Custom CSS wasn't loaded on the login screen.

Not very respectful to simply ignore my answers.