mediawiki-extensions-Popups/resources/ext.popups.core.less
Prateek Saxena e9ad2ef798 Change size of thumbnails in popup
Change-Id: I98ecea9d240a4400cf2277b3b393c4b024fe907f
2014-02-13 11:15:54 +05:30

69 lines
1 KiB
Plaintext

/* Code adapted from Yair Rand's NavPopupsRestyled.js
* https://en.wikipedia.org/wiki/User:Yair_rand/NavPopupsRestyled.js
*/
.mwe-popups {
position: absolute;
z-index: 5;
background: #fff;
border: 1px solid #bbb;
padding: 0;
display: none;
font-size: 0.8em;
line-height: 1.5em;
cursor: pointer;
min-width: 300px;
> a {
display: block;
margin-top: -9px;
padding-top: 9px;
color: #000;
&:hover {
text-decoration: none;
}
> div {
padding: 1.28em;
padding-bottom: 0;
+ div {
padding: 0.8em;
margin: 0.8em;
}
}
> img.mwe-popups-is-tall{
float: right;
height: 250px;
padding-left: 1.28em;
}
> img.mwe-popups-is-not-tall{
width: 300px;
float: initial;
}
> div.mwe-popups-timestamp-older, div.mwe-popups-timestamp-recent{
font-size: 0.85em;
}
> div.mwe-popups-timestamp-older{
color: #bbb;
}
> div.mwe-popups-timestamp-recent{
color: #00af89;
}
}
&.mwe-popups-is-tall{
width: 450px;
}
&.mwe-popups-is-not-tall{
width: 300px;
}
}