[Pkg-owncloud-commits] [owncloud] 36/145: first mobile style rules, hide extra columns in files view and scroll header
David Prévot
taffit at moszumanska.debian.org
Wed Feb 26 16:27:40 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 615f0c4a1c8cf5f8129064124f2d306192ed27be
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date: Wed Feb 5 10:52:25 2014 +0100
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(+)
diff --git a/apps/files_sharing/css/mobile.css b/apps/files_sharing/css/mobile.css
new file mode 100644
index 0000000..e29760b
--- /dev/null
+++ b/apps/files_sharing/css/mobile.css
@@ -0,0 +1,18 @@
+ at 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;
+}
+
+
+}
\ No newline at end of file
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 49d485c..620e61c 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');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list