Dotclear

Changeset 3787:24c2472a688c


Ignore:
Timestamp:
07/30/18 09:48:26 (7 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Use css3 flex rather than <br > to vertical align supplemental labels under dashboard icons

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/style/default-dark.css

    r3780 r3787  
    21232123  #icons p { 
    21242124    width: 13em; 
    2125     text-align: center; 
    2126     margin: 1em 0 2em; } 
     2125    margin: 1em 0 2em; 
     2126    display: flex; 
     2127    flex-direction: column; 
     2128    justify-content: flex-start; 
     2129    align-items: center; } 
    21272130  #icons a, #icons a:link, #icons a:visited, #icons a:hover, #icons a:focus { 
    21282131    border-bottom-width: 0; 
  • admin/style/default.css

    r3779 r3787  
    21232123  #icons p { 
    21242124    width: 13em; 
    2125     text-align: center; 
    2126     margin: 1em 0 2em; } 
     2125    margin: 1em 0 2em; 
     2126    display: flex; 
     2127    flex-direction: column; 
     2128    justify-content: flex-start; 
     2129    align-items: center; } 
    21272130  #icons a, #icons a:link, #icons a:visited, #icons a:hover, #icons a:focus { 
    21282131    border-bottom-width: 0; 
  • admin/style/scss/partials/_index.scss

    r3770 r3787  
    1212     p { 
    1313          width: 13em; 
    14           text-align: center; 
    1514          margin: 1em 0 2em; 
     15    display: flex; 
     16    flex-direction: column; 
     17    justify-content: flex-start; 
     18    align-items: center; 
    1619     } 
    1720     a { 
  • plugins/antispam/inc/lib.dc.antispam.php

    r3781 r3787  
    7373        if (($count = self::countSpam($core)) > 0) { 
    7474            $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    75             $icons['comments'][0] .= '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
     75            $icons['comments'][0] .= '</span></a> <a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
    7676            sprintf($str, $count); 
    7777        } 
     
    8282        if (($count = self::countSpam($core)) > 0) { 
    8383            $str = ($count > 1) ? __('(including %d spam comments)') : __('(including %d spam comment)'); 
    84             return '</span></a> <br /><a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
     84            return '</span></a> <a href="' . $core->adminurl->get('admin.comments', array('status' => '-2')) . '"><span class="db-icon-title-spam">' . 
    8585            sprintf($str, $count); 
    8686        } else { 
  • plugins/antispam/js/dashboard.js

    r3786 r3787  
    2828            var icon = $('#dashboard-main #icons p a[href="comments.php"]'); 
    2929            if (icon.length) { 
    30               var xml = ' <br /><a href="comments.php?status=-2"><span class="db-icon-title-spam">' + nb + '</span></a>'; 
     30              var xml = ' <a href="comments.php?status=-2"><span class="db-icon-title-spam">' + nb + '</span></a>'; 
    3131              icon.after(xml); 
    3232            } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map