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 );
|
|
|
|
|
2021-01-29 17:45:01 +00:00
|
|
|
/* 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
|
|
|
|
2021-01-29 17:45:01 +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
|
|
|
|
2021-01-29 17:45:01 +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 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 17:45:01 +00:00
|
|
|
&.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
|
|
|
|
2021-01-31 17:42:41 +00:00
|
|
|
&.flipped-x {
|
2020-05-17 23:39:43 +00:00
|
|
|
&:before {
|
2021-01-29 16:17:10 +00:00
|
|
|
border-bottom-color: var( --border-color-base--lighter );
|
2020-05-17 23:39:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2021-01-29 16:17:10 +00:00
|
|
|
border-bottom-color: var( --background-color-dp-08 );
|
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 {
|
|
|
|
border-bottom-color: var( --border-color-base--lighter );
|
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 {
|
|
|
|
border-top-color: var( --border-color-base--lighter );
|
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 {
|
|
|
|
border-top-color: var( --background-color-dp-08 );
|
|
|
|
}
|
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-01-29 16:17:10 +00:00
|
|
|
border-top-color: var( --background-color-dp-08 );
|
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 {
|
|
|
|
border-top-color: var( --border-color-base--lighter );
|
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 {
|
|
|
|
border-top-color: var( --background-color-dp-08 );
|
|
|
|
}
|
2019-12-30 10:14:11 +00:00
|
|
|
|
2021-01-29 16:17:10 +00:00
|
|
|
&:before {
|
|
|
|
border-top-color: var( --border-color-base--lighter );
|
2019-12-30 10:14:11 +00:00
|
|
|
}
|
2019-12-29 18:45:17 +00:00
|
|
|
}
|
|
|
|
}
|