Created
December 25, 2017 23:08
-
-
Save FlyInk13/abc5144f099d7ca7d45b66bb660f8564 to your computer and use it in GitHub Desktop.
Закрепленные диалоги ВКонтакте на CSS
This file contains 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
/** Скрываем флудилки, если надо тыкнут **/ | |
/** data-list-id - peer_id **/ | |
[data-list-id="2000000069"], [data-list-id="2000000159"], [data-list-id="2000000137"] { display: none; } | |
/** FLEX-BOX для списка диалогов **/ | |
#im_dialogs .ui_scroll_content{ | |
display: flex; | |
flex-direction: column; | |
} | |
/** border fix **/ | |
.nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected+.nim-dialog{ | |
border-top-color: transparent; | |
} | |
.nim-dialog:not(.nim-dialog_deleted).nim-dialog_selected+.nim-dialog .nim-dialog--content{ | |
border-top-color: #e7e8ec; | |
} | |
/** Устанавливаем порядок, чем ниже число, тем выше пин **/ | |
/** box-shadow - как украшение, можно заменить **/ | |
[data-list-id="-131851952"]{ order: -4; box-shadow: inset 2px 0px 0px #224B7A;} | |
[data-list-id="2000000172"]{ order: -3; box-shadow: inset 2px 0px 0px #224B7A;} | |
[data-list-id="2000000088"]{ order: -2; box-shadow: inset 2px 0px 0px #224B7A;} | |
[data-list-id="2000000093"]{ order: -1; box-shadow: inset 2px 0px 0px #224B7A;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment