From 2cf52b3796c3697398f96792c6f92ad03f930c2e Mon Sep 17 00:00:00 2001 From: Julian Depetris Chauvin Date: Fri, 1 Jul 2011 13:25:14 -0300 Subject: [PATCH] Minimizee 2-colors selection glitch for Babylon dictionaries. The source problem is that some html dont a well-formed structured (inline elements are not placed within block-level elements) --- article-style.css | 7 ++++++- bgl.cc | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/article-style.css b/article-style.css index 1d33ae94..6693df29 100644 --- a/article-style.css +++ b/article-style.css @@ -17,6 +17,12 @@ body color: #fff; } +/* Don't allow to select [] */ +:before, :after { + -webkit-user-select: none; + user-select: none; +} + /* Plaintext dictionaries are usually 80-column formatted and take a lot * of space. We try to use smaller fonts for them therefore. */ pre @@ -2601,4 +2607,3 @@ in bg url to hide it from iemac */ .mwiki .infl-inline { display: inline } .mwiki .infl-table { display: none } - diff --git a/bgl.cc b/bgl.cc index 5db9e2de..3f7e9573 100644 --- a/bgl.cc +++ b/bgl.cc @@ -702,7 +702,7 @@ void BglArticleRequest::run() if ( dict.idxHeader.langTo == hebrew ) result += "
" + i->second.second + "
"; else - result += i->second.second ; + result += "
" + i->second.second + "
"; result += cleaner; } @@ -718,7 +718,7 @@ void BglArticleRequest::run() if ( dict.idxHeader.langTo == hebrew ) result += "
" + i->second.second + "
"; else - result += i->second.second ; + result += "
" + i->second.second + "
"; result += cleaner; } // Do some cleanups in the text