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)

This commit is contained in:
Julian Depetris Chauvin 2011-07-01 13:25:14 -03:00
parent 68b847f02b
commit 2cf52b3796
2 changed files with 8 additions and 3 deletions

View file

@ -17,6 +17,12 @@ body
color: #fff; 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 /* Plaintext dictionaries are usually 80-column formatted and take a lot
* of space. We try to use smaller fonts for them therefore. */ * of space. We try to use smaller fonts for them therefore. */
pre pre
@ -2601,4 +2607,3 @@ in bg url to hide it from iemac */
.mwiki .infl-inline { display: inline } .mwiki .infl-inline { display: inline }
.mwiki .infl-table { display: none } .mwiki .infl-table { display: none }

4
bgl.cc
View file

@ -702,7 +702,7 @@ void BglArticleRequest::run()
if ( dict.idxHeader.langTo == hebrew ) if ( dict.idxHeader.langTo == hebrew )
result += "<div class=\"bglrtl\">" + i->second.second + "</div>"; result += "<div class=\"bglrtl\">" + i->second.second + "</div>";
else else
result += i->second.second ; result += "<div>" + i->second.second + "</div>";
result += cleaner; result += cleaner;
} }
@ -718,7 +718,7 @@ void BglArticleRequest::run()
if ( dict.idxHeader.langTo == hebrew ) if ( dict.idxHeader.langTo == hebrew )
result += "<div class=\"bglrtl\">" + i->second.second + "</div>"; result += "<div class=\"bglrtl\">" + i->second.second + "</div>";
else else
result += i->second.second ; result += "<div>" + i->second.second + "</div>";
result += cleaner; result += cleaner;
} }
// Do some cleanups in the text // Do some cleanups in the text