Files
wpa-superstar-plugin/admin/css/wp-allstars-plugins.css

679 lines
14 KiB
CSS

/* Plugin Browser Styles */
.wp-allstars-plugin-browser {
margin: 0 -8px;
padding: 0 8px;
}
/* Plugin List Container */
#wpa-plugin-list {
display: flex;
flex-wrap: wrap;
margin: 0;
width: 100%;
}
/* Filter Bar */
#wpa-plugin-filters.wp-filter {
margin-left: 0;
margin-right: 0;
width: 100%;
box-sizing: border-box;
}
/* Standard WordPress Plugin Grid Layout - exactly matching core */
.wp-list-table.plugin-install {
margin-top: 20px;
clear: both;
padding: 0;
}
#the-list {
margin: 0;
display: flex;
flex-wrap: wrap;
padding: 0;
}
/* Plugin Cards - essential layout only */
.plugin-card {
margin: 0 8px 16px;
width: calc(50% - 16px);
background-color: #fff;
border: 1px solid #dcdcde;
box-sizing: border-box;
}
/* Ensure the right edge aligns with the navigation above */
.plugin-card:nth-child(even) {
margin-right: 0;
}
.plugin-card:nth-child(odd) {
margin-left: 0;
}
/* Maintain consistent center gutter at all widths */
@media screen and (min-width: 1600px) {
/* Force equal spacing between all cards */
.plugin-card:nth-child(odd) {
margin-right: 8px;
}
.plugin-card:nth-child(even) {
margin-left: 8px;
}
}
/* Responsive behavior - only change layout below 1086px and above 768px */
@media screen and (max-width: 1086px) and (min-width: 769px) {
/* Keep the desktop layout in this range */
.plugin-card {
width: calc(50% - 16px);
margin: 0 8px 16px;
}
/* Maintain consistent edge alignment */
.plugin-card:nth-child(even) {
margin-right: 0;
}
.plugin-card:nth-child(odd) {
margin-left: 0;
}
}
/* Full width layout only below 768px */
@media screen and (max-width: 768px) {
.plugin-card {
width: 100%;
margin: 0 0 16px 0;
}
}
/* Mobile styles - now working with correct positioning */
@media screen and (max-width: 768px) {
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card {
border: 1px solid #dcdcde !important;
width: 100% !important;
margin: 0 0 16px 0 !important;
padding: 0 !important;
box-sizing: border-box !important;
}
/* Card top section with proper positioning */
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card .plugin-card-top {
display: block !important;
min-height: 100px !important;
position: relative !important;
padding: 20px !important;
overflow: hidden !important;
}
/* Place plugin icon on the left of the plugin name, moved 35px to the right */
body.wp-admin .plugin-card .plugin-icon {
position: relative !important;
float: left !important;
top: auto !important;
right: auto !important;
left: 35px !important;
margin: 0 20px 0 0 !important;
width: 64px !important;
height: 64px !important;
z-index: 1 !important;
}
/* Position name next to the icon with consistent width, moved 35px left and narrower wrap */
body.wp-admin .plugin-card .name.column-name {
margin-left: -35px !important;
margin-right: 0 !important;
margin-bottom: 10px !important;
margin-top: 0 !important;
text-align: left !important;
display: inline-block !important;
width: calc(75% - 155px) !important;
max-width: none !important;
vertical-align: top !important;
padding-left: 35px !important;
}
body.wp-admin .plugin-card .name.column-name h3 {
margin-bottom: 5px !important;
word-wrap: break-word !important;
width: 100% !important;
}
/* Position action buttons to the right of plugin name */
body.wp-admin .plugin-card .action-links {
position: absolute !important;
top: 20px !important;
right: 20px !important;
z-index: 2 !important;
display: flex !important;
flex-direction: column !important;
align-items: flex-end !important;
}
body.wp-admin .plugin-card .action-links .plugin-action-buttons {
margin-bottom: 8px !important;
}
body.wp-admin .plugin-card .action-links .plugin-action-buttons li {
display: block !important;
margin-bottom: 5px !important;
}
/* Fix description spacing */
body.wp-admin .plugin-card-bottom {
padding: 15px 20px !important;
margin-top: 0 !important;
text-align: left !important;
margin-left: 0 !important;
margin-right: 0 !important;
max-width: none !important;
clear: both !important;
width: 100% !important;
box-sizing: border-box !important;
}
/* Remove excessive spacing between elements */
body.wp-admin .plugin-card p,
body.wp-admin .plugin-card .desc.column-description {
margin-top: 0 !important;
margin-bottom: 8px !important;
text-align: left !important;
margin-left: 0 !important;
}
/* Fix compatibility check positioning and height */
body.wp-admin .plugin-card .compatibility-compatible {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding: 3px 20px !important;
width: 100% !important;
box-sizing: border-box !important;
text-align: center !important;
max-width: none !important;
display: block !important;
line-height: 1.2 !important;
}
/* Ensure compatibility text container has full width */
body.wp-admin .plugin-card-bottom p,
body.wp-admin .plugin-card-bottom div {
width: 100% !important;
max-width: none !important;
box-sizing: border-box !important;
margin-left: 0 !important;
margin-right: 0 !important;
}
}
/* Center More Details under all buttons */
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card .action-links a.thickbox,
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card .plugin-action-buttons a.thickbox,
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card a.thickbox {
display: block !important;
text-align: center !important;
margin: 5px auto !important;
float: none !important;
clear: both !important;
width: auto !important;
}
/* Position Go Pro below More Details and center it */
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card .action-links .button.go-pro {
display: block !important;
text-align: center !important;
margin-top: 5px !important;
margin-bottom: 5px !important;
}
/* Ensure consistent layout for action buttons */
body.wp-admin .wp-list-table.plugin-install #the-list .plugin-card .action-links .plugin-action-buttons li {
display: block !important;
margin-bottom: 5px !important;
text-align: center !important;
}
.plugin-card:hover {
border-color: #999;
}
.plugin-card-top {
position: relative;
padding: 20px 20px 10px;
min-height: 135px;
}
.plugin-icon {
position: absolute;
top: 20px;
left: 20px;
width: 128px;
height: 128px;
margin: 0 20px 20px 0;
}
.plugin-icon img {
width: 100%;
height: 100%;
max-width: 128px;
max-height: 128px;
}
.name.column-name {
margin-right: 200px;
margin-left: 148px;
}
.name.column-name h3 {
font-size: 1.3em;
line-height: 1.4;
margin: 0 0 12px;
}
.action-links {
position: absolute;
top: 20px;
right: 20px;
width: 200px;
}
.plugin-action-buttons {
clear: right;
float: right;
margin-left: 2em;
margin-bottom: 1em;
text-align: right;
}
.plugin-action-buttons li {
margin-bottom: 10px;
}
.plugin-card-bottom {
clear: both;
padding: 12px 20px;
background-color: #f6f7f7;
}
.plugin-card-bottom > div {
margin-bottom: 0;
flex: 1 0 auto;
padding-bottom: 0;
}
.column-rating {
line-height: 23px;
}
.column-downloaded,
.column-updated,
.column-compatibility {
text-align: right;
color: #50575e;
font-size: 13px;
}
.column-compatibility span {
font-style: italic;
}
.compatibility-compatible {
color: #00a32a;
}
.compatibility-incompatible {
color: #d63638;
}
.compatibility-untested {
color: #dba617;
}
.desc.column-description {
margin-left: 148px;
margin-right: 120px;
}
.desc.column-description p {
font-size: 13px;
line-height: 1.5;
margin: 0 0 10px;
}
.desc.column-description p.authors {
color: #50575e;
font-size: 13px;
margin-top: 0;
}
.star-rating {
display: inline-block;
position: relative;
height: 20px;
width: 100px;
font-size: 20px;
}
.star-rating .star {
width: 20px;
height: 20px;
display: inline-block;
background-image: url(../images/stars.png);
background-repeat: no-repeat;
}
.star-rating .star-full {
background-position: 0 0;
}
.star-rating .star-half {
background-position: -20px 0;
}
.star-rating .star-empty {
background-position: -40px 0;
}
.num-ratings {
font-size: 13px;
color: #50575e;
}
/* Plugin Filters */
.wp-filter {
display: flex;
flex-wrap: wrap;
margin: 12px 0 25px;
padding: 0 10px;
background: #fff;
border: 1px solid #dcdcde;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
position: relative;
box-sizing: border-box;
width: 100%;
border-radius: 3px;
}
.filter-links {
display: flex;
flex-wrap: wrap;
margin: 0;
}
.filter-links li {
margin: 0;
padding: 0;
display: inline-block;
}
.filter-links li > a {
display: inline-block;
margin: 0;
padding: 15px 10px;
cursor: pointer;
color: #646970;
text-decoration: none;
border-bottom: 4px solid transparent;
box-sizing: border-box;
}
.filter-links li > a:hover,
.filter-links li > a:focus {
color: #2271b1;
}
.filter-links .current {
box-shadow: none;
border-bottom: 4px solid #2271b1;
color: #1d2327;
}
.filter-count {
display: inline-block;
vertical-align: middle;
min-width: 10px;
padding: 2px 5px;
font-size: 10px;
font-weight: 600;
line-height: 1;
color: #fff;
background-color: #d63638;
border-radius: 10px;
z-index: 26;
margin-left: 5px;
}
/* Loading Overlay */
.wp-allstars-loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(255, 255, 255, 0.9);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
}
.wp-allstars-loading-overlay .spinner {
float: none;
visibility: visible;
margin: 0 0 10px 0;
}
.wp-allstars-loading-overlay p {
margin: 0;
font-size: 14px;
color: #555;
}
/* Theme Browser */
.theme-browser .theme {
cursor: pointer;
float: left;
margin: 0 4% 4% 0;
position: relative;
width: 30.6%;
border: 1px solid #dcdcde;
box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.1);
box-sizing: border-box;
}
.theme-browser .theme:nth-child(3n) {
margin-right: 0;
}
.theme-browser .theme .theme-screenshot {
display: block;
overflow: hidden;
position: relative;
transition: opacity 0.2s ease-in-out;
}
.theme-browser .theme .theme-screenshot:after {
content: "";
display: block;
padding-top: 66.66666%;
}
.theme-browser .theme .theme-screenshot img {
height: auto;
position: absolute;
left: 0;
top: 0;
width: 100%;
transition: opacity 0.2s ease-in-out;
}
.theme-browser .theme .theme-name {
font-size: 15px;
font-weight: 600;
height: 18px;
margin: 0;
padding: 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
background: #fff;
background: rgba(255, 255, 255, 0.65);
}
.theme-browser .theme .theme-actions {
position: absolute;
top: 50%;
transform: translateY(-50%);
right: 0;
padding: 10px 15px;
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
background: rgba(244, 244, 244, 0.7);
border-left: 1px solid rgba(0, 0, 0, 0.05);
height: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: center;
opacity: 0;
transition: opacity 0.1s ease-in-out;
}
.theme-browser .theme:hover .theme-actions {
opacity: 1;
}
.theme-browser .theme .theme-actions .button {
margin-top: 5px;
}
.theme-browser .theme .theme-actions .button:first-child {
margin-top: 0;
}
/* Pro Buttons now use standard WordPress .button-primary styles */
/* More Details Link */
.more-details {
display: inline-block;
margin-top: 5px;
text-decoration: none;
color: #2271b1;
}
.more-details:hover,
.more-details:focus {
color: #135e96;
text-decoration: underline;
}
.plugin-action-buttons .more-details {
display: block;
text-align: right;
}
/* Settings Notifications */
.wp-setting-notification {
display: inline-block;
background: #72aee6;
color: #fff;
padding: 5px 10px;
border-radius: 3px;
margin-left: 10px;
font-size: 12px;
line-height: 1.2;
vertical-align: middle;
}
.wp-setting-notification.error {
background: #d63638;
}
/* Responsive Adjustments */
@media only screen and (max-width: 1120px) {
.plugin-card {
width: 100%;
}
.theme-browser .theme {
width: 47%;
margin-right: 6%;
}
.theme-browser .theme:nth-child(3n) {
margin-right: 6%;
}
.theme-browser .theme:nth-child(2n) {
margin-right: 0;
}
}
@media only screen and (max-width: 782px) {
.plugin-card-top {
min-height: 155px;
}
.name.column-name {
margin-right: 0;
}
.action-links {
position: static;
margin-left: 148px;
width: auto;
}
.plugin-action-buttons {
float: none;
margin: 1em 0 0;
text-align: left;
}
.plugin-action-buttons li {
display: inline-block;
margin-right: 10px;
}
.plugin-card-bottom {
flex-direction: column;
}
.plugin-card-bottom > div {
padding-top: 10px;
padding-bottom: 10px;
}
.column-downloaded,
.column-updated,
.column-compatibility {
text-align: left;
}
}
@media only screen and (max-width: 480px) {
.theme-browser .theme {
width: 100%;
margin-right: 0;
}
.plugin-card-top {
padding-top: 146px;
}
.plugin-icon {
top: 20px;
left: 50%;
transform: translateX(-50%);
}
.name.column-name,
.desc.column-description,
.action-links {
margin-left: 0;
}
}