mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-20 18:13:44 +03:00
parent
55bf7e3839
commit
1fad6f0eaa
|
@ -9,6 +9,7 @@
|
||||||
.pledge-contributor__avatar {
|
.pledge-contributor__avatar {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: $color-gray-light-700;
|
background: $color-gray-light-700;
|
||||||
|
margin-right: 4px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
@ -22,8 +23,20 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
|
&.has-2-contribs {
|
||||||
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
li {
|
||||||
|
margin-right: 20px;
|
||||||
|
|
||||||
|
@include breakpoint( $breakpoint-small ) {
|
||||||
|
margin-right: 48px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
margin: 0 auto 40px;
|
margin: 0 0 40px;
|
||||||
width: calc( 50% - 20px );
|
width: calc( 50% - 20px );
|
||||||
|
|
||||||
@include breakpoint( $breakpoint-small ) {
|
@include breakpoint( $breakpoint-small ) {
|
||||||
|
|
|
@ -91,7 +91,7 @@ get_header(); ?>
|
||||||
<h2><?php esc_html_e( 'Contributors', 'wporg' ); ?></h2>
|
<h2><?php esc_html_e( 'Contributors', 'wporg' ); ?></h2>
|
||||||
|
|
||||||
<?php if ( ! empty( $contributors ) ) : ?>
|
<?php if ( ! empty( $contributors ) ) : ?>
|
||||||
<ul class="pledge-contributors has-contrib-names">
|
<ul class="pledge-contributors has-contrib-names <?php echo ( 2 === count( $contributors ) ) ? 'has-2-contribs' : ''; ?>">
|
||||||
<?php foreach ( $contributors as $contributor ) : ?>
|
<?php foreach ( $contributors as $contributor ) : ?>
|
||||||
<li class="pledge-contributor">
|
<li class="pledge-contributor">
|
||||||
<span class="pledge-contributor__avatar">
|
<span class="pledge-contributor__avatar">
|
||||||
|
|
Loading…
Reference in a new issue