Single post in Styleclass and You: An Introduction
Forum Index > PokéFarm > Guides > Styleclass and You: An Introduction >
Hey guys, need a little bit of coding expertise:
Is it possible to change the colour of certain a-sections in an accordion? You can't add a styleclass around just the a-sections because it confuses the accordion, and I can't figure out how to apply an nth-child either. Assistance appreciated!
I know the div part of the code is empty, I just left it there for now
Example
I stay pink
I wanna be blue
I stay pink
code
[sc=basic][accordion]
[a-section=I stay pink][/a-section]
[a-section=I wanna be blue][/a-section]
[a-section=I stay pink][/a-section][/accordion][/sc]
[style]
.basic{
//blue
.panel{
&>h3 {
background-color:#46D9E9;
color: #0A1C46;}
&>div {
} }
}
.basic{
//pink
.panel {
&>h3 {
background-color:#E795DA;
color: #260B22;}
&>div {
} }
}
[/style]
Avatar by Yukirona