2014-02-06 10:49:28 +00:00
|
|
|
/* Code adapted from Yair Rand's NavPopupsRestyled.js
|
|
|
|
* https://en.wikipedia.org/wiki/User:Yair_rand/NavPopupsRestyled.js
|
|
|
|
*/
|
|
|
|
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(@size, @left, @color) {
|
2014-02-28 03:53:13 +00:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
border: @size solid transparent;
|
|
|
|
border-top: 0;
|
|
|
|
border-bottom: @size solid @color;
|
|
|
|
top: -@size;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-28 03:53:13 +00:00
|
|
|
left: @left;
|
|
|
|
}
|
|
|
|
|
2014-02-06 10:49:28 +00:00
|
|
|
.mwe-popups {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 5;
|
|
|
|
background: #fff;
|
2014-02-13 00:29:44 +00:00
|
|
|
border: 1px solid #bbb;
|
2014-02-06 10:49:28 +00:00
|
|
|
padding: 0;
|
|
|
|
display: none;
|
2014-02-12 15:59:06 +00:00
|
|
|
font-size: 0.8em;
|
|
|
|
line-height: 1.5em;
|
2014-02-06 10:49:28 +00:00
|
|
|
cursor: pointer;
|
|
|
|
min-width: 300px;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
display: block;
|
|
|
|
margin-top: -9px;
|
|
|
|
padding-top: 9px;
|
|
|
|
color: #000;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> div {
|
2014-03-04 12:45:12 +00:00
|
|
|
padding: 0;
|
|
|
|
margin: 16px;
|
2014-02-22 09:57:39 +00:00
|
|
|
padding-bottom: 48px;
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
> div.mwe-popups-is-tall {
|
2014-02-13 01:58:31 +00:00
|
|
|
height: 250px;
|
2014-02-17 10:57:05 +00:00
|
|
|
width: 200px;
|
|
|
|
padding: 0;
|
|
|
|
background-size: cover;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
overflow: hidden;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
> div.mwe-popups-is-not-tall {
|
|
|
|
height: 200px;
|
2014-02-13 01:58:31 +00:00
|
|
|
width: 300px;
|
2014-02-24 05:09:03 +00:00
|
|
|
padding: 0;
|
|
|
|
background-size: cover;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
overflow: hidden;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: right;
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
> div.mwe-popups-timestamp-older, div.mwe-popups-timestamp-recent {
|
2014-02-22 09:57:39 +00:00
|
|
|
padding: 16px;
|
2014-02-13 06:11:48 +00:00
|
|
|
margin: 0;
|
2014-02-13 00:55:44 +00:00
|
|
|
font-size: 0.85em;
|
2014-02-13 06:11:48 +00:00
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
left: 0;
|
2014-02-13 00:55:44 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
> div.mwe-popups-timestamp-older {
|
2014-02-21 07:47:16 +00:00
|
|
|
color: #555;
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
> div.mwe-popups-timestamp-recent {
|
2014-02-06 10:49:28 +00:00
|
|
|
color: #00af89;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-18 07:00:50 +00:00
|
|
|
&.mwe-popups-is-tall {
|
2014-02-06 10:49:28 +00:00
|
|
|
width: 450px;
|
2014-02-18 07:00:50 +00:00
|
|
|
|
2014-02-24 08:12:21 +00:00
|
|
|
> a > svg {
|
2014-04-14 06:00:27 +00:00
|
|
|
margin-bottom: -5px;
|
2014-02-24 08:12:21 +00:00
|
|
|
}
|
|
|
|
|
2014-02-18 07:00:50 +00:00
|
|
|
.mwe-popups-extract {
|
|
|
|
width: 215px;
|
|
|
|
height: 125px;
|
|
|
|
overflow: hidden;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
div.mwe-popups-timestamp-older, div.mwe-popups-timestamp-recent {
|
|
|
|
width: 215px;
|
2014-02-18 07:00:50 +00:00
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 05:09:03 +00:00
|
|
|
&.mwe-popups-is-not-tall {
|
2014-02-06 10:49:28 +00:00
|
|
|
width: 300px;
|
2014-02-22 07:17:33 +00:00
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
max-height: 120px;
|
|
|
|
overflow: hidden;
|
|
|
|
margin-bottom: 3.84em;
|
|
|
|
padding-bottom: 1.28em;
|
|
|
|
}
|
2014-03-28 18:27:42 +00:00
|
|
|
|
|
|
|
div.mwe-popups-timestamp-older, div.mwe-popups-timestamp-recent {
|
|
|
|
width: 270px;
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
2014-02-18 13:28:12 +00:00
|
|
|
|
|
|
|
/* Triangles/Pokeys */
|
|
|
|
&.mwe-popups-no-image-tri {
|
|
|
|
&:after {
|
2014-02-28 03:53:13 +00:00
|
|
|
.mwe-popups-border-triangle( 7px, 11px, #fff);
|
2014-02-18 13:28:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-02-28 03:53:13 +00:00
|
|
|
.mwe-popups-border-triangle( 8px, 10px, #bbb);
|
2014-02-18 13:28:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-24 08:12:21 +00:00
|
|
|
&.flipped.mwe-popups-no-image-tri {
|
|
|
|
&:after {
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-24 08:12:21 +00:00
|
|
|
left: initial;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-24 08:12:21 +00:00
|
|
|
right: 11px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-24 08:12:21 +00:00
|
|
|
left: initial;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-24 08:12:21 +00:00
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-02-18 13:28:12 +00:00
|
|
|
&.mwe-popups-image-tri {
|
2014-02-28 04:06:30 +00:00
|
|
|
&:before {
|
|
|
|
z-index: 90;
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(9px, 9px, #bbb);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
2014-03-22 01:14:09 +00:00
|
|
|
&:after {
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(8px, 10px, #fff);
|
2014-03-22 01:14:09 +00:00
|
|
|
z-index: 91;
|
|
|
|
}
|
|
|
|
|
2014-02-28 04:06:30 +00:00
|
|
|
&.flipped {
|
|
|
|
&:before {
|
|
|
|
z-index: 90;
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(9px, 273px, #bbb);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
2014-03-22 01:14:09 +00:00
|
|
|
|
|
|
|
&:after {
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(8px, 273px, #fff);
|
2014-03-22 01:14:09 +00:00
|
|
|
z-index: 91;
|
|
|
|
}
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
2014-03-04 12:45:12 +00:00
|
|
|
margin-top: 206px;
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
2014-02-18 13:28:12 +00:00
|
|
|
|
|
|
|
> a > svg {
|
|
|
|
margin-top: -8px;
|
2014-02-28 04:06:30 +00:00
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
left: 0;
|
2014-02-18 13:28:12 +00:00
|
|
|
}
|
|
|
|
}
|
2014-02-24 08:12:21 +00:00
|
|
|
|
|
|
|
&.flipped.mwe-popups-is-tall {
|
2014-02-28 04:06:30 +00:00
|
|
|
min-height: 242px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
z-index: 90;
|
2014-04-22 11:38:53 +00:00
|
|
|
.mwe-popups-border-triangle(9px, 420px, #bbb);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
2014-02-24 08:12:21 +00:00
|
|
|
> a > svg {
|
|
|
|
margin: 0;
|
2014-02-28 04:06:30 +00:00
|
|
|
margin-top: -8px;
|
|
|
|
margin-bottom: -5px;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 100;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
right: 0;
|
2014-02-24 08:12:21 +00:00
|
|
|
}
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|