Customize Panels to Look Like Panelboxes

It’s hardly as convenient as a Panelbox (via the commercial “Advanced Panelboxes” plugin), but you can make a standard Confluence panel look quite a bit fancier. Here’s a gussied-up Confluence panel:

In this example, the following was done:

  • Changed the font in the header
  • Aligned the header text (center)
  • Styled the header text with shadows and text spacing
  • Gave the panel rounded corners

You’re going to need to edit your global or space stylesheet, though. (If you’re an admin, you can go to Look and Feel and then select Stylesheet.)

I found this on an Atlassian page and slightly tweaked it with different values (you can obviously do the same), then added it to the stylesheet of the space I was working on:

.panel, #content .panel {
-moz-border-radius: 7px;
-webkit-border-radius: 7px;
border-radius: 7px;
}

.panel .panelHeader {
font-family:calibri,helvetica,sans-serif;
font-size:13pt;
text-align: center;
text-shadow: 1px 1px 3px #404040;
font-weight:110%;
letter-spacing: 0.5x;
line-height: 1em;
padding: 10px 10px 10px;
margin-bottom: 0;
-moz-border-radius-topleft: 7px;
-moz-border-radius-topright: 7px;
-webkit-border-top-right-radius: 7px;
-webkit-border-top-left-radius: 7px;
border-top-right-radius: 7px;
border-top-left-radius: 7px;
}

So, once the stylesheet is done, you can from that point on either re-use an already customized panel, or start from scratch with a new panel. In the screenshot above, this is how I customized my panel:

You can keep different variants on a Personal Confluence page and then trot them out on other pages as needed.

NOTE: this will obviously become a bit of a chore (not to mention a source of colour-scheme inconsistencies, if not real design mishaps) if people other than yourself are also building Confluence pages.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.