MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
Created page with ".coverThumb { position: relative; display: inline-block; } .coverThumb .coverPopup { display: none; position: absolute; left: 70px; top: -10px; z-index: 9999; } .coverThumb:hover .coverPopup { display: block; }" |
No edit summary |
||
| Line 1: | Line 1: | ||
.coverThumb { position: relative; display: inline-block; } | /* Hover cover preview */ | ||
.coverThumb .coverPopup { display: none; position: absolute; left: 70px; top: -10px; z-index: | .coverThumb { | ||
.coverThumb:hover .coverPopup { display: block; } | position: relative; | ||
display: inline-block; | |||
} | |||
.coverThumb .coverPopup { | |||
display: none; | |||
position: absolute; | |||
left: 70px; /* popup appears to the right */ | |||
top: -10px; | |||
z-index: 99999; | |||
background: #fff; | |||
border: 1px solid #aaa; | |||
padding: 4px; | |||
box-shadow: 0 2px 10px rgba(0,0,0,0.25); | |||
} | |||
.coverThumb:hover .coverPopup { | |||
display: block; | |||
} | |||
/* Make sure the small thumb doesn't add weird baseline space */ | |||
.coverThumb .coverSmall { | |||
width: 60px; | |||
height: 80px; | |||
overflow: hidden; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
Revision as of 09:20, 29 January 2026
/* Hover cover preview */
.coverThumb {
position: relative;
display: inline-block;
}
.coverThumb .coverPopup {
display: none;
position: absolute;
left: 70px; /* popup appears to the right */
top: -10px;
z-index: 99999;
background: #fff;
border: 1px solid #aaa;
padding: 4px;
box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.coverThumb:hover .coverPopup {
display: block;
}
/* Make sure the small thumb doesn't add weird baseline space */
.coverThumb .coverSmall {
width: 60px;
height: 80px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}