From 51ec818a5faddfb4e4285770940795e58dbd28ae Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 14 Aug 2012 22:19:59 +0400 Subject: [PATCH] finished single ribbon mode... Signed-off-by: Alex A. Naanou --- ui/gallery-prototype.js | 1 - ui/gallery.css | 9 +++++++++ ui/keybindings.js | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js index dd25809d..693bab28 100755 --- a/ui/gallery-prototype.js +++ b/ui/gallery-prototype.js @@ -685,7 +685,6 @@ var toggleWideView = createCSSClassToggler('.viewer', 'wide-view-mode', -// XXX write CSS for this... var toggleSingleRibbonMode = createCSSClassToggler('.viewer', 'single-ribbon-mode') diff --git a/ui/gallery.css b/ui/gallery.css index 4a932481..b3ca213b 100755 --- a/ui/gallery.css +++ b/ui/gallery.css @@ -243,4 +243,13 @@ } +/* single ribbon mode */ +.single-ribbon-mode .ribbon { + opacity: 0; +} + +.single-ribbon-mode .current.ribbon { + opacity: 1; +} + diff --git a/ui/keybindings.js b/ui/keybindings.js index 4cd53ffa..51b04a72 100755 --- a/ui/keybindings.js +++ b/ui/keybindings.js @@ -3,6 +3,7 @@ var keybindings = { //191: toggleHelp, // ? 70: toggleSingleImageMode, // f + 83: toggleSingleRibbonMode, // s 13: 70, // Enter 84: toggleSingleImageModeTransitions, // t 65: toggleTransitions, // a