Fix theme card button positioning: - Remove hover states and transitions - Make buttons permanently visible - Align buttons within theme name bar - Match WordPress core styling

This commit is contained in:
Marcus Quinn
2025-03-14 05:11:19 +00:00
parent 106ef16689
commit 650f9153d3

View File

@ -320,8 +320,6 @@ function wpa_superstar_ajax_get_theme() {
display: block; display: block;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
-webkit-backface-visibility: hidden;
transition: opacity .2s ease-in-out;
background: #fff; background: #fff;
} }
.theme-browser .theme .theme-screenshot img { .theme-browser .theme .theme-screenshot img {
@ -335,45 +333,29 @@ function wpa_superstar_ajax_get_theme() {
height: 48px; height: 48px;
margin: 0; margin: 0;
padding: 15px; padding: 15px;
padding-right: 180px;
box-shadow: inset 0 1px 0 rgba(0,0,0,.1); box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
background: #fff; background: #f6f7f7;
position: relative; position: relative;
padding-right: 180px;
} }
.theme-browser .theme .theme-actions { .theme-browser .theme .theme-actions {
position: absolute; position: absolute;
right: 0; right: 0;
bottom: 0; bottom: 0;
padding: 10px 15px; height: 48px;
background: #f0f0f1; padding: 9px 15px;
border-left: 1px solid rgba(0,0,0,.05);
height: 46px;
box-sizing: border-box; box-sizing: border-box;
} display: flex;
.theme-browser .theme .theme-author { align-items: center;
background: rgba(0,0,0,.7); gap: 5px;
color: #fff; background: #f6f7f7;
padding: 5px; border-left: 1px solid #dcdcde;
position: absolute;
bottom: 56px;
left: 0;
right: 0;
text-align: center;
opacity: 0;
transition: opacity .1s ease-in-out;
}
.theme-browser .theme:hover .theme-author {
opacity: 1;
} }
.theme-browser .theme .theme-actions .button { .theme-browser .theme .theme-actions .button {
float: none; margin: 0;
margin-left: 3px;
}
.theme-browser .theme .theme-actions .button:first-child {
margin-left: 0;
} }
</style> </style>
<div class="theme-browser"> <div class="theme-browser">