Theme: Add temporary badge for Photos to fill empty icon.

There isn't a badge for the Photos team yet -- see https://meta.trac.wordpress.org/ticket/5981 -- so for now I just used the `camera` dashicon that Luke Carbis suggested in https://meta.trac.wordpress.org/ticket/5988.

We can update it whenever the final badge icon/colors are decided.

Fixes #171
This commit is contained in:
Ian Dunn 2022-03-28 15:12:45 -07:00
parent 5d8b056798
commit d86c93c67e
No known key found for this signature in database
GPG key ID: 99B971B50343CBCB
2 changed files with 12 additions and 0 deletions

View file

@ -131,6 +131,14 @@
color: rgb(103, 74, 255);
}
.badge-photos {
background: rgba(103, 74, 255, 0.25);
box-shadow: 0 0 0 4px rgb(103, 74, 255);
}
.badge-photos:before {
color: rgb(103, 74, 255);
}
.badge-training{
background: rgba(233, 192, 45, 0.25);
box-shadow: 0 0 0 4px rgb(233, 192, 45);

View file

@ -287,6 +287,10 @@ function get_badge_classes( $team ) {
$classes = array( 'badge-openverse', 'dashicons-search' );
break;
case 'photos team':
$classes = array( 'badge-photos', 'dashicons-camera' );
break;
case 'polyglots team':
$classes = array( 'badge-translation-editor', 'dashicons-translation' );
break;