Initial mobile style:
authorRobert Sesek <rsesek@bluestatic.org>
Mon, 27 Feb 2012 05:53:04 +0000 (00:53 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Mon, 27 Feb 2012 05:53:04 +0000 (00:53 -0500)
* Create mobile.css and add it to the fe build.
* Set viewport.

build.py
web_frontend/index.html
web_frontend/mobile.css [new file with mode: 0644]

index 74acfd34b8cd5148e73fa0bcd436c0b2ec3ce338..3875c368936e089528cbb1c9f92c85f41489c93d 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -46,6 +46,7 @@ SOURCES_FE = [
 RESOURCES_FE = [
   'index.html',
   'screen.css',
+  'mobile.css',
   'reset.css'
 ]
 PRODUCT_NAME = 'armadillo'
index f2485a4d8cb199a16135e8ada83903ffbc99acbb..00b7c869befb73cb2685d821df34eb30e231162e 100644 (file)
@@ -3,8 +3,10 @@
   <head>
     <title>Armadillo File Manager</title>
     <script type="text/javascript" src="fe/armadillo.js"></script>
+    <meta name="viewport" content="device-width, initial-scale=1, maximum-scale=1" />
     <link rel="stylesheet" href="fe/reset.css" type="text/css" media="screen" charset="utf-8" />
     <link rel="stylesheet" href="fe/screen.css" type="text/css" media="screen" charset="utf-8" />
+    <link rel="stylesheet" href="fe/mobile.css" type="text/css" media="only screen and (-webkit-min-device-pixel-ratio: 1.5)" charset="utf-8" />
   </head>
   <body>
     <div id="error"></div>
diff --git a/web_frontend/mobile.css b/web_frontend/mobile.css
new file mode 100644 (file)
index 0000000..da38eae
--- /dev/null
@@ -0,0 +1,12 @@
+/*
+ * Armadillo File Manager
+ * Copyright (c) 2012, Robert Sesek <http://www.bluestatic.org>
+ *
+ * This program is free software: you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License as published by the Free Software
+ * Foundation, either version 3 of the License, or any later version.
+ */
+
+body {
+  padding: 0;
+}