Roych

backend diferent repeater color?

Recommended Posts

Hello,

is it possible to change the color for each of the repeater in backend? I have two stacked repeaters and it is sometimes hard to find the right item to edit. So I would like to have the parent repeater in default green (Reno) and child repeater maybe some other color.

Thank you

R

Share this post


Link to post
Share on other sites

In AdminThemeUikit (might be dev branch only at the moment) you can choose from a few colour options for inputfields:

2018-05-17_120524.png.d7c6f3a42c3bae4de7b8057a4e720422.png

But it would be more flexible to use your browser dev tools to inspect the markup in Page Edit, find what class is unique to the inputfield you want to change, then use AdminOnSteroids or AdminCustomFiles to add a custom CSS file to change the background colour.

  • Like 3

Share this post


Link to post
Share on other sites

To give you another option:

I almost always use Reno and add an admin stylesheet to it via a hook in init.php

$this->addHookAfter('ProcessController::execute', function (HookEvent $event) {
   $this->config->styles->append("/site/templates/css/adminstyles.css");
});

and CSS to style stuff like Repeater:

.Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader,
.Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader span {background:#59261E;}
.Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader:hover,
.Inputfields .Inputfield_auswahl404.InputfieldRepeater>.InputfieldContent .InputfieldRepeaterItem>.InputfieldHeader:hover span {background:#F5B92C;}

where .Inputfield_auswahl404 your fieldname is.

Like Robin S said, inspect with your DEV tools..

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.