diff options
author | Christian Reiner <github@christian-reiner.info> | 2013-10-28 23:11:18 +0400 |
---|---|---|
committer | Christian Reiner <github@christian-reiner.info> | 2013-10-28 23:11:18 +0400 |
commit | 1394b874bbc07f7aefc13c3b357637fbf4a426ce (patch) | |
tree | 2a35f96d2e6661b2c8c35779d31ca5fa0148f40e /fluxx_compensator | |
parent | 24449e3fdfef60bf021dd754629814daffe7bd92 (diff) | |
parent | 18c86c3d0a8c02b7f42cafa867cb5911365dedc5 (diff) |
Merge pull request #1442 from arkascha/master
fluxx-compensator: Version 0.2.5: Compatibility with owncloud version 6.
Diffstat (limited to 'fluxx_compensator')
-rw-r--r-- | fluxx_compensator/appinfo/info.xml | 2 | ||||
-rw-r--r-- | fluxx_compensator/appinfo/version | 2 | ||||
-rw-r--r-- | fluxx_compensator/css/dynamic-5.css (renamed from fluxx_compensator/css/dynamic.css) | 4 | ||||
-rw-r--r-- | fluxx_compensator/css/dynamic-6.css | 110 | ||||
-rw-r--r-- | fluxx_compensator/doc/CHANGELOG | 2 | ||||
-rw-r--r-- | fluxx_compensator/js/fluxx.js | 5 |
6 files changed, 120 insertions, 5 deletions
diff --git a/fluxx_compensator/appinfo/info.xml b/fluxx_compensator/appinfo/info.xml index f3f26ae4d..ec39fa6c1 100644 --- a/fluxx_compensator/appinfo/info.xml +++ b/fluxx_compensator/appinfo/info.xml @@ -40,7 +40,7 @@ Simply click the handler to hide/show the navigation panel. To move the handler to where you want it to be, just hold the handler and drag it. The older amongst us will know where the name 'FluXX Compensator (Y)' comes from... ;-) </description> - <version>0.2.4</version> + <version>0.2.5</version> <licence>AGPL</licence> <author>Christian Reiner</author> <require>4.93</require> diff --git a/fluxx_compensator/appinfo/version b/fluxx_compensator/appinfo/version index abd410582..3a4036fb4 100644 --- a/fluxx_compensator/appinfo/version +++ b/fluxx_compensator/appinfo/version @@ -1 +1 @@ -0.2.4 +0.2.5 diff --git a/fluxx_compensator/css/dynamic.css b/fluxx_compensator/css/dynamic-5.css index cb3c58f06..b872ac84d 100644 --- a/fluxx_compensator/css/dynamic.css +++ b/fluxx_compensator/css/dynamic-5.css @@ -23,8 +23,8 @@ */ /** - * @file css/dynamic.css - * @brief Dynamic style definitions modifying the apps builtin styles + * @file css/dynamic-5.css + * @brief Dynamic style definitions modifying the apps builtin styles, version for owncloud-5 * @author Christian Reiner */ diff --git a/fluxx_compensator/css/dynamic-6.css b/fluxx_compensator/css/dynamic-6.css new file mode 100644 index 000000000..9eaf2a970 --- /dev/null +++ b/fluxx_compensator/css/dynamic-6.css @@ -0,0 +1,110 @@ +/** +* @package fluxx-compensator an ownCloud app +* @category base +* @author Christian Reiner +* @copyright 2012-2013 Christian Reiner <foss@christian-reiner.info> +* @license GNU Affero General Public license (AGPL) +* @link information http://apps.owncloud.com/content/show.php?content=157091 +* +* This library is free software; you can redistribute it and/or +* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE +* License as published by the Free Software Foundation; either +* version 3 of the license, or any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU AFFERO GENERAL PUBLIC LICENSE for more details. +* +* You should have received a copy of the GNU Affero General Public +* License along with this library. +* If not, see <http://www.gnu.org/licenses/>. +* +*/ + +/** + * @file css/dynamic-6.css + * @brief Dynamic style definitions modifying the apps builtin styles, version for owncloud-6 + * @author Christian Reiner + */ + +/* default handle position rules, required by FF to animate the transitions */ +#fluxx-H { + top: 0; +} +#fluxx-N { + left: 0; +} +/* move navigation handle up, required due to the absolute positioning */ +html.fluxx-state-H-hidden #fluxx-N { + margin-top: 0 !important; +} +/* navigation hidden: move left and add a more impressive shadow as a hint */ +html.fluxx-state-N-hidden #navigation { + left: -80px !important; + box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; + -o-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; + -ms-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; + -moz-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; + -khtml-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; + -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222; +} +/* move content to the left when navigation is hidden */ +html.fluxx-state-N-hidden #content-wrapper { + padding-left: 0; +} +html.fluxx-state-N-hidden #controls { + padding-right: 6px; +} + +/* header hidden: move up and show more impressive shadow as a hint */ +html.fluxx-state-H-hidden #header { + top: -45px !important; + box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; + -o-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; + -ms-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; + -moz-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; + -khtml-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; + -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .5), inset 0 -2px 10px #222 !important; +} +/* move stuff up to top when header is hidden */ +html.fluxx-state-H-hidden #navigation, +html.fluxx-state-H-hidden #content-wrapper { + padding-top: 0; +} + +/* below some specific app dependent settings to compensate for exotic in-app styles */ + +/* no _known_ mode detected, so _guess_ */ +html.fluxx-modeless { } + +/* 'bookarks' app */ +html.fluxx-mode-bookmarks { } +html.fluxx-mode-bookmarks.fluxx-state-N-hidden #firstrun { left: 280px; } + +/* 'calendar' app */ +html.fluxx-mode-calendar { } + +/* 'contacts' app */ +html.fluxx-mode-contacts { } +html.fluxx-mode-contacts.fluxx-state-N-hidden #contactsheader { left: 280px; } +html.fluxx-mode-contacts.fluxx-state-H-hidden #groupsheader, +html.fluxx-mode-contacts.fluxx-state-H-hidden #contactsheader { top: 0px; } + +/* 'files' app */ +html.fluxx-mode-files { } + +/* 'gallery' app */ +html.fluxx-mode-gallery { } + +/* 'media' app */ +html.fluxx-mode-media { } +html.fluxx-mode-media.fluxx-state-N-hidden #rightcontent { left: -64px; } +html.fluxx-mode-media.fluxx-state-H-hidden #rightcontent { top: -3.5em; } + + +/* 'notes' app */ +html.fluxx-mode-notes { } + +/* 'shorty' app */ +html.fluxx-mode-shorty { } diff --git a/fluxx_compensator/doc/CHANGELOG b/fluxx_compensator/doc/CHANGELOG index e3f9ecc1b..51cc2a9fc 100644 --- a/fluxx_compensator/doc/CHANGELOG +++ b/fluxx_compensator/doc/CHANGELOG @@ -23,6 +23,8 @@ Changelog: +* Wed Oct 28 2013 Christian Reiner: version 0.2.5 +Compatibility with owncloud version 6 * Wed Sep 11 2013 Christian Reiner: version 0.2.4 Handling rules for the media app (aka 'music') fixing sliding the main content. * Sun Aug 04 2013 Christian Reiner: version 0.2.3 diff --git a/fluxx_compensator/js/fluxx.js b/fluxx_compensator/js/fluxx.js index 5ae1b0507..2d2d75b1b 100644 --- a/fluxx_compensator/js/fluxx.js +++ b/fluxx_compensator/js/fluxx.js @@ -203,7 +203,10 @@ OC.FluXX={ */ init:function(){ // dynamically load stylesheet to make sure it is loaded LAST - OC.addStyle('fluxx_compensator','dynamic'); + // we detect owncloud version 6 by its additional 'wrapper' div inside the list of apps in the navigation + if (0===$('#navigation #apps div.wrapper').length) + OC.addStyle('fluxx_compensator','dynamic-5'); + else OC.addStyle('fluxx_compensator','dynamic-6'); // initialize created handles $.each(OC.FluXX.Handle, function(){ var handle=this; |