MediaWiki:Common.css

From Brickipedia, the LEGO Wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
  1 /* CSS placed here will be applied to all skins */
  2 
  3 /* Scrolling for pre tags */
  4 pre {
  5 	overflow: auto;
  6 	word-wrap: normal;
  7 	white-space: pre;
  8 }
  9 
 10 /* Main Page fix for non-refreshed skins */
 11 body:not(.skin-refreshed) #mw-content-text > br:first-of-type {
 12 	display: none;
 13 }
 14 
 15 /* Hide ArticleFeedback from review, fan, and news namespaces and the forum */
 16 .ns-112 .articleFeedbackv5
 17 .ns-118 .articleFeedbackv5, 
 18 .ns-2000 .articleFeedbackv5,
 19 .page-Brickipedia_Forum .articleFeedbackv5 {
 20 	display: none;
 21 }
 22 
 23 .advent-cal img {
 24 	max-width: 150px;
 25 	max-height: 130px;
 26 	border-radius: 0.5em;
 27 }
 28 
 29 /* Hide MP title */
 30 .page-Main_Page #maintitle, .page-Main_Page #firstHeading {
 31 	display: none;
 32 }
 33 
 34 /* Style Main page boxes*/
 35 .MPBoxesContainer {
 36 	width: 100%;
 37 	color: #000;
 38 }
 39 
 40 .MPBoxesLeft {
 41 	width: 48%;
 42 	float: left;
 43 	background: #fff;
 44 	border-radius: 10px;
 45 	margin-left: 1%;
 46 }
 47 
 48 .MPBoxesRight {
 49 	width: 48%;
 50 	float: right;
 51 	background: #fff;
 52 	border-radius: 10px;
 53 	margin-right: 1%;
 54 }
 55 
 56 .MPBoxesWide {
 57 	width: 98%;
 58 	color: #000;
 59 	float: left;
 60 	background: #fff;
 61 	border-radius: 10px;
 62 	margin-left: 1%;
 63 }
 64 
 65 .MPOtherSiteImage, .MPOtherSiteImageComputer {
 66 	width: 48%;
 67 	float: left;
 68 }
 69 
 70 .MPOtherSiteImageMobile {
 71 	display: none;
 72 }
 73 
 74 .MP-logo-mobile {
 75 	display: none;
 76 }
 77 
 78 .setHeaderRight {
 79 	text-align: right;
 80 }
 81 
 82 /* Infobox styling */
 83 #infobox tr:last-child, .slide-content:last-child {
 84 	border-bottom-right-radius: 10px;
 85 	border-bottom-left-radius: 10px;
 86 }
 87 
 88 #infobox tr:last-child td:first-child {
 89 	border-bottom-left-radius: 10px;
 90 }
 91 
 92 #infobox tr:last-child td:last-child {
 93 	border-bottom-right-radius: 10px;
 94 }
 95 
 96 /* Make it obvious that the "Box" and "Set" tabs are actually _clickable_ tabs */
 97 #infobox .infoBtn {
 98 	cursor: pointer;
 99 }
100 
101 /* Further results button for Brickipedia News */
102 .page-Brickipedia_News_Home .smw-template-furtherresults a {
103 	color: #fff;
104 	font-weight: bold;
105 	margin-left: 6px;
106 }
107 
108 /* Blogs */
109 #blog-page-middle {
110 	width: 100%;
111 }
112 
113 textarea#comment {
114 	width: 1000px;
115 	max-width: 100%;
116 }
117 
118 .c-item {
119 	padding-bottom: 1em;
120 }
121 
122 .c-item.full {
123 	width: 100%;
124 }
125 
126 .c-item.reply {
127 	width: calc(100% - 70px);
128 }
129 
130 .f-message,
131 .r-message {
132 	width: 100%;
133 }
134 
135 .comments-block-user {
136 	display: none;
137 }
138 
139 /* For mobile devices */
140 @media only screen and (max-width: 800px) {
141 	/** Main page CSS **/
142 	.MPBoxesLeft, 
143         .MPBoxesRight, 
144         .MPBoxesWide,
145         .MPOtherSiteImageMobile,
146         .MPOtherSiteImage {
147 		float: inherit;
148 		width: 98%;
149 		margin-left: 1%;
150 	}
151 	.MPBoxesContainer {
152 		float: inherit;
153 		width: inherit;
154 		margin-left: inherit;
155 	}
156 	.MPOtherSiteImageComputer {
157 		display: none;
158 	}
159 	.MPOtherSiteImageMobile {
160 		display: inline;
161 	}
162 	.MP-logo-mobile {
163 		display: inline;
164 	}
165 	.MP-logo {
166 		display: none;
167 	}
168 	/** Set header **/
169 	.setHeaderLeft {
170 		display: none;
171 	}
172 	.setHeaderRight {
173 		text-align: center;
174 	}
175 }
176 
177 .newsBackground > a {
178 	font-weight: bold;
179 	color: #fff;
180 	float: right;
181 	margin-right: 6px;
182 }
183 
184 /* Fixing stuff broken in Special:Wikiforum */
185 .mw-special-WikiForum .gallery:after {
186     content: '';
187     display: block;
188     clear:both;
189 }
190 
191 .mw-special-WikiForum .gallerybox {
192     display:inline;
193     float:left;
194 }
195 
196 
197 /* For mobile devices */
198 @media only screen and (max-width: 800px) {
199 	body.mw-special-WikiForum table table .mw-wikiforum-value:nth-child(2),
200 	body.mw-special-WikiForum table table .mw-wikiforum-value:nth-child(3),
201 	body.mw-special-WikiForum table table .mw-wikiforum-value:nth-child(5),
202 	body.mw-special-WikiForum table table th:nth-child(5),
203 	.mw-wikiforum-descr,
204 	body.mw-special-WikiForum table table td:nth-child(1) img {
205 		display:none !important;
206 	}
207 	body.mw-special-WikiForum table table td:nth-child(1), 
208         body.mw-special-WikiForum table table th:nth-child(1){
209 		width:60% !important;
210 	}
211 	/* 
212         body.mw-special-WikiForum table table td:nth-child(4), 
213         body.mw-special-WikiForum table table th:nth-child(4){
214 		width:30% !important;
215 	} */
216 	.mw-wikiforum-value br {
217 		content: ' ';
218 	}
219 	.mw-wikiforum-value br:after {
220 		content: ' ';
221 	}
222 }
223 
224 /* WikiForum */
225 .mw-wikiforum-frame {
226 	border-spacing: 0;
227 	border-collapse: collapse;
228 	border: 0;
229 	color: #fff;
230 	border-radius: 10px;
231 	overflow: hidden;
232 	background: #33a;
233 }
234 
235 .mw-wikiforum-frame table {
236 	border-radius: 10px;
237 	overflow: hidden;
238 }
239 
240 .mw-wikiforum-title a {
241 	color: #fff;
242 }
243 
244 .mw-wikiforum-title tr:nth-child(even) {
245 	background: #44aaea;
246 }
247 .mw-wikiforum-title tr:nth-child(odd) {
248 	background: #248aca;
249 }
250 
251 .mw-wikiforum-title th, .mw-wikiforum-thread-top {
252 	background: #33a;
253 }
254 
255 .mw-wikiforum-descr {
256 	color: #eee !important;
257 }
258 
259 .mw-wikiforum-thread-sub, .mw-wikiforum-thread-main {
260 	color: #000;
261 }
262 
263 .mw-wikiforum-thread-top {
264 	background: #33a !important;
265 }
266 
267 .mw-wikiforum-thread-main {
268 	background: #7cf !important;
269 	word-wrap: normal !important;
270 }
271 .mw-wikiforum-thread-sub {
272 	background: #bfdbee !important;
273 	word-wrap: normal !important;
274 }
275 
276 table.mw-wikiforum-posted {
277 	border-top: 1px solid #666;
278 	border-radius: 0;
279 }
280 .mw-wikiforum-posted tr {
281 	color: #333;
282 }
283 
284 .wikiforum-avatar-image {
285 	float: right;
286 	padding: 10px;
287 }
288 
289 td.mw-wikiforum-thread-main, td.mw-wikiforum-thread-sub {
290 	word-break: normal !important;
291 }
292 
293 /* Rating templates */
294 .ratingTemplate .ratingInfo {
295 	display: none;
296 }
297 .ratingTemplate:hover .ratingInfo {
298 	display: inline;
299 }
300 
301 /* Hide RDF */
302 .smwfact {
303 	display: none;
304 }
305 
306 /* slidey stuff */
307 .noshown {
308 	display: none;
309 }
310  
311 .slide-link {
312 	float: right;
313 	font-weight: normal;
314 	cursor: pointer;
315 }
316 
317 /* Special:CreateBlogPost */
318 #create-tagcloud {
319 	display: none;
320 	width: auto;
321 }
322 
323 /* Fixes for poll */
324 .ajaxpoll {
325 	background: #fff;
326 	border: 1px solid #000;
327 }
328 .ajaxpoll-id-info {
329 	display: none;
330 }
331 .ajaxpoll-answer-vote {
332 	background: #fff;
333 }
334 .ajaxpoll-info {
335 	color: #888;
336 }
337 .ajaxpoll-answer-vote div {
338 	background: #aaa !important;
339 	border: none !important;
340 }
341 .ajaxpoll-our-vote div {
342 	position: relative !important;
343 	top: 0px !important;
344 }
345 /* Hide SMW edit notice */
346 .smw-editpage-help {
347 	display: none;
348 }
349 
350 /* Ads */
351 @media only screen and (max-width: 500px) {
352 	iframe[width="728"] {
353 		display: none;
354 	}
355 }
356 @media only screen and (min-width: 500px) {
357 	iframe[width="234"] {
358 		display: none;
359 	}
360 }
361 
362 /* Tagline */
363 #siteSub { display:block; font-weight:normal; font-size:normal;}
364 body.page-Main_Page.action-view #siteSub, body.page-Main_Page.action-submit #siteSub { display: none; }