Grammalecte  Check-in [35b485216f]

Overview
Comment:[fx] WebExt: CSS protection for lexicographer: don’t use text node
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 35b485216fcd9ffc18ffed90371c6665f29b527a29838f6c4f6a7832ef27657a
User & Date: olr on 2017-11-01 22:29:18
Other Links: manifest | tags
Context
2017-11-02
07:57
[fr] écriture dystypographique: nouveau cas particulier check-in: ef37355aae user: olr tags: trunk, fr
2017-11-01
22:29
[fx] WebExt: CSS protection for lexicographer: don’t use text node check-in: 35b485216f user: olr tags: trunk, fx
21:36
[fx] WebExt: CSS protection for lexicographer: font-family check-in: db9a4c097a user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/content_scripts/panel_lxg.css from [a028b6213b] to [ba17737c0a].

52
53
54
55
56
57
58





59
60
61
62
63
64
65
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70







+
+
+
+
+







    display: inline-block;
    padding: 2px 5px;
    font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 50%);
}
.grammalecte_lxg_morph_list {
    padding: 2px 0 10px 20px;
}
.grammalecte_lxg_morph_elem_inline {
    display: inline-block;
    font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 0%);
}
.grammalecte_lxg_morph_elem {
    font-family: "Trebuchet MS", "Fira Sans", "Liberation Sans", sans-serif;
    color: hsl(0, 0%, 0%);
}
.grammalecte_lxg_token_WORD {
    background-color: hsla(150, 50%, 50%, 1);

Modified gc_lang/fr/webext/content_scripts/panel_lxg.js from [d3537b8dce] to [aedfa6418d].

47
48
49
50
51
52
53
54

55
56
57
58
59
60
61
47
48
49
50
51
52
53

54
55
56
57
58
59
60
61







-
+







    }

    _createTokenNode (oToken) {
        let xTokenNode = oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_block"});
        xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token grammalecte_lxg_token_" + oToken.sType, textContent: oToken.sValue}));
        xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_token_colon", textContent: ":"}));
        if (oToken.aLabel.length === 1) {
            xTokenNode.appendChild(document.createTextNode(oToken.aLabel[0]));
            xTokenNode.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem_inline", textContent: oToken.aLabel[0]}));
        } else {
            let xTokenList = oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_list"});
            for (let sLabel of oToken.aLabel) {
                xTokenList.appendChild(oGrammalecte.createNode("div", {className: "grammalecte_lxg_morph_elem", textContent: "• " + sLabel}));
            }
            xTokenNode.appendChild(xTokenList);
        }