meeting-room-booking-system / mrbs-code

MRBS application code
Other
124 stars 61 forks source link

Change color of "user" table #1887

Open jberanek opened 7 years ago

jberanek commented 7 years ago

Hi all,

first, thank you for this very nice booking system. I adapted a lot for our group. Now I tried to bring it into our corporate design of the university, but I fail to find some last colors. In particular, I wanted to change the row colors of the "user" and "room" tables, which are still some kind of violet, but the styling.inc does not have this color at all. Are there any other places which are holding variable for colors except the mrbs.css.php?

Thank you and best regards,

Eugen Zimmermann

Reported by: *anonymous

Original Ticket: mrbs/support-requests/1168

Attachments: https://sourceforge.net/p/mrbs/support-requests/1168/attachment/2017-03-01.png

jberanek commented 7 years ago

The colour's in mrbs.css.php:

table.display tbody tr:nth-child(2n+1) {
  background-color: #E2E4FF;
}

Rather than editing mrbs.css.php you should create a custom CSS file to override it. See systemdefaults.inc.php for how to do this.

Original comment by: campbell-m

jberanek commented 7 years ago

Thank you for your quick reply.

Unfortunately my Version of MRBS (1.4.11) does not have these lines. This also holds for "override instructions" in "systemdefaults.inc.php". I guess I have to upgrade somehow, but I already changed a lot.

Original comment by: *anonymous

jberanek commented 7 years ago

In 1.4.11 the lines are in jquery/datatables/css/mrbs-table.css:

table.display tbody tr:nth-child(2n+1) {
  background-color: #E2E4FF;
}

tr.odd {
  background-color: #E2E4FF;
}

and the instructions in systemdefaults.inc.php are

// Use the $custom_css_url to override the standard MRBS CSS.
//$custom_css_url = 'css/custom.css';

But it would be a good idea to upgrade if you can, otherwise you'll be missing out on lots of bug fixes and enhancements.

Original comment by: campbell-m

jberanek commented 7 years ago

Thanks a lot.

I managed to upgrade, but I have to completely redesign my css file and theme. Anyway, now I can do it the right way with a custom.css.

Original comment by: *anonymous