Update plugin grid to match WordPress native plugin card layout
This commit is contained in:
@ -340,53 +340,81 @@ input:checked + .wp-toggle-slider:before {
|
||||
min-height: 400px;
|
||||
}
|
||||
|
||||
/* Plugin Grid Layout */
|
||||
.wp-list-table {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Plugin Cards */
|
||||
.plugin-card {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
float: left;
|
||||
margin: 0 8px 16px;
|
||||
padding: 0;
|
||||
width: calc(50% - 16px);
|
||||
border: 1px solid #ddd;
|
||||
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
|
||||
transition: all 0.2s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,.04);
|
||||
background-color: #fff;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.plugin-card:hover {
|
||||
border-color: #2271b1;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
||||
.plugin-card:nth-child(2n+1) {
|
||||
clear: both;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.plugin-card .plugin-card-top {
|
||||
padding: 20px;
|
||||
min-height: 150px;
|
||||
flex-grow: 1;
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
.plugin-card:nth-child(2n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.plugin-card .plugin-icon {
|
||||
border-radius: 4px;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
flex-shrink: 0;
|
||||
.plugin-card-top {
|
||||
position: relative;
|
||||
padding: 20px 20px 10px;
|
||||
min-height: 135px;
|
||||
}
|
||||
|
||||
.plugin-card .name,
|
||||
.plugin-card .desc {
|
||||
margin-left: 148px;
|
||||
margin-right: 120px;
|
||||
}
|
||||
|
||||
.plugin-card .name h3 {
|
||||
margin: 0 0 12px;
|
||||
font-size: 18px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.plugin-card .desc {
|
||||
margin-top: 0;
|
||||
margin-bottom: 12px;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: #50575e;
|
||||
}
|
||||
|
||||
.plugin-card .plugin-card-bottom {
|
||||
background: #f6f7f7;
|
||||
border-top: 1px solid #ddd;
|
||||
clear: both;
|
||||
padding: 12px 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #f6f7f7;
|
||||
border-top: 1px solid #ddd;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.plugin-card .plugin-icon {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
width: 128px;
|
||||
height: 128px;
|
||||
margin: 0 20px 20px 0;
|
||||
}
|
||||
|
||||
.plugin-action-buttons {
|
||||
clear: right;
|
||||
float: right;
|
||||
margin-left: 2em;
|
||||
margin-bottom: 1em;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.plugin-action-buttons div {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.plugin-card .column-rating,
|
||||
@ -395,6 +423,47 @@ input:checked + .wp-toggle-slider:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.plugin-card .action-links {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
width: 120px;
|
||||
}
|
||||
|
||||
.plugin-card .action-links .button {
|
||||
display: block;
|
||||
text-align: center;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.plugin-card .action-links .button.button-primary {
|
||||
background: #2271b1;
|
||||
border-color: #2271b1;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.plugin-card .action-links .button.button-primary:hover {
|
||||
background: #135e96;
|
||||
border-color: #135e96;
|
||||
}
|
||||
|
||||
.plugin-card .name a,
|
||||
.plugin-card .action-links a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.plugin-card .desc,
|
||||
.plugin-card .author {
|
||||
margin: 0 0 12px;
|
||||
color: #646970;
|
||||
}
|
||||
|
||||
.plugin-card .author {
|
||||
color: #646970;
|
||||
font-size: 13px;
|
||||
margin-left: 148px;
|
||||
}
|
||||
|
||||
/* Theme Container */
|
||||
#wpa-theme-list {
|
||||
margin-top: 20px;
|
||||
@ -498,8 +567,11 @@ input:checked + .wp-toggle-slider:before {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.wp-list-table {
|
||||
grid-template-columns: 1fr;
|
||||
.plugin-card {
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
width: 100%;
|
||||
clear: both;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user