Dotclear

Changeset 3544:011c315781e3


Ignore:
Timestamp:
06/16/17 11:22:12 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Better way to cope with close button for messages

Location:
admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • admin/js/common.js

    r3518 r3544  
    563563 
    564564     $('p.success,p.warning,p.error,div.error').each(function () { 
     565          $(this).addClass('close-notice-parent'); 
    565566          $(this).append('<button class="close-notice" type="button"><img src="images/close.png" alt="'+dotclear.msg.close_notice+'" /></button>'); 
    566567     }); 
  • admin/style/default.css

    r3517 r3544  
    14881488  color: #333; } 
    14891489 
     1490.close-notice-parent { 
     1491  display: flex; 
     1492  justify-content: space-between; } 
     1493 
    14901494.close-notice { 
    1491   float: right; 
    14921495  background: none; 
    14931496  border: none; 
     
    14971500  .close-notice:hover, .close-notice:focus { 
    14981501    background: none; } 
    1499  
    1500 div.error { 
    1501   position: relative; } 
    1502   div.error .close-notice { 
    1503     display: block; 
    1504     position: absolute; 
    1505     top: 1em; 
    1506     right: 1em; } 
    15071502 
    15081503.dc-update { 
  • admin/style/scss/partials/_messages.scss

    r3513 r3544  
    9797} 
    9898 
     99.close-notice-parent { 
     100     display: flex; 
     101     justify-content: space-between; 
     102} 
    99103.close-notice { 
    100      float: right; 
    101104     background: none; 
    102105     border:   none; 
     
    106109     &:hover, &:focus { 
    107110          background: none; 
    108      } 
    109 } 
    110 div.error { 
    111      position: relative; 
    112      .close-notice { 
    113           display: block; 
    114           position: absolute; 
    115           top: 1em; 
    116           right: 1em; 
    117111     } 
    118112} 
Note: See TracChangeset for help on using the changeset viewer.

Sites map