2019-12-29 18:45:17 +00:00
|
|
|
/*
|
2021-08-31 17:03:41 +00:00
|
|
|
* Citizen
|
|
|
|
*
|
|
|
|
* SkinStyles for Extension:Popups
|
|
|
|
* Module: ext.popups.main
|
|
|
|
* Version: REL1_35 dccd607
|
|
|
|
*
|
2021-09-02 15:53:58 +00:00
|
|
|
* Date: 2021-09-02
|
2019-12-29 18:45:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
.mwe-popups {
|
2022-04-28 19:53:25 +00:00
|
|
|
// HACK: Needed to make rounded corner and placeholder bg work
|
|
|
|
// But you lose the pointer by doing it
|
2021-09-02 15:47:04 +00:00
|
|
|
overflow: hidden;
|
|
|
|
border-radius: var( --border-radius--medium );
|
2022-09-28 21:02:56 +00:00
|
|
|
background-color: var( --color-surface-1 );
|
2022-04-24 19:24:09 +00:00
|
|
|
box-shadow: var( --box-shadow-dialog );
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-09-02 15:47:04 +00:00
|
|
|
&:hover {
|
|
|
|
background-color: var( --color-surface-2 );
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
&[ dir='ltr' ]:after {
|
|
|
|
/* @noflip */
|
|
|
|
background-image: linear-gradient( to right, transparent, var( --color-surface-2 ) 50% );
|
|
|
|
}
|
|
|
|
|
|
|
|
&[ dir='rtl' ]:after {
|
|
|
|
/* @noflip */
|
|
|
|
background-image: linear-gradient( to left, transparent, var( --color-surface-2 ) 50% );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: var( --color-surface-2--active );
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
&[ dir='ltr' ]:after {
|
|
|
|
/* @noflip */
|
|
|
|
background-image: linear-gradient( to right, transparent, var( --color-surface-2--active ) 50% );
|
|
|
|
}
|
|
|
|
|
|
|
|
&[ dir='rtl' ]:after {
|
|
|
|
/* @noflip */
|
|
|
|
background-image: linear-gradient( to left, transparent, var( --color-surface-2--active ) 50% );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
.mwe-popups-container {
|
2022-05-08 07:04:02 +00:00
|
|
|
background-color: var( --color-surface-1 ); // MW 1.37+
|
2022-05-08 07:04:52 +00:00
|
|
|
color: var( --color-base );
|
2021-08-31 17:03:41 +00:00
|
|
|
|
|
|
|
// Neutral color so dark SVG is visible
|
|
|
|
svg {
|
2022-04-28 19:53:25 +00:00
|
|
|
border-radius: var( --border-radius--medium ) var( --border-radius--medium ) 0 0;
|
2022-09-28 21:02:56 +00:00
|
|
|
background-color: #eaecf0;
|
2021-08-31 17:03:41 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.mwe-popups-extract {
|
|
|
|
color: var( --color-base );
|
|
|
|
|
2021-01-29 17:45:01 +00:00
|
|
|
&[ dir='ltr' ]:after {
|
|
|
|
/* @noflip */
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( to right, transparent, var( --color-surface-1 ) 50% );
|
2021-01-29 17:45:01 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
|
2021-01-29 17:45:01 +00:00
|
|
|
&[ dir='rtl' ]:after {
|
|
|
|
/* @noflip */
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( to left, transparent, var( --color-surface-1 ) 50% );
|
2021-01-29 17:45:01 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
|
2021-09-02 15:53:58 +00:00
|
|
|
/* Triangles/Pointers */
|
2021-01-29 17:45:01 +00:00
|
|
|
&.mwe-popups-no-image-pointer {
|
2021-01-29 16:17:10 +00:00
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:45:01 +00:00
|
|
|
&.mwe-popups-image-pointer {
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-31 17:42:41 +00:00
|
|
|
&.flipped-x {
|
2020-05-17 23:39:43 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --color-surface-1 );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-31 17:42:41 +00:00
|
|
|
&.flipped-x.mwe-popups-is-tall {
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-bottom-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-31 17:42:41 +00:00
|
|
|
&.flipped-x-y {
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2019-12-30 10:14:11 +00:00
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&.mwe-popups-is-tall {
|
2020-05-17 23:39:43 +00:00
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2020-05-17 23:40:16 +00:00
|
|
|
|
2021-01-31 17:42:41 +00:00
|
|
|
&.flipped-y {
|
2021-01-29 16:17:10 +00:00
|
|
|
&:after {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --color-surface-1 );
|
2021-01-29 16:17:10 +00:00
|
|
|
}
|
2019-12-30 10:14:11 +00:00
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
2021-08-31 17:03:41 +00:00
|
|
|
border-top-color: var( --border-color-base );
|
2019-12-30 10:14:11 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
2021-03-07 18:40:35 +00:00
|
|
|
|
|
|
|
/* referencePreview.less */
|
|
|
|
&.mwe-popups-type-reference {
|
|
|
|
.mwe-popups-extract {
|
|
|
|
.mwe-popups-fade {
|
2021-08-31 17:03:41 +00:00
|
|
|
background-image: linear-gradient( transparent, var( --color-surface-1 ) );
|
2021-03-07 18:40:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* T266859 */
|
|
|
|
.mw-parser-output {
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-09-02 15:47:04 +00:00
|
|
|
|
|
|
|
// speed up fade animation 2x
|
|
|
|
&-fade {
|
|
|
|
&-in,
|
|
|
|
&-out {
|
|
|
|
&-up,
|
|
|
|
&-down {
|
|
|
|
animation-duration: 0.125s;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-05-03 01:32:12 +00:00
|
|
|
|
|
|
|
/* settingsDialogRenderer.less */
|
|
|
|
&-overlay {
|
|
|
|
background-color: var( --background-color-overlay );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* settingsDialog.less */
|
|
|
|
&-settings {
|
|
|
|
border: 0;
|
|
|
|
border-radius: var( --border-radius--medium );
|
2022-09-28 21:02:56 +00:00
|
|
|
background: var( --color-surface-1 );
|
2022-05-03 01:32:12 +00:00
|
|
|
box-shadow: var( --box-shadow-dialog );
|
|
|
|
|
|
|
|
header {
|
|
|
|
padding: 0;
|
|
|
|
border-color: var( --border-color-base );
|
|
|
|
|
|
|
|
// For some reason it looks very weird
|
|
|
|
h1 {
|
|
|
|
padding-top: 0;
|
|
|
|
margin-bottom: unset;
|
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
p {
|
|
|
|
color: var( --color-base--subtle );
|
|
|
|
}
|
|
|
|
|
|
|
|
form {
|
|
|
|
label {
|
|
|
|
> span {
|
|
|
|
color: var( --color-base--emphasized );
|
|
|
|
font-size: 1rem;
|
|
|
|
line-height: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-ui-icon-popups-close:before {
|
|
|
|
opacity: var( --opacity-icon-base );
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark styles */
|
|
|
|
.skin-citizen-dark {
|
|
|
|
.mw-ui-icon-popups-close:before {
|
|
|
|
filter: invert( 1 );
|
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|