Twitch Custom Styles

Post #551 written by Khodok in Code

Content

Custom Styles

CSS
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
.chat-line__message:not(:is([data-a-user="nightbot"], [data-a-user="fossabot"], [data-a-user="streamelements"], [data-a-user="lumia"], [data-a-user="soundalerts"])):has(
    :is(img[alt='VIP'], img[alt='Moderator'], img[alt='Broadcaster'])
  ):has(.chat-line__message-highlight) {
  border: dashed 1px;
  margin: 4px 10px;
  border-radius: 6px;
  padding-block: 8px;

  & > div {
    margin-inline: -8px;
  }

  &:has(img[alt='VIP']) {
    border-color: #cd2db4;
  }

  &:has(img[alt='Moderator']) {
    border-color: #4daa31;
  }

  &:has(img[alt='Broadcaster']) {
    border-color: #d63628;
  }
}

/*.chat-line__message:has(
    :is(img[alt='VIP'], img[alt='Moderator'], img[alt='Broadcaster'])
  ):has(.chat-line__message-container .tw-svg)  {
  border: 0;
  margin: 0;
  padding-block: 0.5rem;

  & > div {
    margin-inline: 0;
  }
}*/

.chat-line__message[data-a-user="soundalerts"] {
  display: none;
}
    Comments

    Please Log in to leave a comment.

    No comments yet.