summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2014-01-14 22:14:06 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2014-01-14 22:14:06 +0100
commit2bdd014f83979d3a332775b39bb139c567c34e64 (patch)
tree33a16c10b463cfec9b53fd463d03c1bf80293c82 /apps/files_sharing
parentb24c21b00f0116e8749f37646cc25f798992bf05 (diff)
downloadnextcloud-server-2bdd014f83979d3a332775b39bb139c567c34e64.tar.gz
nextcloud-server-2bdd014f83979d3a332775b39bb139c567c34e64.zip
first mobile style rules, hide extra columns in files view and scroll header
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/css/mobile.css18
-rw-r--r--apps/files_sharing/public.php1
2 files changed, 19 insertions, 0 deletions
diff --git a/apps/files_sharing/css/mobile.css b/apps/files_sharing/css/mobile.css
new file mode 100644
index 00000000000..55d244ff1e0
--- /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 f4042f65248..ae0a62f1034 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');