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

101 lines
2.1 KiB
Plaintext
Raw Normal View History

2019-12-29 18:45:17 +00:00
/*
* Citizen - Popups Styles
* https://starcitizen.tools
*/
@import '../../../resources/variables.less';
@import '../../../resources/mixins.less';
.mwe-popups {
2021-01-29 16:17:10 +00:00
background-color: var( --background-color-dp-08 );
2019-12-29 18:45:17 +00:00
.boxshadow(4);
2021-01-29 16:17:10 +00:00
.mwe-popups-container {
color: var( --color-base );
}
.mwe-popups-extract {
color: var( --color-base );
/* Stylelint rule broken for vendor prefixes: https://github.com/stylelint/stylelint/issues/1939 */
/* stylelint-disable function-linear-gradient-no-nonstandard-direction */
&[ dir='ltr' ]:after {
/* @noflip */
background-image: linear-gradient( to right, transparent, var( --background-color-dp-08 ) 50% );
}
2021-01-29 16:17:10 +00:00
&[ dir='rtl' ]:after {
/* @noflip */
background-image: linear-gradient( to left, transparent, var( --background-color-dp-08 ) 50% );
}
/* stylelint-enable function-linear-gradient-no-nonstandard-direction */
2021-01-29 16:17:10 +00:00
}
2019-12-29 18:45:17 +00:00
/* Triangles/Pointers */
&.mwe-popups-no-image-pointer {
2021-01-29 16:17:10 +00:00
&:after {
border-bottom-color: var( --background-color-dp-08 );
2019-12-29 18:45:17 +00:00
}
2021-01-29 16:17:10 +00:00
&:before {
border-bottom-color: var( --border-color-base--lighter );
}
}
&.mwe-popups-image-pointer {
2021-01-29 16:17:10 +00:00
&:before {
border-bottom-color: var( --border-color-base--lighter );
2019-12-29 18:45:17 +00:00
}
2021-01-29 16:17:10 +00:00
&:after {
border-bottom-color: var( --background-color-dp-08 );
2019-12-29 18:45:17 +00:00
}
2020-05-17 23:40:16 +00:00
&.flipped-x {
&:before {
2021-01-29 16:17:10 +00:00
border-bottom-color: var( --border-color-base--lighter );
}
&:after {
2021-01-29 16:17:10 +00:00
border-bottom-color: var( --background-color-dp-08 );
}
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--lighter );
}
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--lighter );
}
2020-05-17 23:40:16 +00:00
2021-01-29 16:17:10 +00:00
&:after {
border-top-color: var( --background-color-dp-08 );
}
2021-01-29 16:17:10 +00:00
&.mwe-popups-is-tall {
&:after {
2021-01-29 16:17:10 +00:00
border-top-color: var( --background-color-dp-08 );
}
2020-05-17 23:40:16 +00:00
2021-01-29 16:17:10 +00:00
&:before {
border-top-color: var( --border-color-base--lighter );
}
}
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( --background-color-dp-08 );
}
2021-01-29 16:17:10 +00:00
&:before {
border-top-color: var( --border-color-base--lighter );
}
2019-12-29 18:45:17 +00:00
}
}