Implement standard WordPress plugin grid layout
This commit is contained in:
@ -20,10 +20,20 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Standard WordPress Plugin Grid Layout */
|
||||||
|
.wp-list-table.plugin-install {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#the-list {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
/* Plugin Cards */
|
/* Plugin Cards */
|
||||||
.plugin-card {
|
.plugin-card {
|
||||||
width: calc(50% - 16px);
|
width: 48.5%;
|
||||||
margin: 8px;
|
margin: 0 3% 3% 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #dcdcde;
|
border: 1px solid #dcdcde;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
@ -33,6 +43,17 @@
|
|||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.plugin-card:nth-child(even) {
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 782px) {
|
||||||
|
.plugin-card {
|
||||||
|
width: 100%;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.plugin-card:hover {
|
.plugin-card:hover {
|
||||||
border-color: #999;
|
border-color: #999;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user