Debian Codegraph @

extensions/Echo/modules/mobile/overlay.less

raw
1 // FIXME: some of this could be removed if we reused .page-list styling
2 @import 'mediawiki.skin.variables.less';
3 @import 'mediawiki.mixins.less';
4
5 @overlayHeaderHeight: 3em;
6
7 /* stylelint-disable-next-line selector-class-pattern */
8 .notifications-overlay {
9 // position: fixed + sliding drawer causes weird rendering bugs in Android
10 // Browser (tested on 4.0.4 and 4.2.1)
11 padding-top: 0;
12
13 &-header-markAllRead {
14 padding-right: 1em;
15 }
16
17 &-overlay {
18 position: absolute;
19 bottom: @overlayHeaderHeight;
20 right: 0;
21 left: 0;
22 z-index: 1;
23
24 .mw-echo-ui-actionMenuPopupWidget-menu {
25 padding: 0.5em;
26 box-shadow: none;
27 border-color: @border-color-subtle;
28 border-style: @border-style-base;
29 border-width: @border-width-base 0 0 0;
30 // Override the positioning of the menu
31 // so it is "stuck" on the bottom of the
32 // notification overlay panel
33 position: static !important;
34 bottom: 0 !important;
35 left: 0 !important;
36 width: 100% !important;
37 height: auto !important;
38 top: auto !important;
39 }
40 }
41
42 /* stylelint-disable-next-line selector-class-pattern */
43 .overlay-content {
44 // this is needed not only on iOS, that's why we repeat it here even though
45 // it's in Overlay.less too
46 overflow-y: scroll; // has to be scroll, not auto
47 position: absolute;
48 width: 100%;
49 padding-top: 0;
50 padding-bottom: 0;
51 max-width: none; // T219320
52 top: @overlayHeaderHeight;
53 bottom: @overlayHeaderHeight;
54 }
55 }