Index: compile_rules.py ================================================================== --- compile_rules.py +++ compile_rules.py @@ -449,11 +449,11 @@ del lRule[-1] # tGroups positioning codes are useless for Python # error messages for aAction in lRuleJS[6]: if aAction[1] == "-": aAction[2] = aAction[2].replace(" ", " ") # nbsp --> nnbsp - aAction[4] = aAction[4].replace("« ", "« ").replace(" »", " »") + aAction[4] = aAction[4].replace("« ", "« ").replace(" »", " »").replace(" :", " :").replace(" :", " :") # js regexes lRuleJS[1], lNegLookBehindRegex = regex2js( dJSREGEXES.get(lRuleJS[3], lRuleJS[1]) ) lRuleJS.append(lNegLookBehindRegex) return lRuleJS Index: gc_lang/fr/xpi/data/gc_panel.css ================================================================== --- gc_lang/fr/xpi/data/gc_panel.css +++ gc_lang/fr/xpi/data/gc_panel.css @@ -8,12 +8,10 @@ border-bottom: 1px solid hsl(0, 0%, 90%); color: hsl(0, 0%, 0%); z-index: 99; } - - body { background-color: hsl(0, 0%, 98%); font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; overflow-x: hidden; color: hsl(0, 0%, 0%); @@ -69,10 +67,11 @@ font-size: 18px; color: hsla(240, 0%, 96%, 1); border-radius: 3px; text-align: center; } + #errorlist p.green { background-color: hsla(120, 10%, 50%, 1); color: hsla(120, 0%, 96%, 1); } @@ -107,38 +106,10 @@ background-color: hsla(210, 60%, 40%, 1); color: hsla(0, 0%, 100%, 1); text-shadow: 0 0 3px hsl(210, 30%, 60%); } -.paragraph a.sugg { - padding: 1px 6px; - background-color: hsla(150, 50%, 40%, 1); - color: hsla(150, 0%, 96%, 1); - border-radius: 2px; - cursor: pointer; - text-decoration: none; -} -.paragraph a.sugg:hover { - background-color: hsla(150, 70%, 30%, 1); - color: hsla(0, 0%, 100%, 1); - text-shadow: 0 0 3px hsl(150, 30%, 60%); -} - -.paragraph a.ignore { - padding: 0 2px; - background-color: hsla(30, 20%, 60%, 1); - color: hsla(30, 0%, 96%, 1); - border-radius: 2px; - cursor: pointer; - text-decoration: none; -} -.paragraph a.ignore:hover { - background-color: hsla(30, 20%, 50%, 1); - color: hsla(0, 0%, 100%, 1); - text-shadow: 0 0 3px hsl(30, 30%, 60%); -} - .paragraph u.corrected, .paragraph u.ignored { background-color: hsla(120, 50%, 70%, 1); color: hsla(0, 0%, 4%, 1); border-radius: 2px; @@ -156,58 +127,139 @@ } .paragraph u.error:hover { cursor: pointer; } -.paragraph u.error .tooltip, .paragraph u.error .tooltip_on { - position: absolute; - background-color: hsla(210, 10%, 90%, 1); - font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; - top: 90%; - left: 0; - width: 250px; - font-size: 12px; - line-height: 18px; - color: hsla(0, 10%, 20%, 1); - cursor: default; - /*visibility: hidden;*/ - display: none; - padding: 10px; - box-shadow: 0 0 6px hsla(0, 0%, 0%, 0.3); - z-index: 10; - border: 2px solid hsl(0, 0%, 0%); - border-radius: 3px; - text-decoration: none; -} -.paragraph u.error .tooltip_on { - display: block; -} - -.tooltip_on s { - color: hsla(0, 0%, 66%, 1); - font-weight: bold; - font-size: 8px; - line-height: 16px; - text-transform: uppercase; - text-decoration: none; -} - -.debug { - float: right; + +/* + TOOLTIPS +*/ +.tooltip { + position: absolute; + display: none; + width: 300px; + border-radius: 5px; + box-shadow: 0 0 6px hsla(0, 0%, 0%, 0.3); + font-family: Tahoma, "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif; + font-size: 12px; + line-height: 18px; + cursor: default; + z-index: 10; + text-decoration: none; +} +#gc_tooltip { + border: 3px solid hsl(210, 50%, 30%); + color: hsla(210, 10%, 20%, 1); +} +#sc_tooltip { + border: 3px solid hsl(0, 50%, 30%); + color: hsla(0, 10%, 20%, 1); +} +#gc_tooltip #gc_rule_id { + display: none; background-color: hsla(0, 5%, 35%, 1); padding: 2px 5px; margin-left: 5px; border-radius: 2px; color: hsla(0, 0%, 96%, 1); font-size: 11px; font-style: normal; } - -.data { - font-style: normal; +#gc_message_block { + padding: 5px 10px 10px 10px; + background-color: hsl(210, 50%, 30%); + color: hsl(210, 50%, 96%); +} +#sc_message_block { + padding: 5px 10px 10px 10px; + background-color: hsl(0, 50%, 30%); + color: hsl(0, 50%, 96%); +} +#gc_message, #sc_message { + font-size: 15px; + margin-bottom: 5px; +} +a#gc_ignore, a#sc_ignore { + padding: 0 2px; + background-color: hsla(30, 30%, 40%, 1); + color: hsla(30, 0%, 96%, 1); + border-radius: 2px; + cursor: pointer; + text-decoration: none; +} +a#gc_ignore:hover, a#sc_ignore:hover { + background-color: hsla(30, 30%, 50%, 1); + color: hsla(0, 0%, 100%, 1); + text-shadow: 0 0 3px hsl(30, 30%, 60%); +} +a#gc_url { + padding: 0 2px; + background-color: hsla(210, 50%, 50%, 1); + color: hsla(210, 0%, 96%, 1); + border-radius: 2px; + cursor: pointer; + text-decoration: none; +} +a#gc_url:hover { + background-color: hsla(210, 50%, 60%, 1); + color: hsla(0, 0%, 100%, 1); + text-shadow: 0 0 3px hsl(210, 30%, 60%); +} +#gc_sugg_title { + padding: 0 10px; + background-color: hsl(210, 10%, 90%); + color: hsl(210, 50%, 30%); + font-size: 10px; + font-weight: bold; +} +#sc_sugg_title { + padding: 0 10px; + background-color: hsl(0, 10%, 90%); + color: hsl(0, 50%, 30%); + font-size: 9px; + font-weight: bold; +} +#gc_sugg_block { + padding: 10px; + background-color: hsl(210, 10%, 96%); + border-radius: 0 0 2px 2px; +} +#sc_sugg_block { + padding: 10px; + background-color: hsl(0, 10%, 96%); + border-radius: 0 0 2px 2px; +} +#gc_sugg_block a.sugg { + padding: 1px 6px; + background-color: hsla(180, 50%, 40%, 1); + color: hsla(180, 0%, 96%, 1); + border-radius: 2px; + cursor: pointer; + text-decoration: none; +} +#gc_sugg_block a.sugg:hover { + background-color: hsla(180, 70%, 50%, 1); + color: hsla(0, 0%, 100%, 1); + text-shadow: 0 0 3px hsl(180, 30%, 60%); +} +#sc_sugg_block a.sugg { + padding: 1px 6px; + background-color: hsla(30, 80%, 40%, 1); + color: hsla(30, 0%, 96%, 1); + border-radius: 2px; + cursor: pointer; + text-decoration: none; +} +#sc_sugg_block a.sugg:hover { + background-color: hsla(30, 100%, 50%, 1); + color: hsla(0, 0%, 100%, 1); + text-shadow: 0 0 3px hsl(30, 30%, 60%); } +/* + Action buttons +*/ .actions { margin-top: -10px; margin-bottom: 10px; } Index: gc_lang/fr/xpi/data/gc_panel.html ================================================================== --- gc_lang/fr/xpi/data/gc_panel.html +++ gc_lang/fr/xpi/data/gc_panel.html @@ -49,10 +49,31 @@
Mot inconnu du dictionnaire.
+ Ignorer +