mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/12608] Add styling (CSS class) options to notifications
This will allow different notifications to have different styles PHPBB3-12608
This commit is contained in:
@@ -18,13 +18,13 @@
|
||||
</li>
|
||||
<!-- ENDIF -->
|
||||
<!-- BEGIN notifications -->
|
||||
<li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF -->">
|
||||
<li class="<!-- IF notifications.UNREAD --> bg2<!-- ENDIF --><!-- IF notifications.STYLING --> {notifications.STYLING}<!-- ENDIF -->">
|
||||
<!-- IF notifications.URL -->
|
||||
<a href="<!-- IF notifications.UNREAD -->{notifications.U_MARK_READ}" class="notification-block" data-real-url="{notifications.URL}<!-- ELSE -->{notifications.URL}<!-- ENDIF -->">
|
||||
<!-- ENDIF -->
|
||||
<!-- IF notifications.AVATAR -->{notifications.AVATAR}<!-- ELSE --><img src="{T_THEME_PATH}/images/no_avatar.gif" alt="" /><!-- ENDIF -->
|
||||
<div class="notification_text">
|
||||
<p class="title">{notifications.FORMATTED_TITLE}</p>
|
||||
<p class="notification-title">{notifications.FORMATTED_TITLE}</p>
|
||||
<!-- IF notifications.REFERENCE --><p class="notification-reference">{notifications.REFERENCE}</p><!-- ENDIF -->
|
||||
<!-- IF notifications.FORUM --><p class="notification-forum">{notifications.FORUM}</p><!-- ENDIF -->
|
||||
<!-- IF notifications.REASON --><p class="notification-reason">{notifications.REASON}</p><!-- ENDIF -->
|
||||
|
@@ -65,7 +65,7 @@
|
||||
</ul>
|
||||
<ul class="topiclist cplist two-columns">
|
||||
<!-- BEGIN notification_list -->
|
||||
<li class="row<!-- IF notification_list.UNREAD --> bg3<!-- ELSE --><!-- IF notification_list.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- ENDIF -->">
|
||||
<li class="row<!-- IF notification_list.UNREAD --> bg3<!-- ELSE --><!-- IF notification_list.S_ROW_COUNT is odd --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- ENDIF --><!-- IF notification_list.STYLING --> {notification_list.STYLING}<!-- ENDIF -->">
|
||||
<dl>
|
||||
<dt>
|
||||
<div class="list-inner">
|
||||
|
@@ -235,6 +235,15 @@ p.post-notice.reported:before, p.post-notice.error:before {
|
||||
background-image: url("./images/icon_topic_reported.gif");
|
||||
}
|
||||
|
||||
.notification_list p.notification-time {
|
||||
color: #4C5D77;
|
||||
}
|
||||
|
||||
.notification_list .reported p.notifications_title strong,
|
||||
.notification_list .reported p.notification-title strong {
|
||||
color: #D31141;
|
||||
}
|
||||
|
||||
/*
|
||||
--------------------------------------------------------------
|
||||
Colours and backgrounds for links.css
|
||||
|
@@ -1199,7 +1199,7 @@ form > p.post-notice strong {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.notification_list ul li p.notification-time {
|
||||
.notification_list p.notification-time {
|
||||
font-size: 0.9em;
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
|
Reference in New Issue
Block a user