Fix color changing on hover on non-link notifications
IMHO it was really strange to change the color on hover when the element isn't interactive.
This commit is contained in:
@@ -1375,16 +1375,20 @@ form {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notification-link {
|
||||||
|
color: inherit;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: $link;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
p:not(.time) {
|
|
||||||
color: $link;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: "\43";
|
content: "\43";
|
||||||
}
|
}
|
||||||
@@ -1405,7 +1409,6 @@ form {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: $text;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
title: notification.notifiable_title,
|
title: notification.notifiable_title,
|
||||||
body: notification.notifiable_body } %>
|
body: notification.notifiable_body } %>
|
||||||
<% link_text = render "/notifications/notification_body", locals %>
|
<% link_text = render "/notifications/notification_body", locals %>
|
||||||
<%= link_to_if notification.link.present?, link_text, notification.link %>
|
<%= link_to_if notification.link.present?, link_text, notification.link, class: "notification-link" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<p>
|
<p>
|
||||||
<strong>
|
<strong>
|
||||||
|
|||||||
Reference in New Issue
Block a user