Grammalecte  Check-in [84a87c62b0]

Overview
Comment:[fx] gc_panel: modify buttons
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | fx | kill_innerHTML
Files: files | file ages | folders
SHA3-256: 84a87c62b013871751fbf65ad22025c1ae7d500baffed0e95bf7022b2c95a8ea
User & Date: olr on 2017-07-15 08:13:30
Other Links: branch diff | manifest | tags
Context
2017-07-15
08:51
[fx] gc_panel: CSS update check-in: cdf07eecd4 user: olr tags: fx, kill_innerHTML
08:13
[fx] gc_panel: modify buttons check-in: 84a87c62b0 user: olr tags: fx, kill_innerHTML
06:24
[fx] gc_panel: clean text, fix URL opening check-in: 01daed0f9f user: olr tags: fx, kill_innerHTML
Changes

Modified gc_lang/fr/xpi/data/gc_panel.css from [e4215aa3ba] to [d364782947].

   256    256   }
   257    257   
   258    258   /*
   259    259       Action buttons
   260    260   */
   261    261   
   262    262   .actions {
   263         -    margin-top: -20px;
   264         -    margin-bottom: 10px;
          263  +    margin: 0 0 5px 10px;
   265    264   }
   266    265   
   267    266   .actions .button {
   268    267       background-color: hsl(0, 0%, 50%);
   269    268       text-align: center;
   270    269       float: right;
   271    270       margin-left: 2px;
   272    271       padding: 1px 4px 3px 4px;
   273    272       /*width: 18px;
   274    273       height: 18px;*/
   275    274       cursor: pointer;
   276    275       font-size: 14px;
   277         -    font-weight: bold;
   278    276       color: hsl(0, 0%, 96%);
   279    277       border-radius: 2px;
   280    278   }
   281    279   .actions .button:hover {
   282    280       background-color: hsl(0, 0%, 40%);
   283    281       color: hsl(0, 0%, 100%);
   284    282   }
................................................................................
   303    301       background-color: hsl(30, 50%, 50%);
   304    302       color: hsl(30, 0%, 96%);
   305    303   }
   306    304   .actions .orange:hover {
   307    305       background-color: hsl(30, 70%, 40%);
   308    306       color: hsl(30, 0%, 100%);
   309    307   }
          308  +.actions .bold {
          309  +    font-weight: bold;
          310  +}
   310    311   
   311    312   
   312    313   /*
   313    314       ERRORS
   314    315   */
   315    316   
   316    317   .error {

Modified gc_lang/fr/xpi/data/gc_panel.js from [7b61fc3131] to [2e8cdac4ec].

   139    139           let xNodeDiv = document.createElement("div");
   140    140           xNodeDiv.className = "paragraph_block";
   141    141           // actions
   142    142           let xDivActions = document.createElement("div");
   143    143           xDivActions.className = "actions";
   144    144           let xDivClose = document.createElement("div");
   145    145           xDivClose.id = "end" + iParagraph.toString();
   146         -        xDivClose.className = "button red";
          146  +        xDivClose.className = "button red bold";
   147    147           xDivClose.textContent = "×";
          148  +        xDivActions.appendChild(xDivClose);
   148    149           /*let xDivEdit = document.createElement("div");
   149    150           xDivEdit.id = "edit" + iParagraph.toString();
   150    151           xDivEdit.className = "button";
   151         -        xDivEdit.textContent = "Éditer";*/
          152  +        xDivEdit.textContent = "Éditer";
          153  +        xDivActions.appendChild(xDivEdit);*/
   152    154           let xDivCheck = document.createElement("div");
   153    155           xDivCheck.id = "check" + iParagraph.toString();
   154    156           xDivCheck.className = "button green";
   155    157           xDivCheck.textContent = "Réanalyser";
   156         -        xDivActions.appendChild(xDivClose);
   157         -        //xDivActions.appendChild(xDivEdit);
          158  +        xDivCheck.setAttribute("title", "Réanalyser le texte");
   158    159           xDivActions.appendChild(xDivCheck);
   159    160           xNodeDiv.appendChild(xDivActions);
   160    161           // paragraph
   161    162           let xParagraph = document.createElement("p");
   162    163           xParagraph.id = "paragr" + iParagraph.toString();
   163    164           xParagraph.lang = "fr";
   164    165           xParagraph.setAttribute("spellcheck", false);