Debian Codegraph @

skins/Vector/skinStyles/ext.echo.styles.alert.less

raw
1 @import 'mediawiki.skin.variables.less';
2 @import '../resources/skins.vector.styles/variables.less';
3
4 /** Mixin for collapsing the Echo new messages alert */
5 .echo-alert-collapse() {
6 font-size: 12px;
7 position: absolute;
8 top: 100%;
9 right: 0;
10 }
11
12 .vector-user-links {
13 .mw-echo-alert {
14 padding: 0.2em 0.5em;
15 white-space: nowrap;
16 // Prevent alert message from pushing user links off screen
17 max-width: 270px;
18 overflow: hidden;
19 text-overflow: ellipsis;
20
21 @media ( max-width: @max-width-breakpoint-desktop ) {
22 .echo-alert-collapse();
23 }
24 }
25 }
26
27 // If the user link is wide, always collapse
28 .vector-user-links-wide .vector-menu-content-list {
29 .mw-echo-alert {
30 .echo-alert-collapse();
31 }
32 }