Dotclear


Ignore:
Timestamp:
01/27/18 11:59:30 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Switch from jQuery background fade plugin to CSS3 animation (plugin removed from distribution)

Location:
admin/style
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default.css

    r3678 r3685  
    11891189  text-transform: none; } 
    11901190 
     1191.missing { 
     1192  background-color: inherit; 
     1193  animation-name: kf-missing; 
     1194  animation-duration: 1s; } 
     1195 
     1196@keyframes kf-missing { 
     1197  0% { 
     1198    background-color: inherit; } 
     1199  50% { 
     1200    background-color: #ffbaba; } 
     1201  100% { 
     1202    background-color: inherit; } } 
    11911203.no-more-info { 
    11921204  display: none; } 
     
    14871499 
    14881500.error { 
    1489   background: #FFBABA url(msg-error.png) no-repeat 0.7em 0.7em; 
    1490   color: #000; } 
    1491  
     1501  background: #ffbaba url(msg-error.png) no-repeat 0.7em 0.7em; 
     1502  color: #000; 
     1503  animation-name: kf-error; 
     1504  animation-duration: .5s; } 
     1505 
     1506@keyframes kf-error { 
     1507  0% { 
     1508    background-color: #fefacd; } 
     1509  100% { 
     1510    background-color: #ffbaba; } } 
    14921511.message, 
    14931512.static-msg { 
     
    14951514  color: #fff; } 
    14961515 
     1516.message { 
     1517  animation-name: kf-message; 
     1518  animation-duration: .5s; } 
     1519 
     1520@keyframes kf-message { 
     1521  0% { 
     1522    background-color: #ccc; } 
     1523  100% { 
     1524    background-color: #676e78; } } 
    14971525.message a, 
    14981526.static-msg a, 
     
    15061534 
    15071535.success { 
    1508   background: #9bca1c url(msg-success.png) no-repeat 0.7em 0.7em; } 
    1509  
     1536  background: #bee74b url(msg-success.png) no-repeat 0.7em 0.7em; 
     1537  animation-name: kf-success; 
     1538  animation-duration: .5s; } 
     1539 
     1540@keyframes kf-success { 
     1541  0% { 
     1542    background-color: #9bca1c; } 
     1543  100% { 
     1544    background-color: #bee74b; } } 
    15101545.warning-msg { 
    15111546  background: #ffd478 url(msg-warning.png) no-repeat 0.7em 0.7em; 
    1512   border: 1px solid #ffd478; } 
    1513  
     1547  border: 1px solid #ffd478; 
     1548  animation-name: kf-warning; 
     1549  animation-duration: .5s; } 
     1550 
     1551@keyframes kf-warning { 
     1552  0% { 
     1553    background-color: #fefacd; } 
     1554  100% { 
     1555    background-color: #ffd478; } } 
    15141556.success a, 
    15151557.warning-msg a, 
     
    31993241  border: 1px solid #ccc; } 
    32003242 
    3201 /* fadings ('color' est utilisé comme variable, pas comme text color) */ 
    3202 .colorBeginPassword, 
    3203 .colorBeginValidatorErr, 
    3204 .colorBeginUserMail { 
    3205   color: #fff; } 
    3206  
    3207 .colorEndPassword, 
    3208 .colorEndError, 
    3209 .colorEndValidatorErr, 
    3210 .colorEndUserMail { 
    3211   color: #ffbaba; } 
    3212  
    3213 .colorBeginMessage { 
    3214   color: #ccc; } 
    3215  
    3216 .colorEndMessage, 
    3217 .colorBeginValidatorMsg { 
    3218   color: #676e78; } 
    3219  
    3220 .colorBeginError { 
    3221   color: #fefacd; } 
    3222  
    3223 .colorBeginSuccess { 
    3224   color: #9BCA1C; } 
    3225  
    3226 .colorEndSuccess { 
    3227   color: #bee74b; } 
    3228  
    3229 .colorEndValidatorMsg { 
    3230   color: #ffcc00; } 
    3231  
    32323243/* ------------------------------------------------------------------------------------ 
    32333244                                                                           UN POIL DE MEDIA QUERIES 
  • admin/style/scss/partials/_forms.scss

    r3639 r3685  
    245245} 
    246246 
     247.missing { 
     248  background-color: inherit; 
     249  animation-name: kf-missing; 
     250  animation-duration: 1s; 
     251} 
     252@keyframes kf-missing { 
     253  0% { 
     254    background-color: inherit; 
     255  } 
     256  50% { 
     257    background-color: #ffbaba; 
     258  } 
     259  100% { 
     260    background-color: inherit; 
     261  } 
     262} 
     263 
    247264// .more-info Additional information on fieldset, field, … (may be hide from user-prefs) 
    248265.more-info {} 
  • admin/style/scss/partials/_messages.scss

    r3638 r3685  
    6060 
    6161.error { 
    62      background: #FFBABA url(msg-error.png) no-repeat .7em .7em; 
     62     background: #ffbaba url(msg-error.png) no-repeat .7em .7em; 
    6363     color: #000; 
     64  animation-name: kf-error; 
     65  animation-duration: .5s; 
     66} 
     67@keyframes kf-error { 
     68  0% { 
     69    background-color: #fefacd; 
     70  } 
     71  100% { 
     72    background-color: #ffbaba; 
     73  } 
    6474} 
    6575 
     
    6878     background: #676e78 url(msg-std.png) no-repeat .7em .7em; 
    6979     color: #fff; 
     80} 
     81.message { 
     82  animation-name: kf-message; 
     83  animation-duration: .5s; 
     84} 
     85@keyframes kf-message { 
     86  0% { 
     87    background-color: #ccc; 
     88  } 
     89  100% { 
     90    background-color: #676e78; 
     91  } 
    7092} 
    7193 
     
    83105 
    84106.success { 
    85      background: #9bca1c url(msg-success.png) no-repeat .7em .7em; 
     107     background: #bee74b url(msg-success.png) no-repeat .7em .7em; 
     108  animation-name: kf-success; 
     109  animation-duration: .5s; 
     110} 
     111@keyframes kf-success { 
     112  0% { 
     113    background-color: #9bca1c; 
     114  } 
     115  100% { 
     116    background-color: #bee74b; 
     117  } 
    86118} 
    87119 
     
    89121     background: #ffd478 url(msg-warning.png) no-repeat .7em .7em; 
    90122     border: 1px solid #ffd478; 
     123  animation-name: kf-warning; 
     124  animation-duration: .5s; 
     125} 
     126@keyframes kf-warning { 
     127  0% { 
     128    background-color: #fefacd; 
     129  } 
     130  100% { 
     131    background-color: #ffd478; 
     132  } 
    91133} 
    92134 
  • admin/style/scss/partials/_utils.scss

    r3439 r3685  
    1414     border: 1px solid #ccc; 
    1515} 
    16  
    17  
    18 /* fadings ('color' est utilisé comme variable, pas comme text color) */ 
    19  
    20 .colorBeginPassword, 
    21 .colorBeginValidatorErr, 
    22 .colorBeginUserMail { 
    23      color: #fff; 
    24 } 
    25  
    26 .colorEndPassword, 
    27 .colorEndError, 
    28 .colorEndValidatorErr, 
    29 .colorEndUserMail { 
    30      color: #ffbaba; 
    31 } 
    32  
    33 .colorBeginMessage { 
    34      color: #ccc; 
    35 } 
    36  
    37 .colorEndMessage, 
    38 .colorBeginValidatorMsg { 
    39      color: #676e78; 
    40 } 
    41  
    42 .colorBeginError { 
    43      color: #fefacd; 
    44 } 
    45  
    46 .colorBeginSuccess { 
    47      color: #9BCA1C; 
    48 } 
    49  
    50 .colorEndSuccess { 
    51      color: #bee74b; 
    52 } 
    53  
    54 .colorEndValidatorMsg { 
    55      color: #ffcc00; 
    56 } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map