mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-04-22 19:13:44 +03:00
parent
27a8080424
commit
a5f96240f1
|
@ -18,31 +18,29 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.has-contrib-names {
|
&.has-contrib-names {
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
margin: ms(2) 0;
|
margin: ms(2) 0;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
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 0 40px;
|
display: inline-block;
|
||||||
width: calc( 50% - 20px );
|
margin: 0 20px 40px 0;
|
||||||
|
width: calc( 50% - 15px );
|
||||||
|
|
||||||
|
&:nth-of-type(2n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
@include breakpoint( $breakpoint-small ) {
|
@include breakpoint( $breakpoint-small ) {
|
||||||
width: calc( 33% - 48px );
|
margin-right: 48px;
|
||||||
min-width: 170px;
|
width: calc( 33% - 33px );
|
||||||
|
|
||||||
|
&:nth-of-type(2n) {
|
||||||
|
margin-right: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-of-type(3n) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 <?php echo ( 2 === count( $contributors ) ) ? 'has-2-contribs' : ''; ?>">
|
<ul class="pledge-contributors has-contrib-names">
|
||||||
<?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