Skip to content

Instantly share code, notes, and snippets.

@evtn
Last active September 26, 2021 13:19
Show Gist options
  • Select an option

  • Save evtn/80ff52d00a1936c13631f002f5fe4ebc to your computer and use it in GitHub Desktop.

Select an option

Save evtn/80ff52d00a1936c13631f002f5fe4ebc to your computer and use it in GitHub Desktop.
/* ==UserStyle==
@name VK unread dot
@namespace github.com/evtn
@version 1.0.2
@description Adds a dot to unread messages
@author evtn
==/UserStyle== */
@-moz-document domain("vk.com") {
[dir] .im-mess.im-mess_unread:not(.im-mess_light):not(.im-mess_selected) {
background: transparent;
position: relative;
}
[dir] .im-mess.im-mess_unread:not(.im-mess_light)::before {
background: transparent;
}
[dir] .im-mess.im-mess_unread:not(.im-mess_light):not(.im-mess_selected)::after {
content: "";
background: var(--accent);
width: 8px;
height: 8px;
display: block;
position: absolute;
z-index: -1;
left: -8px;
top: calc(min(50%, 26px) - 4px);
border-radius: 50%;
}
[dir="ltr"] .im-mess.im-mess_unread:not(.im-mess_light):not(.im-mess_selected) > .im-mess--check {
margin-left: -33px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment