You need different style names for different styled panels. Use
Panel.addStyleName(“my-custom-style”)
, and then the following CSS selectors:
/* The root element */
[b]
.v-panel-my-custom-style
[/b] {
}
/* The caption element of the panel */
[b]
.v-panel-caption-my-custom-style
[/b] {
}
/* The caption element of the panel, when the caption is empty */
[b]
.v-panel-nocaption-my-custom-style
[/b] {
}
/* The content element for the panel */
[b]
.v-panel-content-my-custom-style
[/b] {
}
/* An additional element, purely for styling, below the content element */
[b]
.v-panel-deco-my-custom-style
[/b] {
}