style badge grid into a grid.

This commit is contained in:
Kelly Dwan 2019-10-27 13:01:12 -04:00
parent b968c967a7
commit 407dcc8d22
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D
2 changed files with 30 additions and 8 deletions

View file

@ -2,10 +2,35 @@
* Copied from the profiles.wordpress.org theme stylesheet.
*/
.team-grid div.dashicons:before {
.team-grid {
display: flex;
flex-wrap: wrap;
margin: 0;
list-style: none;
li {
display: flex;
align-items: center;
margin: 0 0 1em;
width: 25%;
min-width: 10em;
}
div.dashicons {
margin-right: 0.5em;
&:before {
position: relative;
top: 2px;
font-size: 24px;
}
}
@include breakpoint( 0, $breakpoint-small ) {
li {
width: 100%;
}
}
}
.badge {
@ -16,9 +41,6 @@
border-radius: 50%;
box-sizing: border-box;
position: relative;
//position: absolute;
//top: 8px;
//left: 0;
}
.badge-themes-reviewer {

View file

@ -71,7 +71,7 @@ get_header(); ?>
?>
<li>
<div class="badge item dashicons <?php echo esc_attr( implode( ' ', $badge_classes ) ); ?>"></div>
<?php echo esc_html( $team ); ?>
<span class="badge-label"><?php echo esc_html( $team ); ?></span>
</li>
<?php endforeach; ?>
</ul>