Page MenuHomePhabricator

Review of new CN community banner template
Open, MediumPublic


Whilst trying to improve our campaign processes and usage, one of the biggest needs I identified was the need for updated community banners.

For the this first stage was to achieve the following aim:

"Responsive and compatible for mobile viewing"

This is vital given the trend towards mobile traffic and the especially important to our editors and readers in countries with high mobile usage.

The most recent example of a banner showing the flaws with many of the current templates we use is the following:

The new template I would like to encourage use of is:

Notable changes:

  • Responsive and compatible for mobile
  • New close button
  • CSS gradient replaces raster/unresponsive image gradient background

Event Timeline

Jseddon created this task.Feb 28 2017, 12:59 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptFeb 28 2017, 12:59 AM

I would appreciate something smaller.

Banner looks clean and great, but if it could be made a bit smaller as Nemo suggested that won't hurt at all. Thanks Joseph for doing this. Regards.

Thank you Joseph. Regarding WikiFranca banners, I copy the code from another banner 5 or 6 years ago, and keep using the same code over and over.
And it's true, it displeases me to not be able to reach mobile devices. I will now use the code you propose as soon as we reach consensus here.
Thank you again.

@Benoit_Rochon - Yeah it's definitely not a critique of yourself directly. You were just simply unfortunate to be the most recently created campaign :)

@Nemo_bis & @MarcoAurelio - I've trimmed off about 16px in height though 10px of that was from the logo which obviously can change from banner to banner and remains at the discretion of the CentralNotice admin creating the banner. I've also reduced the banner logo margins to 0.5em in the logo but any smaller and it begins to look too crowded. This smaller form factor works fine for logos without text but realistically most community banners will continue to occupy a range between 60-80px in height.

Sure, I didn't thought it was a critique, don't worry ! It's improvement. I changed WikiFranca's banner. Thank you very much for flagging this.

@Jseddon I gave the code another quick review and it looks good to me. One minor thing: the logo position needs tweaking in RtL languages e.g.

Samat added a subscriber: Samat.Mar 1 2017, 12:11 PM
Itzike added a subscriber: Itzike.Mar 12 2017, 9:50 PM

@Jseddon I gave the code another quick review and it looks good to me. One minor thing: the logo position needs tweaking in RtL languages e.g.

Indded, the banner doesn't work properly in RTL. Can we try and fix it?

Jseddon added a comment.EditedOct 5 2017, 2:39 PM

All the code that has been smoothed and improved on in conjuction with my work with Wiki Loves Monuments has been merged into this new banner:


  • Improved RTL support
  • Improved responsiveness for mobile/desktop/ipad
  • Removed gradient background for improved accessibility
  • Button more inline with ooUI