mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 11:52:44 +08:00
FEATURE: correct :visited styling for logged on users
This commit is contained in:
parent
0c267e5952
commit
b22c890e4b
|
@ -3,5 +3,7 @@ import registerUnbound from 'discourse/helpers/register-unbound';
|
||||||
registerUnbound('topic-link', function(topic) {
|
registerUnbound('topic-link', function(topic) {
|
||||||
var title = topic.get('fancyTitle');
|
var title = topic.get('fancyTitle');
|
||||||
var url = topic.linked_post_number ? topic.urlForPostNumber(topic.linked_post_number) : topic.get('lastUnreadUrl');
|
var url = topic.linked_post_number ? topic.urlForPostNumber(topic.linked_post_number) : topic.get('lastUnreadUrl');
|
||||||
return new Handlebars.SafeString("<a href='" + url + "' class='title'>" + title + "</a>");
|
|
||||||
|
var extraClass = topic.get('last_read_post_number') === topic.get('highest_post_number') ? " visited" : "";
|
||||||
|
return new Handlebars.SafeString("<a href='" + url + "' class='title" + extraClass + "'>" + title + "</a>");
|
||||||
});
|
});
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
html.anon .topic-list a.title:visited:not(.badge-notification) {color: scale-color($primary, $lightness: 35%);}
|
html.anon .topic-list a.title:visited:not(.badge-notification) {color: scale-color($primary, $lightness: 35%);}
|
||||||
|
.topic-list a.title.visited:not(.badge-notification) {color: scale-color($primary, $lightness: 35%);}
|
||||||
|
|
||||||
.topic-list {
|
.topic-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user