Refine single column plugin layout: full-width nav, fix descriptions, right-align compatibility text, transparent loading spinner
This commit is contained in:
@ -1023,6 +1023,16 @@ body.wp-admin .button.pricing-button:hover,
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Filter navigation - full width */
|
||||||
|
#recommended .nav-tab-wrapper,
|
||||||
|
#recommended .subsubsub {
|
||||||
|
max-width: 100%;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0 0 20px 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
#recommended .plugin-card {
|
#recommended .plugin-card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 0 24px 0;
|
margin: 0 0 24px 0;
|
||||||
@ -1064,7 +1074,7 @@ body.wp-admin .button.pricing-button:hover,
|
|||||||
#recommended .plugin-card .name,
|
#recommended .plugin-card .name,
|
||||||
#recommended .plugin-card .desc {
|
#recommended .plugin-card .desc {
|
||||||
margin-left: 84px;
|
margin-left: 84px;
|
||||||
margin-right: 0;
|
margin-right: 120px; /* Ensure description doesn't overlap buttons */
|
||||||
}
|
}
|
||||||
|
|
||||||
#recommended .plugin-card .name h3 {
|
#recommended .plugin-card .name h3 {
|
||||||
@ -1083,28 +1093,50 @@ body.wp-admin .button.pricing-button:hover,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#recommended .plugin-card .action-links {
|
#recommended .plugin-card .action-links {
|
||||||
position: static;
|
position: absolute;
|
||||||
margin-top: 16px;
|
top: 0;
|
||||||
width: auto;
|
right: 0;
|
||||||
|
width: 120px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-direction: column;
|
||||||
|
align-items: flex-end;
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
justify-content: flex-end;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#recommended .plugin-card .plugin-action-buttons {
|
#recommended .plugin-card .plugin-action-buttons {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
float: none;
|
float: none;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#recommended .plugin-card .plugin-action-buttons .button {
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Plugin card bottom with right-aligned compatibility text */
|
||||||
#recommended .plugin-card .plugin-card-bottom {
|
#recommended .plugin-card .plugin-card-bottom {
|
||||||
background: #f6f7f7;
|
background: #f6f7f7;
|
||||||
padding: 15px;
|
padding: 15px 20px;
|
||||||
border-top: 1px solid #ddd;
|
border-top: 1px solid #ddd;
|
||||||
text-align: center;
|
text-align: right;
|
||||||
margin-top: auto;
|
margin-top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Loading spinner without background */
|
||||||
|
.wpa-loading-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: transparent;
|
||||||
|
z-index: 10;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
/* Responsive adjustments - maintain single column but adjust padding */
|
/* Responsive adjustments - maintain single column but adjust padding */
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 782px) {
|
||||||
#recommended .wpa-plugin-container {
|
#recommended .wpa-plugin-container {
|
||||||
@ -1115,11 +1147,43 @@ body.wp-admin .button.pricing-button:hover,
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#recommended .plugin-card .action-links .button {
|
#recommended .plugin-card .name,
|
||||||
|
#recommended .plugin-card .desc {
|
||||||
|
margin-right: 0; /* Allow full width on mobile */
|
||||||
|
margin-bottom: 60px; /* Space for action buttons below */
|
||||||
|
}
|
||||||
|
|
||||||
|
#recommended .plugin-card .action-links {
|
||||||
|
position: absolute;
|
||||||
|
top: auto;
|
||||||
|
bottom: 15px;
|
||||||
|
left: 16px;
|
||||||
|
right: 16px;
|
||||||
|
width: auto;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
#recommended .plugin-card .plugin-action-buttons {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Extra small screens */
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
#recommended .plugin-card .name,
|
||||||
|
#recommended .plugin-card .desc {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 80px; /* Space for icon above */
|
||||||
|
}
|
||||||
|
|
||||||
|
#recommended .plugin-card .plugin-icon {
|
||||||
|
position: absolute;
|
||||||
|
top: 16px;
|
||||||
|
left: 16px;
|
||||||
|
float: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Style compatibility message */
|
/* Style compatibility message */
|
||||||
#recommended .plugin-card .column-compatibility {
|
#recommended .plugin-card .column-compatibility {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -17,14 +17,13 @@
|
|||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Filter Bar */
|
/* Filter Bar - Full Width */
|
||||||
.wp-allstars-wrap #wpa-plugin-filters.wp-filter {
|
.wp-allstars-wrap #wpa-plugin-filters.wp-filter {
|
||||||
margin: 0 0 22px 0 !important;
|
margin: 0 0 22px 0 !important;
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
max-width: 700px;
|
max-width: 100% !important;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0 auto !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Center filter links */
|
/* Center filter links */
|
||||||
@ -52,6 +51,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-card:last-child {
|
.plugin-card:last-child {
|
||||||
@ -78,8 +78,10 @@
|
|||||||
margin: 0 20px 0 0 !important;
|
margin: 0 20px 0 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Name and description positioning */
|
||||||
.name.column-name {
|
.name.column-name {
|
||||||
margin: 0 0 12px 84px !important;
|
margin: 0 0 12px 84px !important;
|
||||||
|
margin-right: 120px !important; /* Ensure no overlap with action buttons */
|
||||||
}
|
}
|
||||||
|
|
||||||
.name.column-name h3 {
|
.name.column-name h3 {
|
||||||
@ -92,6 +94,7 @@
|
|||||||
|
|
||||||
.desc.column-description {
|
.desc.column-description {
|
||||||
margin: 0 0 16px 84px !important;
|
margin: 0 0 16px 84px !important;
|
||||||
|
margin-right: 120px !important; /* Ensure no overlap with action buttons */
|
||||||
font-size: 14px !important;
|
font-size: 14px !important;
|
||||||
line-height: 1.6 !important;
|
line-height: 1.6 !important;
|
||||||
color: #50575e !important;
|
color: #50575e !important;
|
||||||
@ -99,29 +102,52 @@
|
|||||||
|
|
||||||
/* Action Links */
|
/* Action Links */
|
||||||
.action-links {
|
.action-links {
|
||||||
position: static !important;
|
position: absolute !important;
|
||||||
margin-top: 16px !important;
|
top: 24px !important;
|
||||||
width: auto !important;
|
right: 24px !important;
|
||||||
|
width: 120px !important;
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
flex-wrap: wrap !important;
|
flex-direction: column !important;
|
||||||
|
align-items: flex-end !important;
|
||||||
gap: 8px !important;
|
gap: 8px !important;
|
||||||
justify-content: flex-end !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.plugin-action-buttons {
|
.plugin-action-buttons {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
float: none !important;
|
float: none !important;
|
||||||
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.plugin-action-buttons .button {
|
||||||
|
width: 100% !important;
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Card Bottom - Right aligned compatibility text */
|
||||||
.plugin-card-bottom {
|
.plugin-card-bottom {
|
||||||
background: #f6f7f7 !important;
|
background: #f6f7f7 !important;
|
||||||
padding: 15px !important;
|
padding: 15px 20px !important;
|
||||||
border-top: 1px solid #ddd !important;
|
border-top: 1px solid #ddd !important;
|
||||||
text-align: center !important;
|
text-align: right !important;
|
||||||
margin-top: auto !important;
|
margin-top: auto !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Responsive Adjustments - maintain single column but adjust padding */
|
/* Loading Overlay without white background */
|
||||||
|
.wp-allstars-loading-overlay {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background-color: transparent !important;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Responsive Adjustments */
|
||||||
@media screen and (max-width: 782px) {
|
@media screen and (max-width: 782px) {
|
||||||
.wp-allstars-wrap #wpa-plugin-list {
|
.wp-allstars-wrap #wpa-plugin-list {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
@ -131,11 +157,43 @@
|
|||||||
padding: 16px !important;
|
padding: 16px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-links .button {
|
.name.column-name,
|
||||||
|
.desc.column-description {
|
||||||
|
margin-right: 0 !important; /* Allow full width on mobile */
|
||||||
|
margin-bottom: 60px !important; /* Space for action buttons below */
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-links {
|
||||||
|
position: absolute !important;
|
||||||
|
top: auto !important;
|
||||||
|
bottom: 15px !important;
|
||||||
|
left: 16px !important;
|
||||||
|
right: 16px !important;
|
||||||
|
width: auto !important;
|
||||||
|
flex-direction: row !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-action-buttons {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Extra small screens */
|
||||||
|
@media screen and (max-width: 480px) {
|
||||||
|
.name.column-name,
|
||||||
|
.desc.column-description {
|
||||||
|
margin-left: 0 !important;
|
||||||
|
margin-top: 80px !important; /* Space for icon above */
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-icon {
|
||||||
|
position: absolute !important;
|
||||||
|
top: 16px !important;
|
||||||
|
left: 16px !important;
|
||||||
|
float: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Global plugin icon positioning that applies to all viewport sizes */
|
/* Global plugin icon positioning that applies to all viewport sizes */
|
||||||
body.wp-admin .plugin-card .plugin-icon {
|
body.wp-admin .plugin-card .plugin-icon {
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
|
Reference in New Issue
Block a user