From 976bda83dbfe207a29bf6c3a6fe72ceed75cd98f Mon Sep 17 00:00:00 2001 From: PayBas Date: Thu, 29 May 2014 17:16:37 +0200 Subject: [PATCH] [ticket/12608] Improved LTR and various bugfixes PHPBB3-12608 --- .../notification/type/disapprove_post.php | 10 +++++++ .../notification/type/disapprove_topic.php | 10 +++++++ .../template/notification_dropdown.html | 4 +-- .../prosilver/template/ucp_notifications.html | 3 --- phpBB/styles/prosilver/theme/bidi.css | 26 +++++++++++++++++++ phpBB/styles/prosilver/theme/common.css | 21 ++++++++------- 6 files changed, 59 insertions(+), 15 deletions(-) diff --git a/phpBB/phpbb/notification/type/disapprove_post.php b/phpBB/phpbb/notification/type/disapprove_post.php index c3dbe4e91d..004c484409 100644 --- a/phpBB/phpbb/notification/type/disapprove_post.php +++ b/phpBB/phpbb/notification/type/disapprove_post.php @@ -30,6 +30,16 @@ class disapprove_post extends \phpbb\notification\type\approve_post return 'disapprove_post'; } + /** + * Get the styling of the notification + * + * @return string + */ + public function get_styling() + { + return 'reported'; + } + /** * Language key used to output the text * diff --git a/phpBB/phpbb/notification/type/disapprove_topic.php b/phpBB/phpbb/notification/type/disapprove_topic.php index 2f29bb271e..42ca693f7a 100644 --- a/phpBB/phpbb/notification/type/disapprove_topic.php +++ b/phpBB/phpbb/notification/type/disapprove_topic.php @@ -30,6 +30,16 @@ class disapprove_topic extends \phpbb\notification\type\approve_topic return 'disapprove_topic'; } + /** + * Get the styling of the notification + * + * @return string + */ + public function get_styling() + { + return 'reported'; + } + /** * Language key used to output the text * diff --git a/phpBB/styles/prosilver/template/notification_dropdown.html b/phpBB/styles/prosilver/template/notification_dropdown.html index 4aebeb16a8..13d90a9d38 100644 --- a/phpBB/styles/prosilver/template/notification_dropdown.html +++ b/phpBB/styles/prosilver/template/notification_dropdown.html @@ -18,9 +18,9 @@ -
  • +
  • - + {notifications.AVATAR} diff --git a/phpBB/styles/prosilver/theme/bidi.css b/phpBB/styles/prosilver/theme/bidi.css index f3902b363d..2e563a1edf 100644 --- a/phpBB/styles/prosilver/theme/bidi.css +++ b/phpBB/styles/prosilver/theme/bidi.css @@ -112,6 +112,32 @@ padding-right: 10px; } +.rtl .dropdown-extended .header .header_settings { + float: left; +} + +/* Notifications +----------------------------------------*/ +.rtl .notification_list ul li img { + float: right; + margin-left: 5px; + margin-right: 0; +} + +.rtl .notification_list div.notifications { + margin-left: 0; + margin-right: 50px; +} + +.rtl .notification_text { + margin-left: 0; + margin-right: 58px; +} + +.rtl .notification_list p.notification-time { + text-align: left; +} + /* Responsive breadcrumbs ----------------------------------------*/ .rtl .breadcrumbs .crumb { diff --git a/phpBB/styles/prosilver/theme/common.css b/phpBB/styles/prosilver/theme/common.css index 75ae7ae59d..05eeee8849 100644 --- a/phpBB/styles/prosilver/theme/common.css +++ b/phpBB/styles/prosilver/theme/common.css @@ -1115,7 +1115,7 @@ form > p.post-notice strong { .dropdown-extended ul li { padding: 0; - margin: 0; + margin: 0 !important; float: none; border-bottom: 1px solid; list-style-type: none; @@ -1160,8 +1160,8 @@ form > p.post-notice strong { font-size: 1.1em; } -.dropdown-extended ul li a{ - padding: 10px; +.dropdown-extended ul li a, .dropdown-extended ul li.no-url { + padding: 8px; } .dropdown-extended .footer > a { @@ -1173,10 +1173,6 @@ form > p.post-notice strong { text-decoration: none; } -.notification_list a.notification-block { - padding: 8px; -} - .notification_list ul li img { float: left; max-height: 50px; @@ -1193,22 +1189,27 @@ form > p.post-notice strong { .notification_list p.notification-reference, .notification_list p.notification-location, -.notification_list a.notification-block p.notification-reason { +.notification_list li a p.notification-reason { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .notification_list p.notification-time { - font-size: 0.9em; + font-size: 10px; margin: 0; text-align: right; } .notification_list div.notifications { + margin-left: 50px; padding: 5px; } +.notification_list div.notifications a { + display: block; +} + .notification_list p.notifications_title { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; font-size: 13px !important; @@ -1219,7 +1220,7 @@ form > p.post-notice strong { } .notification_list p.notifications_time { - font-size: 11px !important; + font-size: 10px !important; } .notification_text {