Fix theme card layout: - Add proper screenshot aspect ratio (66.66666%) - Remove min-height constraint - Fix button positioning with border-left - Clean up unnecessary CSS properties
This commit is contained in:
@ -314,7 +314,6 @@ 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);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-height: 330px;
|
|
||||||
}
|
}
|
||||||
.theme-browser .theme .theme-screenshot {
|
.theme-browser .theme .theme-screenshot {
|
||||||
display: block;
|
display: block;
|
||||||
@ -322,8 +321,8 @@ function wpa_superstar_ajax_get_theme() {
|
|||||||
position: relative;
|
position: relative;
|
||||||
-webkit-backface-visibility: hidden;
|
-webkit-backface-visibility: hidden;
|
||||||
transition: opacity .2s ease-in-out;
|
transition: opacity .2s ease-in-out;
|
||||||
background-position: center;
|
background: #fff;
|
||||||
background-size: cover;
|
padding-top: 66.66666%; /* Enforces screenshot aspect ratio */
|
||||||
}
|
}
|
||||||
.theme-browser .theme .theme-screenshot img {
|
.theme-browser .theme .theme-screenshot img {
|
||||||
height: auto;
|
height: auto;
|
||||||
@ -331,7 +330,7 @@ function wpa_superstar_ajax_get_theme() {
|
|||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: opacity .2s ease-in-out;
|
transform: translateZ(0);
|
||||||
}
|
}
|
||||||
.theme-browser .theme .theme-name {
|
.theme-browser .theme .theme-name {
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
@ -343,7 +342,6 @@ function wpa_superstar_ajax_get_theme() {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
background: rgba(255,255,255,.65);
|
|
||||||
}
|
}
|
||||||
.theme-browser .theme .theme-actions {
|
.theme-browser .theme .theme-actions {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@ -352,13 +350,11 @@ function wpa_superstar_ajax_get_theme() {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
padding: 9px 15px;
|
padding: 9px 15px;
|
||||||
box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
|
|
||||||
background: rgba(244,244,244,.7);
|
background: rgba(244,244,244,.7);
|
||||||
height: auto;
|
border-left: 1px solid rgba(0,0,0,.05);
|
||||||
z-index: 1;
|
|
||||||
}
|
}
|
||||||
.theme-browser .theme:hover .theme-actions,
|
.theme-browser .theme:focus .theme-actions,
|
||||||
.theme-browser .theme:focus .theme-actions {
|
.theme-browser .theme:hover .theme-actions {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
.theme-browser .theme .theme-author {
|
.theme-browser .theme .theme-author {
|
||||||
@ -373,6 +369,7 @@ function wpa_superstar_ajax_get_theme() {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity .1s ease-in-out;
|
transition: opacity .1s ease-in-out;
|
||||||
}
|
}
|
||||||
|
.theme-browser .theme:focus .theme-author,
|
||||||
.theme-browser .theme:hover .theme-author {
|
.theme-browser .theme:hover .theme-author {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user