From 2bdd014f83979d3a332775b39bb139c567c34e64 Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt <hey@jancborchardt.net>
Date: Tue, 14 Jan 2014 22:14:06 +0100
Subject: [PATCH] first mobile style rules, hide extra columns in files view
 and scroll header

---
 apps/files_sharing/css/mobile.css | 18 ++++++++++++++++++
 apps/files_sharing/public.php     |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 apps/files_sharing/css/mobile.css

diff --git a/apps/files_sharing/css/mobile.css b/apps/files_sharing/css/mobile.css
new file mode 100644
index 0000000000..55d244ff1e
--- /dev/null
+++ b/apps/files_sharing/css/mobile.css
@@ -0,0 +1,18 @@
+@media only screen and (max-width: 600px) {
+
+/* make header and controls bar scroll up for more view of content on small screens */
+#header,
+#controls {
+	position: absolute;
+}
+
+/* hide size and date columns */
+table th#headerSize,
+table td.filesize,
+table th#headerDate,
+table td.date {
+	display: none;
+}
+
+
+}
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index f4042f6524..ae0a62f103 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -136,6 +136,7 @@ if (isset($path)) {
 	} else {
 		OCP\Util::addScript('files', 'file-upload');
 		OCP\Util::addStyle('files_sharing', 'public');
+		OCP\Util::addStyle('files_sharing', 'mobile');
 		OCP\Util::addScript('files_sharing', 'public');
 		OCP\Util::addScript('files', 'fileactions');
 		OCP\Util::addScript('files', 'jquery.iframe-transport');
-- 
GitLab