Changeset 118572 in spip-zone


Ignore:
Timestamp:
Nov 13, 2019, 10:22:02 AM (4 months ago)
Author:
Cerdic
Message:

On est en 2019 : on a plus besoin d'une lib JS pour faire le yellow fade, quelques lignes de CSS suffisent (et ca permet au reglage d'etre pris en compte immediatement sans recompilation du js)

Location:
_plugins_/crayons/trunk
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/crayons/trunk

    • Property subgit:lock:d362dd70aa76f16f283b957be8ce6392a76fad32 deleted
    • Property subgit:lock:129350a3a979fc03ade9eda9764ff52d24d0465d set to 2019-11-13T11:54:47.184
  • _plugins_/crayons/trunk/crayons.css

    r118571 r118572  
    5959.small .resizehandle {margin-right: 0;}
    6060.resizehandle_boutons { margin-top: -16px; }
     61
     62
     63.crayon-fade.crayon-hover{
     64        -webkit-animation-name: crayon-fade-highlight;
     65        -webkit-animation-duration: 1s;
     66        animation-name: crayon-fade-highlight;
     67  animation-duration: 1s;
     68}
     69@-webkit-keyframes crayon-fade-highlight {
     70    0%   {background-color: initial;}
     71    50%  {background-color: #FFFFB4;}
     72    100% {background-color: initial;}
     73}
     74@keyframes crayon-fade-highlight {
     75    0%   {background-color: initial;}
     76    50%  {background-color: #FFFFB4;}
     77    100% {background-color: initial;}
     78}
  • _plugins_/crayons/trunk/crayons.js.html

    r118554 r118572  
    2626[(#CHEMIN{js/jquery.html5uploader.js}|pack_cQuery)]
    2727
    28 [(#CONFIG{crayons/yellow_fade}|=={on}|oui)
    29         [(#CHEMIN{js/crayons-fade.js}|pack_cQuery)]
    30 ]
    31 
    3228[(#REM) Appeler la callback si demandee ]
    3329[(#ENV{callback})();]
  • _plugins_/crayons/trunk/js/crayons.js

    r118555 r118572  
    501501        var timeme;
    502502        this
    503         .addClass('crayon-autorise')
     503        .addClass('crayon-autorise' + (configCrayons.cfg.yellow_fade ? ' crayon-fade' : ''))
    504504        .dblclick(editme)
    505505        .bind("touchstart",function(e){var me=this;timeme=setTimeout(function(){editme.apply(me,[e]);},800);})
Note: See TracChangeset for help on using the changeset viewer.