More style shuffling
This commit is contained in:
@@ -11,22 +11,27 @@
|
||||
|
||||
.notification {
|
||||
position: absolute;
|
||||
background-color: #eee;
|
||||
border-radius: 6px;
|
||||
border: solid 1px #ccc;
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 40ch;
|
||||
padding: 4px;
|
||||
bottom: 0;
|
||||
border-radius: 6px;
|
||||
|
||||
color: black;
|
||||
|
||||
&:visited {
|
||||
& .notification--content {
|
||||
border-radius: 6px;
|
||||
background-color: #eee;
|
||||
border: solid 1px black;
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: 40ch;
|
||||
color: black;
|
||||
|
||||
&:visited {
|
||||
color: black;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
transform: translateY(var(--offset));
|
||||
z-index: var(--z-index);
|
||||
transition: transform 0.2s;
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<%= notification_tag notification do %>
|
||||
<div class="avatar txt-small">
|
||||
<%= avatar_image_tag(notification.creator) %>
|
||||
</div>
|
||||
<div class="notification--content shadow">
|
||||
<div class="avatar txt-small">
|
||||
<%= avatar_image_tag(notification.creator) %>
|
||||
</div>
|
||||
|
||||
<%= notification.body %>
|
||||
<%= notification.body %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user