fix mobile view project overview
This commit is contained in:
parent
77c2cdffe8
commit
c36d84a8a3
2 changed files with 4 additions and 2 deletions
|
|
@ -350,6 +350,8 @@ add_action( 'wp_head', 'kit_customize_css');
|
||||||
function kit_modify_posts_per_page( $query ) {
|
function kit_modify_posts_per_page( $query ) {
|
||||||
if ( $query->is_search() ) {
|
if ( $query->is_search() ) {
|
||||||
$query->set( 'posts_per_page', '10' );
|
$query->set( 'posts_per_page', '10' );
|
||||||
|
} else {
|
||||||
|
$query->set( 'posts_per_page', '9' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
add_action( 'pre_get_posts', 'kit_modify_posts_per_page' );
|
add_action( 'pre_get_posts', 'kit_modify_posts_per_page' );
|
||||||
|
|
|
||||||
|
|
@ -626,7 +626,7 @@ section .content-wrap > * + * {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
.container-3-cols .column {
|
.container-3-cols .column {
|
||||||
width: calc(50% - 0.83333rem);
|
width: calc(45% - 0.83333rem);
|
||||||
}
|
}
|
||||||
.container-3-cols .column + .column {
|
.container-3-cols .column + .column {
|
||||||
margin-left: 1.66667rem;
|
margin-left: 1.66667rem;
|
||||||
|
|
@ -698,7 +698,7 @@ section .content-wrap > * + * {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 420px) {
|
@media (max-width: 520px) {
|
||||||
.container-3-cols {
|
.container-3-cols {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue