Nested PB and styling colors

Nested PB and styling colors was created by trogladyte

Posted 5 years 10 months ago #48731
Never done this before I guess... :-)

www.ckdev.info/chandler/index.php?option...icle&id=3&Itemid=128

So I made a regular Joomla article, then turned it into a PB article. Added a row with Accordions in it. In the PB component I made a number of pages. In the first article I inserted these pages.

Then I began styling. What I found was that all the nested pages took the styling from the top Accordion regardless of what I set in them. Is this expected behavior?

A good landing is one you can walk away from.
A great landing is one where you can reuse the aircraft!

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Nested PB and styling colors

Posted 5 years 10 months ago #48734
Hi
this is normal
The css rule is like this :

#ID1529703585173 .ui-accordion-header.ui-state-active

this means that it targets all "ui-accordion-header" that are inside the block. If you nest in it, the situation is normal :)

for the fact that you are trying to give a different color in the nested ones and that it does not work, I see in the code that the CSS of the nested ones are loaded before the parent ones, so they are less important.

unfortunately, I will not have the time to look at this in the next week ...
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by trogladyte on topic Nested PB and styling colors

Posted 5 years 10 months ago #48736
OK that makes sense. Don't waste time on it on my account. Was just wondering.

A good landing is one you can walk away from.
A great landing is one where you can reuse the aircraft!

Please Log in or Create an account to join the conversation.

Time to create page: 0.658 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 1122 guests and no members online