2014-08-19 16:52:21 +00:00
|
|
|
@import "mediawiki.mixins.less";
|
2016-01-29 17:06:33 +00:00
|
|
|
@import "mediawiki.ui/variables";
|
2014-08-19 16:52:21 +00:00
|
|
|
|
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-12-29 09:14:39 +00:00
|
|
|
#mwe-popups-svg {
|
|
|
|
position: absolute;
|
|
|
|
top: -1000px;
|
|
|
|
}
|
|
|
|
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(@size, @left, @color, @extra) {
|
2014-02-28 03:53:13 +00:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2014-11-18 10:20:55 +00:00
|
|
|
border: ( @size + @extra ) solid transparent;
|
2014-02-28 03:53:13 +00:00
|
|
|
border-top: 0;
|
2014-11-18 10:20:55 +00:00
|
|
|
border-bottom: ( @size + @extra ) solid @color;
|
2014-02-28 03:53:13 +00:00
|
|
|
top: -@size;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-02-28 03:53:13 +00:00
|
|
|
left: @left;
|
|
|
|
}
|
|
|
|
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom(@size, @left, @color, @extra) {
|
2014-04-30 11:13:05 +00:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
2014-11-18 10:20:55 +00:00
|
|
|
border: ( @size + @extra ) solid transparent;
|
2014-04-30 11:13:05 +00:00
|
|
|
border-bottom: 0;
|
2014-11-18 10:20:55 +00:00
|
|
|
border-top: ( @size + @extra ) solid @color;
|
2014-04-30 11:13:05 +00:00
|
|
|
bottom: -@size;
|
|
|
|
/* @noflip */
|
|
|
|
left: @left;
|
|
|
|
}
|
|
|
|
|
2016-01-29 17:06:33 +00:00
|
|
|
.mwe-popups-icon {
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0;
|
|
|
|
margin-top: -5px;
|
|
|
|
height: 24px;
|
|
|
|
width: 30px;
|
|
|
|
border-radius: 2px;
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 24px 24px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: @colorGray14;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: @colorGray12;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-settings-icon {
|
|
|
|
.background-image-svg( "images/cog.svg", "images/cog.png" );
|
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-survey-icon {
|
|
|
|
.background-image-svg( "images/horn-ltr.svg", "images/horn-ltr.png" );
|
|
|
|
}
|
|
|
|
|
2014-02-06 10:49:28 +00:00
|
|
|
.mwe-popups {
|
|
|
|
position: absolute;
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 110;
|
2014-02-06 10:49:28 +00:00
|
|
|
background: #fff;
|
2014-02-13 00:29:44 +00:00
|
|
|
border: 1px solid #bbb;
|
2014-06-18 01:09:31 +00:00
|
|
|
.box-shadow(0 0 10px rgba( 0, 0, 0, 0.2 ));
|
2014-02-06 10:49:28 +00:00
|
|
|
padding: 0;
|
|
|
|
display: none;
|
2015-04-08 00:09:00 +00:00
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
2014-02-06 10:49:28 +00:00
|
|
|
min-width: 300px;
|
|
|
|
|
2014-06-17 11:08:05 +00:00
|
|
|
> div {
|
2014-02-06 10:49:28 +00:00
|
|
|
display: block;
|
|
|
|
margin-top: -9px;
|
|
|
|
padding-top: 9px;
|
|
|
|
color: #000;
|
2014-05-12 14:06:47 +00:00
|
|
|
text-decoration: none;
|
2014-02-06 10:49:28 +00:00
|
|
|
|
|
|
|
> 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
|
|
|
}
|
|
|
|
|
2016-05-16 22:01:53 +00:00
|
|
|
div.mwe-popups-is-not-tall,
|
2015-04-29 05:29:40 +00:00
|
|
|
div.mwe-popups-is-tall {
|
2014-04-30 16:59:04 +00:00
|
|
|
margin: 0;
|
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
|
|
|
}
|
|
|
|
|
2015-04-29 05:29:40 +00:00
|
|
|
div.mwe-popups-is-not-tall {
|
2014-02-24 05:09:03 +00:00
|
|
|
height: 200px;
|
2014-02-13 01:58:31 +00:00
|
|
|
width: 300px;
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
2014-09-03 03:49:15 +00:00
|
|
|
> footer {
|
2014-02-22 09:57:39 +00:00
|
|
|
padding: 16px;
|
2014-02-13 06:11:48 +00:00
|
|
|
margin: 0;
|
2015-04-17 07:20:50 +00:00
|
|
|
font-size: 10px;
|
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-09-03 03:49:15 +00:00
|
|
|
> div.mwe-popups-timestamp-older {
|
|
|
|
color: #555;
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
|
2014-09-03 03:49:15 +00:00
|
|
|
> div.mwe-popups-timestamp-recent {
|
|
|
|
color: #00af89;
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
2014-06-17 11:08:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
margin: 0;
|
|
|
|
padding: 16px;
|
|
|
|
display: block;
|
|
|
|
color: #000;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|
|
|
|
|
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-06-17 11:08:05 +00:00
|
|
|
> div > a > svg {
|
2014-10-09 10:08:22 +00:00
|
|
|
margin-bottom: -7px;
|
2014-02-24 08:12:21 +00:00
|
|
|
}
|
|
|
|
|
2014-02-18 07:00:50 +00:00
|
|
|
.mwe-popups-extract {
|
|
|
|
width: 215px;
|
2015-04-08 00:09:00 +00:00
|
|
|
height: 142px;
|
2014-02-18 07:00:50 +00:00
|
|
|
overflow: hidden;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2014-09-03 03:49:15 +00:00
|
|
|
footer {
|
2014-03-28 18:27:42 +00:00
|
|
|
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 {
|
2014-11-20 09:24:14 +00:00
|
|
|
max-height: 120px;
|
2014-02-22 07:17:33 +00:00
|
|
|
overflow: hidden;
|
2014-05-19 16:18:37 +00:00
|
|
|
margin-bottom: 47px;
|
|
|
|
padding-bottom: 0;
|
2014-02-22 07:17:33 +00:00
|
|
|
}
|
2014-03-28 18:27:42 +00:00
|
|
|
|
2014-09-03 03:49:15 +00:00
|
|
|
footer {
|
2014-03-28 18:27:42 +00:00
|
|
|
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-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top( 7px, 7px, #fff, 4px);
|
2014-02-18 13:28:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top( 8px, 10px, #bbb, 0px);
|
2014-02-18 13:28:12 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-04-30 11:13:05 +00:00
|
|
|
&.flipped_x.mwe-popups-no-image-tri {
|
2014-02-24 08:12:21 +00:00
|
|
|
&:after {
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-07-11 19:23:27 +00:00
|
|
|
left: auto;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-11-18 10:20:55 +00:00
|
|
|
right: 7px;
|
2014-02-24 08:12:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
2014-07-11 19:23:27 +00:00
|
|
|
left: auto;
|
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 {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 111;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(9px, 9px, #bbb, 0px);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
2014-03-22 01:14:09 +00:00
|
|
|
&:after {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(8px, 6px, #fff, 4px);
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 112;
|
2014-03-22 01:14:09 +00:00
|
|
|
}
|
|
|
|
|
2014-04-30 11:13:05 +00:00
|
|
|
&.flipped_x {
|
2014-02-28 04:06:30 +00:00
|
|
|
&:before {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 111;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(9px, 273px, #bbb, 0px);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
2014-03-22 01:14:09 +00:00
|
|
|
|
|
|
|
&:after {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(8px, 269px, #fff, 4px);
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 112;
|
2014-03-22 01:14:09 +00:00
|
|
|
}
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
2014-06-17 11:08:05 +00:00
|
|
|
padding-top: 32px;
|
|
|
|
margin-top: 190px;
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
2014-02-18 13:28:12 +00:00
|
|
|
|
2014-06-17 11:08:05 +00:00
|
|
|
> div > a > svg {
|
2014-02-18 13:28:12 +00:00
|
|
|
margin-top: -8px;
|
2014-02-28 04:06:30 +00:00
|
|
|
position: absolute;
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 113;
|
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
|
|
|
|
2014-04-30 11:13:05 +00:00
|
|
|
&.flipped_x.mwe-popups-is-tall {
|
2014-02-28 04:06:30 +00:00
|
|
|
min-height: 242px;
|
|
|
|
|
|
|
|
&:before {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 111;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-top(9px, 420px, #bbb, 0px);
|
2014-02-28 04:06:30 +00:00
|
|
|
}
|
|
|
|
|
2014-06-17 11:08:05 +00:00
|
|
|
> div > a > svg {
|
2014-02-24 08:12:21 +00:00
|
|
|
margin: 0;
|
2014-02-28 04:06:30 +00:00
|
|
|
margin-top: -8px;
|
2014-10-09 10:08:22 +00:00
|
|
|
margin-bottom: -7px;
|
2014-02-28 04:06:30 +00:00
|
|
|
position: absolute;
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 113;
|
2014-03-28 18:27:42 +00:00
|
|
|
/* @noflip */
|
|
|
|
right: 0;
|
2014-02-24 08:12:21 +00:00
|
|
|
}
|
|
|
|
}
|
2014-04-30 11:13:05 +00:00
|
|
|
|
|
|
|
&.flipped_x_y {
|
|
|
|
&:before {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 111;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom(9px, 272px, #bbb, 0px);
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom(8px, 269px, #fff, 4px);
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 112;
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&.mwe-popups-is-tall {
|
|
|
|
min-height: 242px;
|
|
|
|
|
|
|
|
&:after {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 112;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom(8px, 417px, #fff, 4px);
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 111;
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom(9px, 420px, #bbb, 0px);
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
|
2014-10-09 10:08:22 +00:00
|
|
|
> div > a > svg {
|
2014-04-30 11:13:05 +00:00
|
|
|
position: absolute;
|
2014-11-12 09:09:47 +00:00
|
|
|
z-index: 113;
|
2014-04-30 11:13:05 +00:00
|
|
|
margin: 0;
|
|
|
|
margin-bottom: -9px;
|
|
|
|
/* @noflip */
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flipped_y {
|
|
|
|
&:after {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom( 7px, 7px, #fff, 4px );
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2014-11-18 10:20:55 +00:00
|
|
|
.mwe-popups-border-triangle-bottom( 8px, 10px, #bbb, 0px );
|
2014-04-30 11:13:05 +00:00
|
|
|
}
|
|
|
|
}
|
2014-02-06 10:49:28 +00:00
|
|
|
}
|