Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MyAlerts - Change BG Color
#1
So, how to change BG color for read/unread alerts in the popup box? Right now all of them are same color

[Image: b28d93ed4b27722db19732278dfa9ed1.png]

In alerts.css I have:
.usercp_nav_myalerts {
    
}

.usercp_nav_myalerts_delete_all {
  
}

.usercp_nav_myalerts_delete_read {
  
}
.alerts--new a {
  color: red !important;
}

.newAlerts > a {
    color: red !important;
}
ul.panel_links a.myalerts {
    background-position: 0 -180px;
}


Myalerts_headericon:
<li class="alerts {$newAlertsIndicator}">
    <a href="{$mybb->settings['bburl']}/usercp.php?action=alerts" class="myalerts open_modal"
       data-selector="#myalerts_alerts_modal" rel="modal:open"><i class="fas fa-bell"></i>
        ({$mybb->user['unreadAlerts']})</a>
</li>


<div id="myalerts_alerts_modal" style="display: none;">
    <table class="tborder" cellspacing="0">
        <thead>
        <tr>
            <th class="thead" colspan="3">
                <strong>{$lang->myalerts_page_title}</strong>
            </th>
        </tr>
        </thead>
        <tbody>
        {$alerts}
        </tbody>
        <tr>
            <td class="tfoot smalltext" colspan="3">
                <a href="{$mybb->settings['bburl']}/alerts.php">{$lang->myalerts_usercp_nav_alerts}</a>
                <span class="float_right">
                    <a href="{$mybb->settings['bburl']}/alerts.php?action=delete_all&amp;my_post_key={$mybb->post_code}&amp;ret_link={$myalerts_return_link}"
                       onclick="return confirm('{$lang->myalerts_delete_all_confirm}')">{$lang->myalerts_usercp_nav_delete_all}</a>
                </span>
                <br class="clear"/>
                <!-- Clear alerts link goes here... -->
            </td>
        </tr>
    </table>
</div>
Reply
#2
Still need help with this one if anyone can help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)