Update plugin grid layout to exactly match WordPress core Add Plugins page
This commit is contained in:
@ -20,48 +20,32 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Standard WordPress Plugin Grid Layout */
|
/* Standard WordPress Plugin Grid Layout - exactly matching core */
|
||||||
.wp-list-table.plugin-install {
|
.wp-list-table.plugin-install {
|
||||||
margin-top: 10px;
|
margin-top: 20px;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
#the-list {
|
#the-list {
|
||||||
display: block;
|
margin: 0;
|
||||||
margin: 0 -8px; /* Negative margin to offset padding */
|
display: flex;
|
||||||
overflow: hidden; /* Clearfix for floats */
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Plugin Cards */
|
/* Plugin Cards */
|
||||||
.plugin-card {
|
.plugin-card {
|
||||||
width: 50%;
|
margin: 0 8px 16px;
|
||||||
padding: 0 8px 16px;
|
width: calc(50% - 16px);
|
||||||
box-sizing: border-box;
|
|
||||||
background-color: transparent;
|
|
||||||
border: none;
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.plugin-card:nth-child(2n+1) {
|
|
||||||
clear: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
.plugin-card .plugin-card-inner {
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #dcdcde;
|
border: 1px solid #dcdcde;
|
||||||
border-radius: 3px;
|
box-sizing: border-box;
|
||||||
height: 100%;
|
position: relative;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 1024px) {
|
||||||
.plugin-card {
|
.plugin-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin: 0 0 16px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -73,7 +57,6 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
padding: 20px 20px 10px;
|
padding: 20px 20px 10px;
|
||||||
min-height: 135px;
|
min-height: 135px;
|
||||||
flex-grow: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-icon {
|
.plugin-icon {
|
||||||
@ -126,9 +109,6 @@
|
|||||||
clear: both;
|
clear: both;
|
||||||
padding: 12px 20px;
|
padding: 12px 20px;
|
||||||
background-color: #f6f7f7;
|
background-color: #f6f7f7;
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
border-radius: 0 0 3px 3px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-card-bottom > div {
|
.plugin-card-bottom > div {
|
||||||
|
@ -315,7 +315,6 @@ function wp_allstars_generate_plugin_cards($plugins) {
|
|||||||
<div id="the-list">
|
<div id="the-list">
|
||||||
<?php foreach ($plugins as $plugin): ?>
|
<?php foreach ($plugins as $plugin): ?>
|
||||||
<div class="plugin-card plugin-card-<?php echo esc_attr($plugin->slug); ?>">
|
<div class="plugin-card plugin-card-<?php echo esc_attr($plugin->slug); ?>">
|
||||||
<div class="plugin-card-inner">
|
|
||||||
<div class="plugin-card-top">
|
<div class="plugin-card-top">
|
||||||
<div class="name column-name">
|
<div class="name column-name">
|
||||||
<h3>
|
<h3>
|
||||||
@ -394,7 +393,6 @@ function wp_allstars_generate_plugin_cards($plugins) {
|
|||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user