From 9a33867e6579c955d71e4e62923aa4faf27e450d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20=C5=81abanowski?= Date: Sun, 23 Dec 2012 00:48:14 +0100 Subject: [PATCH] Fix expanding boards on boardlist on Webkit browsers using javascript --- js/chrome-board-expanding-fix.js | 7 +++++++ stylesheets/style.css | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 js/chrome-board-expanding-fix.js diff --git a/js/chrome-board-expanding-fix.js b/js/chrome-board-expanding-fix.js new file mode 100644 index 00000000..f0a5930a --- /dev/null +++ b/js/chrome-board-expanding-fix.js @@ -0,0 +1,7 @@ +$(document).ready(function(){ + $(".desktop-style .sub .sub").on("mouseover", function() { + $(this).addClass("hover"); + }).on("mouseout", function() { + $(this).removeClass("hover"); + }); +}); diff --git a/stylesheets/style.css b/stylesheets/style.css index bd5bd4d6..e1965a47 100644 --- a/stylesheets/style.css +++ b/stylesheets/style.css @@ -427,7 +427,7 @@ table.mod.config-editor input[type="text"] { width: 7px; background: url('img/arrow.png') right center no-repeat; } -.desktop-style .sub .sub:hover { +.desktop-style .sub .sub:hover, .desktop-style .sub .sub.hover { display: inline; text-indent: 0px; background: inherit;