Yuvipanda has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/106212


Change subject: Add simple RL module with current pagestyles from Android app
......................................................................

Add simple RL module with current pagestyles from Android app

Change-Id: Ic88b1925d231c195337b84f10903fcbe49fea5bb
---
A MobileApp.php
A less/common.less
2 files changed, 106 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileApp 
refs/changes/12/106212/1

diff --git a/MobileApp.php b/MobileApp.php
new file mode 100644
index 0000000..b9c0121
--- /dev/null
+++ b/MobileApp.php
@@ -0,0 +1,24 @@
+<?php
+if ( !defined( 'MEDIAWIKI' ) ) {
+       echo( "This is an extension to the MediaWiki package and cannot be run 
standalone.\n" );
+       die( -1 );
+}
+
+// Extension credits that will show up on Special:Version
+$wgExtensionCredits['other'][] = array(
+       'path' => __FILE__,
+       'name' => 'MobileApp',
+       'author' => array( 'Yuvi Panda' ),
+       'url' => 'https://www.mediawiki.org/wiki/Extension:MobileApp'
+);
+
+// List of less files included for both iOS and Android
+$commonStyles = array(
+       'extensions/MobileApp/less/common.less'
+);
+
+$wgResourceModules = array_merge( $wgResourceModules, array(
+       'mobile.app' => array(
+               'styles' => $commonStyles
+       )
+) );
diff --git a/less/common.less b/less/common.less
new file mode 100644
index 0000000..25f8a38
--- /dev/null
+++ b/less/common.less
@@ -0,0 +1,82 @@
+/* Should be moved out to the MobileApp extension at some point */
+body {
+    background-color: #FAFAFA;
+    color: #333;
+    font-family: sans-serif;
+    font-size: 16px;
+    line-height: 24px;
+    margin: 0;
+    padding: 0;
+    margin-top: 48px;
+}
+
+#content {
+    padding: 8px 24px;
+}
+
+a {
+    color: #347BFF;
+    text-decoration: none;
+}
+
+/* Headers */
+h1 {
+    font-family: serif;
+    color: #064AAD;
+    font-size: 24px;
+    line-height: 36px;
+    margin-bottom: 24px;
+    font-weight: bold;
+}
+
+h2, h3, h4, h5, h6 {
+    font-family: serif;
+}
+
+/* Basic Thumbnails */
+.thumb {
+    /* Don't stick thumbnails to the text above and below it */
+    margin: 8px 0px;
+    /* Align everything inside a thumbnail to be centered */
+    text-align: center;
+}
+
+.thumb .thumbinner {
+    /* Make sure that thumb takes up full width */
+    width: 100% !important;
+}
+
+.thumb .magnify {
+    display: none; /* Our parser is STUPID */
+}
+
+.thumb .noresize {
+    overflow-x: auto; /* Scrollbars for images that shouldn't be squished */
+}
+
+/* Makes sure that we don't have horizontal scrollbars for the entire page 
because
+   an image is too wide to fit in to the current viewport */
+img {
+    max-width: 100% !important;
+    height: auto !important;
+}
+
+/* Basic tables */
+table {
+    width: 100% !important;
+    overflow-x: auto;
+    display: block;
+    border: 1px solid #ccc;
+    margin-top: 4px;
+    margin-bottom: 4px;
+}
+
+/* Last updated info */
+#attribution {
+    border-top: 1px solid #ccc;
+    padding: 8px;
+    text-align: center;
+    color: #888;
+    font-size: 80%;
+}
+

-- 
To view, visit https://gerrit.wikimedia.org/r/106212
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic88b1925d231c195337b84f10903fcbe49fea5bb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileApp
Gerrit-Branch: master
Gerrit-Owner: Yuvipanda <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to