Overview
Comment: | [fx] text formatter ui + misc adjustements |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | fx | webext2 |
Files: | files | file ages | folders |
SHA3-256: |
8260f1033048be3ec617eaf9d97140ae |
User & Date: | olr on 2017-08-12 18:14:47 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-13
| ||
09:57 | [fx] object Panel, movable panels check-in: 877eb2d93c user: olr tags: fx, webext2 | |
2017-08-12
| ||
18:14 | [fx] text formatter ui + misc adjustements check-in: 8260f10330 user: olr tags: fx, webext2 | |
14:55 | [fx] forgot to add the CSS file with the previous commit check-in: 9e033cb647 user: olr tags: fx, webext2 | |
Changes
Modified gc_lang/fr/webext/content_scripts/content_panels.css from [8e4d8b1c27] to [57d765e57a].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + - - - - - - - - - - - - - - - - - - - - - + + | /* CSS Content panels for Grammalecte */ /* Wrapper */ .grammalecte_wrapper { padding: 5px; border-radius: 3px; background-color: hsl(210, 50%, 50%); font-family: "Trebuchet MS", "Liberation Sans", sans-serif; color: hsl(210, 10%, 90%); } .grammalecte_wrapper_button { display: inline-block; padding: 0 5px; margin-left: 5px; background-color: hsl(210, 50%, 60%); border-radius: 2px; cursor: pointer; } /* Panels */ .grammalecte_panel { padding: 0; margin: 0; position: fixed; left: 50%; top: 50%; z-index: 100; |
︙ | |||
65 66 67 68 69 70 71 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | cursor: pointer; } .grammalecte_panel_content { height: calc(100% - 45px); /* panel height - title_bar */ overflow: auto; } /* GC Panel & Lexicographer */ #grammalecte_gc_panel, #grammalecte_lxg_panel { width: 500px; height: 700px; margin-top: -350px; margin-left: -200px; } /* Conjugueur */ #grammalecte_conj_panel { width: 700px; height: 700px; margin-top: -350px; margin-left: -350px; } /* Text Formatter */ #grammalecte_tf_panel { width: 800px; height: 600px; margin-top: -300px; margin-left: -400px; } #grammalecte_tf_options { display: flex; padding: 10px; } #grammalecte_tf_options .underline:hover { background-color: hsl(210, 10%, 86%); border-radius: 2px; } .grammalecte_tf_column { flex-grow: 1; width: 360px; padding: 0 5px; } #grammalecte_tf_options legend label { font-size: 20px; color: hsla(210, 20%, 50%, .8); font-weight: bold; } #grammalecte_tf_options fieldset { padding: 2px 10px 10px 13px; margin-bottom: 5px; background-color: hsl(210, 10%, 96%); border-color: hsl(210, 20%, 80%); border-radius: 3px; } #grammalecte_tf_options legend .option { margin: 7px 5px 0 4px; float: left; } #grammalecte_tf_options label { font-size: 13px; } #grammalecte_tf_options .grammalecte_tf_result { float: right; font-size: 13px; } #grammalecte_tf_actions { background-color: hsl(120, 10%, 92%); padding: 15px; border-top: 1px solid hsl(120, 20%, 86%); } .grammalecte_button { display: inline-block; padding: 5px 10px; width: 100px; border-radius: 3px; font-size: 16px; font-weight: bold; text-align: center; cursor: pointer; } #grammalecte_tf_reset { background-color: hsl(210, 80%, 50%); color: hsl(210, 0%, 100%); } #grammalecte_tf_apply { background-color: hsl(150, 80%, 50%); color: hsl(150, 0%, 100%); } #grammalecte_progressbarbox { display: inline-block; padding: 10px 20px; } |
Modified gc_lang/fr/webext/content_scripts/modify_page.js from [7d090ec36f] to [c571bd6bb2].
︙ | |||
32 33 34 35 36 37 38 | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | - + - - - + - + - + - + - + - + - + - + - + - + | } } function createWrapper (xTextArea) { try { let xParentElement = xTextArea.parentElement; let xWrapper = document.createElement("div"); |
︙ |
Modified gc_lang/fr/webext/content_scripts/text_formatter.js from [44d0e018ce] to [bc3379ab0f].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | - + + + - - - - - - - + + + + + + + + + - - - - - - + + + + + + | // JavaScript // Text formatter "use strict"; function createTextFormatter (xTextArea) { let xTFNode = document.createElement("div"); try { // Options |
︙ | |||
81 82 83 84 85 86 87 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - + | return xFieldset; } function createOptionInputAndLabel (sId, bDefault, sLabel) { let xOption = createNode("div", {className: "blockopt underline"}); let xInput = createCheckbox(sId, bDefault, "option"); let xLabel = createLabel(sId, sLabel, "opt_lbl largew"); |
︙ |