Fix theme card button positioning: - Position actions within theme name bar - Center buttons vertically - Adjust theme name height to match core

This commit is contained in:
Marcus Quinn
2025-03-14 05:06:55 +00:00
parent c3b2938f72
commit 035e93e77e

View File

@ -332,7 +332,7 @@ function wpa_superstar_ajax_get_theme() {
.theme-browser .theme .theme-name { .theme-browser .theme .theme-name {
font-size: 15px; font-size: 15px;
font-weight: 600; font-weight: 600;
height: 18px; height: 48px;
margin: 0; margin: 0;
padding: 15px; padding: 15px;
box-shadow: inset 0 1px 0 rgba(0,0,0,.1); box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
@ -344,18 +344,15 @@ function wpa_superstar_ajax_get_theme() {
} }
.theme-browser .theme .theme-actions { .theme-browser .theme .theme-actions {
position: absolute; position: absolute;
bottom: 0; top: 50%;
right: 0; right: 0;
padding: 9px 15px; padding: 9px 15px;
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: 30px; transform: translateY(-50%);
z-index: 1; height: 100%;
} display: flex;
.theme-browser .theme:hover .theme-actions, align-items: center;
.theme-browser .theme:focus .theme-actions,
.theme-browser .theme .theme-actions:focus {
opacity: 1;
} }
.theme-browser .theme .theme-author { .theme-browser .theme .theme-author {
background: rgba(0,0,0,.7); background: rgba(0,0,0,.7);