Come for answers. Stay for best practices. All we’re missing is you.
Hi, I have a requirement where i need to change viewer banner background color and text and icon color to be different from icn banner and icon and text color. Unfortunately, both icn and viewer takes colors from theme. Is there a way i can use different colors for viewer and different for icn using css. Thanks
Hi Amit,
You may add viewerToolbarContainer to css to use different colors.
.ecm.icn .ecmBanner.viewerToolbarContainer { background: #4392f0; }
Regards,
Angie
Thanks Angie,
what about the text and icon color of viewer banner. Even those are inheriting from the theme?
The following css works for me.
.ecm.icn .ecmBanner.viewerToolbarContainer * { color: #1f2125; } .ecm.icn .ecmBanner.viewerToolbarContainer .dijitIcon, .ecm.icn .ecmBanner.viewerToolbarContainer .dijitArrowButtonInner { filter: invert(100%); }
The "filter" changes the color of the background images. You may also create your own background images and set them for your icons.