mediawiki-skins-Citizen/skinStyles/extensions/Popups/ext.popups.main.less

171 lines
3.1 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen
*
* SkinStyles for Extension:Popups
* Module: ext.popups.main
* Version: REL1_35 dccd607
*
* Date: 2021-08-31
2019-12-29 18:45:17 +00:00
*/
@import '../../../resources/mixins.less';
.mwe-popups {
overflow: hidden;
background-color: var( --color-surface-1 );
border-radius: var( --border-radius--medium );
.boxshadow(3);
2019-12-29 18:45:17 +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 {
color: var( --color-base );
// Neutral color so dark SVG is visible
svg {
background-color: #eaecf0;
}
2021-01-29 16:17:10 +00:00
}
.mwe-popups-extract {
color: var( --color-base );
&[ dir='ltr' ]:after {
/* @noflip */
background-image: linear-gradient( to right, transparent, var( --color-surface-1 ) 50% );
}
2021-01-29 16:17:10 +00:00
&[ dir='rtl' ]:after {
/* @noflip */
background-image: linear-gradient( to left, transparent, var( --color-surface-1 ) 50% );
}
2021-01-29 16:17:10 +00:00
}
2019-12-29 18:45:17 +00:00
/* Triangles/Pointers
* The pointers are hidden to implement round corners and image background
* So these styles are not needed.
*/
/*
&.mwe-popups-no-image-pointer {
2021-01-29 16:17:10 +00:00
&:after {
border-bottom-color: var( --color-surface-1 );
2019-12-29 18:45:17 +00:00
}
2021-01-29 16:17:10 +00:00
&:before {
border-bottom-color: var( --border-color-base );
2021-01-29 16:17:10 +00:00
}
}
&.mwe-popups-image-pointer {
2021-01-29 16:17:10 +00:00
&:before {
border-bottom-color: var( --border-color-base );
2019-12-29 18:45:17 +00:00
}
2021-01-29 16:17:10 +00:00
&:after {
border-bottom-color: var( --color-surface-1 );
2019-12-29 18:45:17 +00:00
}
2020-05-17 23:40:16 +00:00
&.flipped-x {
&:before {
border-bottom-color: var( --border-color-base );
}
&:after {
border-bottom-color: var( --color-surface-1 );
}
2021-01-29 16:17:10 +00:00
}
}
2020-05-17 23:40:16 +00:00
&.flipped-x.mwe-popups-is-tall {
2021-01-29 16:17:10 +00:00
&:before {
border-bottom-color: var( --border-color-base );
}
2021-01-29 16:17:10 +00:00
}
2020-05-17 23:40:16 +00:00
&.flipped-x-y {
2021-01-29 16:17:10 +00:00
&:before {
border-top-color: var( --border-color-base );
}
2020-05-17 23:40:16 +00:00
2021-01-29 16:17:10 +00:00
&:after {
border-top-color: var( --color-surface-1 );
2021-01-29 16:17:10 +00:00
}
2021-01-29 16:17:10 +00:00
&.mwe-popups-is-tall {
&:after {
border-top-color: var( --color-surface-1 );
}
2020-05-17 23:40:16 +00:00
2021-01-29 16:17:10 +00:00
&:before {
border-top-color: var( --border-color-base );
}
}
2021-01-29 16:17:10 +00:00
}
2020-05-17 23:40:16 +00:00
&.flipped-y {
2021-01-29 16:17:10 +00:00
&:after {
border-top-color: var( --color-surface-1 );
2021-01-29 16:17:10 +00:00
}
2021-01-29 16:17:10 +00:00
&:before {
border-top-color: var( --border-color-base );
}
2019-12-29 18:45:17 +00:00
}
*/
/* referencePreview.less */
&.mwe-popups-type-reference {
.mwe-popups-extract {
.mwe-popups-fade {
background-image: linear-gradient( transparent, var( --color-surface-1 ) );
}
/* T266859 */
.mw-parser-output {
overflow-wrap: break-word;
}
}
}
// speed up fade animation 2x
&-fade {
&-in,
&-out {
&-up,
&-down {
animation-duration: 0.125s;
}
}
}
2019-12-29 18:45:17 +00:00
}