Debian Codegraph @

resources/screen-mobile.less

raw
1 @import "variables.less";
2
3 // Override from desktop collapsing
4 #header-container .dropdown,
5 #header-navigation-container .dropdown {
6 display: block !important;
7 }
8
9 /* Extra stuff mobile doesn't need */
10 .sitesubtitle,
11 .p-logo,
12 #content-header ul li#ca-view,
13 #header-navigation .navigation,
14 #header-navigation .navigation-tools,
15 #footer-banner {
16 display: none;
17 }
18
19 #header-navigation-container {
20 border-bottom: none;
21 }
22
23 #header-navigation {
24 padding: 0;
25 }
26
27 /* misc */
28 #content-header {
29 border-bottom: none;
30 padding-bottom: 0.125em;
31 }
32
33 #content {
34 overflow: auto;
35 }
36
37 #p-personal-extra {
38 margin: 1em 1.25em 0 1em;
39 }
40
41 /* Full-width search */
42 #header-container #p-search {
43 float: none;
44 }
45
46 #searchInput-container-container {
47 margin-right: -7em;
48 width: 100%;
49 display: inline-block;
50 }
51
52 #searchInput-container {
53 margin-right: 7em;
54 }
55
56 #header-container #p-search #searchInput {
57 width: 100%;
58 box-sizing: border-box;
59 }
60
61 #searchGoButton {
62 width: 6em;
63 float: right;
64 position: relative;
65 z-index: @z-index-stacking-1;
66 }
67
68 /* Full-width thumbnails */
69 div.thumb {
70 float: none;
71 }
72
73 .thumb {
74 width: 100%;
75 margin: 1em auto;
76 }
77
78 .tright {
79 margin-left: 0;
80
81 .thumbinner {
82 padding-left: 0;
83 }
84 }
85
86 .tleft {
87 margin-right: 0;
88
89 .thumbinner {
90 padding-right: 0;
91 }
92 }
93
94 .thumbinner {
95 width: 100% !important;
96 }
97
98 .thumbimage {
99 display: block;
100 margin: 0 auto 0.5em;
101 }
102
103 /* Keep images from overflowing */
104 #content a > img {
105 height: auto !important;
106 max-width: 100% !important;
107 }
108
109 /* Table of contents */
110 #toc,
111 .toc,
112 .mw-warning {
113 width: 100%;
114 }
115
116 /* Mobile float cleanup */
117 .mobileClear,
118 #content-header .mobileClear {
119 display: block;
120 clear: both;
121 }
122
123 /* Footer links and icons */
124 #footer #f-list li#lastmod {
125 display: block;
126 margin-bottom: 1em;
127 }
128
129 #footer .footer-icons {
130 float: none;
131 display: inline;
132 }
133
134 #footer-list {
135 font-size: 100%;
136 }
137
138 /* Footer */
139 #footer-navigation {
140 font-size: 100%;
141
142 .navigation {
143 border-top: solid 1px @bold-border;
144 }
145
146 .mw-portlet {
147 float: none;
148 padding: 1em 0 1.5em;
149 border-bottom: solid 1px @bold-border;
150 }
151
152 .p-body ul {
153 columns: 12em 2;
154 -moz-columns: 12em 2;
155 -webkit-columns: 12em 2;
156 }
157 }
158
159 #return-to-top,
160 // We could do something fancy with the top nav...
161 // Or we could just send them to the nav at the bottom.
162 .client-nojs #p-personal-label,
163 .client-nojs #jump-to-end {
164 display: block;
165 content: '';
166 width: 35px;
167 height: 35px;
168 cursor: pointer;
169 }
170
171 #return-to-top {
172 background-image: url( images/top-icon.svg );
173 margin: 0.5em auto 0.5em;
174 }
175
176 .client-nojs {
177 #return-to-top {
178 margin: -0.5em auto 1em;
179 }
180
181 #jump-to-end {
182 background-image: url( images/menu-icon.svg );
183 float: left;
184 margin: 0.5em 0.5em 0 0;
185 }
186
187 #p-personal-label {
188 background-image: url( images/user-icon.svg );
189 overflow: hidden;
190 text-indent: -99999px;
191 margin: 0;
192 }
193
194 #p-personal {
195 position: relative;
196 padding: 0.5em 0 0 0.5em;
197
198 .dropdown {
199 display: none !important;
200 .generic-dropdown();
201 top: 40px;
202 left: unset;
203 right: 0;
204 }
205
206 &:hover .dropdown {
207 display: block !important;
208 }
209 }
210
211 #p-personal-container {
212 display: flex;
213 float: right;
214 }
215
216 #p-personal-extra,
217 #p-personal {
218 float: none;
219 }
220 }