Debian Codegraph @

skins/MonoBook/resources/mobile.js.less

raw
1 @import 'variables.less';
2 @import 'mediawiki.mixins.less';
3
4 // remove duplicates we're not using here
5 #p-search-mobilejs,
6 #p-tb-mobilejs,
7 #p-lang-mobilejs,
8 #t-contributions {
9 display: none;
10 }
11
12 #sidebar #p-tb,
13 #sidebar #p-lang,
14 #sidebar #p-search {
15 display: block;
16 }
17
18 // popouts
19 #p-cactions,
20 #p-personal,
21 #p-tb,
22 #p-lang,
23 #sidebar-mobilejs {
24 // keep present for screen readers
25 &:not( .mobile-menu-active ) {
26 .mixin-screen-reader-text();
27 }
28 }
29
30 .mobile-menu-active {
31 position: absolute;
32 top: 2em;
33 left: 0;
34 z-index: 10000;
35 background: @content-background;
36 border: solid 1px @orange-border;
37 border-left: 0;
38 padding: 2em 2em 0 1.5em;
39 font-size: 125%;
40
41 // hide originals but don't remove, as their duplicates don't have access keys on them
42 *[ id^='ca-nstab-' ],
43 #ca-talk,
44 #ca-edit {
45 .mixin-screen-reader-text();
46 }
47
48 ul {
49 padding-top: 1em;
50 }
51
52 li {
53 white-space: nowrap;
54 }
55
56 a {
57 display: block;
58 padding: 0.65em 0;
59 }
60
61 a.feedlink {
62 padding-left: 16px; // T291274
63 }
64
65 h3:first-child {
66 margin-right: 2em;
67 }
68
69 .mw-portlet > div,
70 .pBody {
71 margin-bottom: 2em;
72 }
73
74 .mobile-close-button {
75 width: 20px;
76 height: 20px;
77 background-image: url( images/icon-close.svg );
78 background-position: 0 0;
79 background-repeat: no-repeat;
80 position: absolute;
81 top: 1em;
82 right: 0.75em;
83 cursor: pointer;
84 }
85 }
86
87 .menus-cover {
88 display: none;
89 top: 0;
90 left: 0;
91 width: 100%;
92 height: 100%;
93 z-index: 9999;
94
95 &.visible {
96 display: block;
97 }
98 }
99
100 #menus-cover {
101 position: fixed;
102 opacity: 0.45;
103 background-color: @content-background;
104 }
105
106 #menus-cover-background {
107 position: absolute;
108 background-color: @background;
109 background-image: url( images/headbg.svg );
110 background-position: 0 0;
111 background-repeat: no-repeat;
112 opacity: 0.55;
113 }
114
115 #p-cactions-mobile li {
116 &#ca-edit-mobile a {
117 background-image: url( images/icon-edit.svg );
118 }
119
120 &#t-contributions-mobile a {
121 background-image: url( images/icon-user.svg );
122 }
123 }