Fix theme card button positioning: - Adjust theme-actions CSS to properly align at bottom - Add min-height to theme card - Improve button padding and spacing - Add z-index for proper layering

This commit is contained in:
Marcus Quinn
2025-03-14 04:40:01 +00:00
parent 4caa8ae78d
commit 1619538ea0

View File

@ -314,6 +314,7 @@ function wpa_superstar_ajax_get_theme() {
border: 1px solid #dcdcde; border: 1px solid #dcdcde;
box-shadow: 0 1px 1px rgba(0,0,0,.04); box-shadow: 0 1px 1px rgba(0,0,0,.04);
background: #fff; background: #fff;
min-height: 330px;
} }
.theme-browser .theme .theme-screenshot { .theme-browser .theme .theme-screenshot {
display: block; display: block;
@ -326,6 +327,7 @@ function wpa_superstar_ajax_get_theme() {
width: 100%; width: 100%;
transform: translateZ(0); transform: translateZ(0);
transition: opacity .2s ease-in-out; transition: opacity .2s ease-in-out;
display: block;
} }
.theme-browser .theme .theme-name { .theme-browser .theme .theme-name {
font-size: 15px; font-size: 15px;
@ -344,16 +346,17 @@ function wpa_superstar_ajax_get_theme() {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
right: 0; right: 0;
height: 38px; padding: 10px;
padding: 9px 10px 0;
background: rgba(244,244,244,.7); background: rgba(244,244,244,.7);
border-left: 1px solid rgba(0,0,0,.05); border-left: 1px solid rgba(0,0,0,.05);
height: auto;
z-index: 1;
} }
.theme-browser .theme:hover .theme-actions { .theme-browser .theme:hover .theme-actions {
opacity: 1; opacity: 1;
} }
.theme-browser .theme .theme-author { .theme-browser .theme .theme-author {
background: #23282d; background: rgba(35, 40, 45, 0.85);
color: #eee; color: #eee;
font-size: 14px; font-size: 14px;
margin: 0; margin: 0;
@ -362,7 +365,6 @@ function wpa_superstar_ajax_get_theme() {
bottom: 56px; bottom: 56px;
left: 0; left: 0;
opacity: 0; opacity: 0;
overflow: hidden;
right: 0; right: 0;
text-align: center; text-align: center;
text-shadow: 0 1px 0 rgba(0,0,0,.6); text-shadow: 0 1px 0 rgba(0,0,0,.6);