Last active
September 26, 2021 13:19
-
-
Save evtn/80ff52d00a1936c13631f002f5fe4ebc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ==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