Files
chatrd/css/app.css
2025-06-02 21:34:43 -03:00

858 lines
17 KiB
CSS

/* Basic reset and styling */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.sn-notify-outline { --sn-notify-background-color: #27272a; }
.sn-notify-outline .sn-notify-title { --sn-notify-title-color: #FFFFFF; }
.sn-notify-outline .sn-notify-text { --sn-notify-text-color: rgba(255,255,255,0.5); }
/* Full-page container styling */
html {
width: 100vw;
height: 100vh;
font-family: "Inter", sans-serif;
scroll-behavior: smooth;
overflow-wrap: break-word;
}
body {
height: 100%;
overflow: hidden;
}
#container {
height: 100%;
display: flex;
flex-direction: column;
}
.wrapper {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
#chat {
flex: 1;
display: flex;
flex-direction: column-reverse; /* conteúdo começa no fundo */
overflow-y: auto;
padding: 10px;
scrollbar-color: #555 #1e1e1e;
}
#chat.noscrollbar {
overflow-y: hidden;
}
#chat::-webkit-scrollbar { width: 8px; }
#chat::-webkit-scrollbar-track { background: #1e1e1e; }
#chat::-webkit-scrollbar-thumb { background-color: #555; border-radius: 4px; border: 2px solid #1e1e1e; }
#chat::-webkit-scrollbar-thumb:hover { background-color: #777; }
#chat .message {
position: relative;
color: #FFF;
font-size: 18px;
line-height: 150%;
text-shadow: 2px 2px 2px rgba(0,0,0,0.75);
transition: all ease-in-out 300ms;
margin: 5px 0;
padding-bottom: 4px;
border-radius: 5px;
}
#chat .message:not(.event):hover {
background: #1a1a1a;
}
#chat .message img {
height: 22px;
vertical-align: middle;
}
#chat .message.bigger-emojis img.emote {
height: 32px;
}
#chat .message .text img.gigantify {
height: 84px !important;
display: block;
margin: 10px 0 5px 0;
}
#chat .message .user { font-weight: bold; }
#chat .message .time {
display: inline-block;
background: rgba(0,0,0,0.5);
font-size: 12px;
padding: 0px 10px;
border-radius: 5px;
}
#chat .message .avatar {
display: inline-block;
position: relative;
margin: 2px 0px;
width: 28px;
height: 28px;
overflow: hidden;
border-radius: 100px;
transform: translateY(11px);
}
#chat .message .avatar img {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
height: 28px;
}
#chat .message .platform {
display: inline-flex;
justify-content: center;
align-items: center;
width: 24px;
height: 24px;
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.25));
transform: translateY(6px);
}
#chat .message .badges i {
display: inline-flex;
justify-content: center;
align-items: center;
background: #000;
width: 24px;
height: 24px;
font-size: 12px;
border-radius: 5px;
margin: 0 5px 0 0;
text-shadow: 2px 2px 2px rgba(0,0,0,0.25);
}
#chat .message .reply {
max-width: 100%;
flex-basis: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
font-size: 14px;
color: #999;
}
#chat .message .reply i {
transform: rotate(90deg);
margin: 0 5px;
}
#chat .message .shared {
max-width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
display: block;
text-shadow: none;
font-size: 14px;
margin: 10px 0 -5px 0;
color: #999;
}
#chat .message .shared i {
margin: 0 3px;
}
#chat .message.event {
text-shadow: 2px 2px 2px rgba(0,0,0,0.25);
font-size: 16px;
}
#chat .message.event .platform {
transform: translateY(0px);
margin: 0px 5px 0 0;
}
#chat .message.event > div {
padding: 5px 15px 5px 5px;
margin: 2px 0 0 0;
border-radius: 5px;
background: rgba(0,0,0,0.15);
display: inline-flex;
align-items: flex-start;
}
#chat .message:not(.event) > div {
margin-top: -10px;
}
#chat .message.twitch .shared span {
display: inline-block;
border-radius: 5px;
padding: 2px 10px 2px 5px;
background: rgba(169,112,255,0.85);
background: linear-gradient(180deg, rgba(169,112,255,0.85) 0%, rgba(95,67,138,0.85) 100%);
color: #fff;
}
#chat .message.twitch.first-message > div {
background: rgba(18,18,18,0.5);
background: linear-gradient(180deg, rgba(18,18,18,0.5) 1%, rgba(0,0,0,0.5) 100%);
padding: 0px 15px 13px 15px;
border-radius: 10px;
display: inline-block;
}
#chat .message.twitch.first-message > div .first-chatter {
display: inline-block;
}
#chat .message.twitch .badges img { margin: 0 2px; }
#chat .message.twitch.event > div {
background: rgba(169,112,255,0.85);
background: linear-gradient(180deg, rgba(169,112,255,0.85) 0%, rgba(95,67,138,0.85) 100%);
}
#chat .message.twitch.announcement > div {
padding: 10px 15px 13px 10px;
display: inline-block;
border-bottom: 2px solid #ffcc00;
background: rgba(18,18,18,0.85);
background: linear-gradient(180deg, rgba(18,18,18,0.85) 1%, rgba(0,0,0,0.85) 100%);
}
#chat .message.twitch.announcement .reply {
padding: 2px;
color: #ffcc00;
}
#chat .message.twitch.announcement .reply i {
transform: rotate(0deg);
}
#chat .message.twitch.announcement .platform {
transform: translateY(6px);
margin: 0;
}
#chat .message.twitch.rewards-redemption > div {
padding: 10px 15px 13px 10px;
display: inline-block;
border-bottom: 2px solid #ffcc00;
background: rgba(18,18,18,0.85);
background: linear-gradient(180deg, rgba(18,18,18,0.85) 1%, rgba(0,0,0,0.85) 100%);
}
#chat .message.twitch.rewards-redemption .reply {
padding: 2px;
color: #FFF;
}
#chat .message.twitch.rewards-redemption .reply i {
transform: rotate(0deg);
color: #ffcc00;
}
#chat .message.twitch.rewards-redemption .platform {
transform: translateY(6px);
margin: 0;
}
#chat .message.youtube.event .platform { color: #FFF; }
#chat .message.youtube.event > div {
background: rgba(255,0,0,0.85);
background: linear-gradient(180deg, rgba(255,0,0,0.85) 1%, rgba(136,0,0,0.85) 100%);
}
#chat .message.youtube.owner .user {
background: #ffd600;
color: #121212 !important;
border-radius: 5px;
padding: 2px 5px;
margin-right: 5px;
text-shadow: 2px 2px 2px rgba(0,0,0,0);
}
#chat .message.youtube.owner .badges i.fa-solid.fa-video { background: #ff0000 }
#chat .message.youtube.mod .user { color: #5e84f1 !important; }
#chat .message.youtube.mod .badges i.fa-solid.fa-wrench { background: #5e84f1 }
#chat .message.youtube.sub .user { color: #2ba640 !important; }
#chat .message.youtube.sub .badges i.fa-solid.fa-star { background: #2ba640; }
#chat .message.youtube .badges i.fa-solid.fa-check { background: #999; }
#chat .message.youtube.event.supersticker > div .platform { order: 1; }
#chat .message.youtube.event.supersticker > div .sticker {
order: 2;
width: 48px;
height: 48px;
filter: drop-shadow(0px 0px 6px rgba(0,0,0,1));
padding: 5px 10px 5px 0;
}
#chat .message.youtube.event.supersticker > div .sticker img {
width: 100%;
height: 100%;
}
#chat .message.youtube.event.supersticker > div .info { order: 3; }
#chat .message.youtube.event.supersticker.giantsupersticker > div {
flex-wrap: wrap;
}
#chat .message.youtube.event.supersticker.giantsupersticker > div .platform { order: 2; }
#chat .message.youtube.event.supersticker.giantsupersticker > div .sticker {
order: 1;
flex: 0 0 100%;
height: 148px;
text-align: center;
margin: 10px 0;
}
#chat .message.youtube.event.supersticker.giantsupersticker > div .sticker img {
width: 148px;
height: 148px;
}
#chat .message.youtube.event.supersticker.giantsupersticker > div .info { order: 3; }
#chat .message.streamlabs.event > div {
background: rgba(128,245,210,0.85);
background: linear-gradient(180deg, rgba(128,245,210,0.85) 1%, rgba(8,108,78,0.85) 100%);
}
#chat .message.streamelements.event > div {
background: rgba(39,0,255,0.85);
background: linear-gradient(180deg, rgba(39,0,255,0.85) 1%, rgba(13,0,88,0.85) 100%);
}
#chat .message.tiktok.event > div {
background: rgba(255,0,80,0.85);
background: linear-gradient(180deg, rgba(255,0,80,0.85) 1%, rgba(120,0,38,0.85) 100%);
}
#chat .message.tiktok.mod .badges i.fa-solid.fa-wrench {
background: #121212;
}
#chat .message.kick .badges svg {
width: 20px;
transform: translateY(4px);
}
#chat .message.kick .badges i.sub {
margin: 0;
color: #48d415;
}
#chat .message.kick.event > div {
background: #48d415;
background: linear-gradient(180deg,rgba(72, 212, 21, 1) 0%, rgba(39, 145, 0, 1) 100%);
}
#chat .message.patreon.event > div {
background: #ff5900;
background: linear-gradient(180deg,rgba(255, 89, 0, 1) 0%, rgba(199, 70, 0, 1) 100%);
}
#chat .message.tipeeestream.event > div {
background: #E02F44;
background: linear-gradient(180deg,rgba(224, 47, 68, 1) 0%, rgba(140, 35, 47, 1) 100%);
}
#chat .message.kofi.event > div {
background: #72A5F2;
background: linear-gradient(180deg,rgba(114, 165, 242, 1) 0%, rgba(81, 115, 166, 1) 100%);
}
#chat .message.fourthwall.event.order > div .platform { order: 1; }
#chat .message.fourthwall.event.order > div .image {
order: 2;
width: max-content;
height: 72px;
filter: drop-shadow(0px 0px 6px rgba(0,0,0,0.25));
padding: 5px 10px 5px 0;
}
#chat .message.fourthwall.event.order > div .image img {
width: max-content;
height: 100%;
border-radius: 5px;
}
#chat .message.fourthwall.event.order > div .info { order: 3; }
#chat .message.fourthwall.event.order.giantimage > div {
flex-wrap: wrap;
}
#chat .message.fourthwall.event.order.giantimage > div .platform { order: 2; }
#chat .message.fourthwall.event.order.giantimage > div .image {
order: 1;
flex: 0 0 100%;
height: 202px;
text-align: center;
margin: 10px 0;
}
#chat .message.fourthwall.event.order.giantimage > div .image img {
width: max-content;
height: 192px;
}
#chat .message.fourthwall.event.order.giantimage > div .info { order: 3; }
#chat .message.fourthwall.event > div {
background: #0044ff;
background: linear-gradient(180deg,rgba(0, 68, 255, 1) 0%, rgba(0, 47, 176, 1) 100%);
}
.wrapper.horizontal {
align-items: flex-end;
}
.wrapper.horizontal #chat {
flex-direction: row-reverse;
align-items: flex-end;
gap: 15px;
width: max-content;
}
.wrapper.horizontal #chat .message {
width: 0;
white-space: nowrap
}
.wrapper.horizontal #chat .message > div {
width: fit-content;
}
#chat .message.twitch:hover .chatmoderation.twitch {
display: block;
}
#chat .message .chatmoderation {
display: none;
position: absolute;
top: 0;
right: 0;
padding: 2px 3px;
background: #262626;
border-radius: 5px;
transition: all ease-in-out 300ms;
}
#chat .message .chatmoderation button {
background: none;
border: none;
color: #FFF;
cursor: pointer;
font-size: 18px;
padding: 5px;
transition: all ease-in-out 300ms;
margin: 0 3px;
}
#chat .message .chatmoderation {
color: #ffcc00;
}
#chat .message.twitch:hover .chatmoderation.twitch {
display: block;
}
#chat .message.youtube:hover .chatmoderation.youtube {
display: block;
}
#chat .message.streamer .chatmoderation button:nth-child(2),
#chat .message.streamer .chatmoderation button:nth-child(3),
#chat .message.owner .chatmoderation {
display: none;
}
#chat-input {
padding: 15px 10px;
position: relative;
display: none;
}
#chat-input.enabled {
display: block;
width: 100%;
}
#chat-input input[type=text] {
font-family: "Inter", sans-serif;
border: none;
background: #222;
color: #FFF;
padding: 10px 90px 10px 15px;
border-radius: 10px;
outline: none;
font-size: 16px;
width: 100%;
transition: all ease-in-out 300ms;
}
#chat-input button {
background: none;
border: none;
color: #FFF;
cursor: pointer;
font-size: 18px;
padding: 5px;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
#chat-input button.active,
#chat-input button:hover {
color: #ffcc00;
}
#chat-input #chat-input-settings i {
transition: all ease-in-out 300ms;
}
#chat-input #chat-input-send {
right: 60px;
}
#chat-input #chat-input-settings {
right: 20px;
}
#chat-input #chat-input-settings.active i {
transform: rotate(60deg);
}
#chat-input .settings {
display: none;
background: #0c0c0c;
padding: 5px 10px;
border-radius: 100px;
position: absolute;
top: -40px;
right: 0px;
z-index: 11;
box-shadow: 0 0 10px rgba(255,255,255,0.05)
}
#chat-input .settings.active {
display: inline-block;
}
#chat-input .settings::after {
content: "";
position: absolute;
bottom: -10px; /* posiciona fora do balão */
right: 25px; /* onde a pontinha aparece horizontalmente */
width: 0;
height: 0;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
border-top: 10px solid #0c0c0c; /* mesma cor do balão */
}
#chat-input .settings img {
width: 20px;
}
#chat-input .chat-enabler {
display: inline-flex;
padding: 5px;
gap: 5px;
color: #FFF;
font-size: 14px;
align-items: center;
color: #333;
}
#chat-input .settings .switch {
position: relative;
display: inline-block;
width: 40px;
height: 20px;
}
#chat-input .settings .hint {
color: #FFF;
font-size: 18px;
}
#chat-input .settings .hint a {
color: #ffcc00;
font-weight: bold;
}
/* Hide default HTML checkbox */
#chat-input .settings .switch input[type=checkbox] {
opacity: 1;
width: 0;
height: 0;
}
/* The slider */
#chat-input .settings .slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: #CCC;
transition: .4s;
border-radius: 30px;
}
#chat-input .settings .slider:before {
position: absolute;
content: "";
height: 16px;
width: 16px;
border-radius: 16px;
left: 3px;
top: 2px;
bottom: 0;
background-color: white;
transition: .4s;
}
#chat-input .settings input[type=checkbox]:checked + .slider:before {
transform: translateX(19px);
}
#chat-input #twitch input[type=checkbox]:checked + .slider {
background-color: #a970ff;
}
#chat-input #youtube input[type=checkbox]:checked + .slider {
background-color: #FF0000;
}
#chat-input #tiktok input[type=checkbox]:checked + .slider {
background-color: #ff0050;
}
#chat-input #kick input[type=checkbox]:checked + .slider {
background-color: #48d415;
}
#chat-input .settings input[type=checkbox]:checked + .slider {
background-color: #03c4de;
}
#chat-input .setting input[type=checkbox]:disabled + .slider {
background-color: #000 !important;
}
#chat-autocomplete-list {
position: absolute;
bottom: 65px;
left: 10px;
width: calc(100% - 40px);
border-radius: 10px;
background: #222;
color: #FFF;
max-height: 300px;
overflow: hidden;
overflow-y: visible;
font-size: 14px;;
color: #696969;
}
#chat-autocomplete-list::-webkit-scrollbar { width: 10px; }
#chat-autocomplete-list::-webkit-scrollbar-track { background: #1e1e1e; }
#chat-autocomplete-list::-webkit-scrollbar-thumb { background-color: #555; border-radius: 10px; border: 2px solid #1e1e1e; }
#chat-autocomplete-list::-webkit-scrollbar-thumb:hover { background-color: #777; }
#chat-autocomplete-list div {
margin: 5px 10px;
padding: 5px;
border-radius: 5px;
cursor: pointer;
}
#chat-autocomplete-list div.autocomplete-item {
cursor: pointer;
}
#chat-autocomplete-list div:not(.autocomplete-item) {
background: #191919;
color: #FFF;
padding: 10px;
margin: 10px;
}
#chat-autocomplete-list .autocomplete-item strong {
display: block;
}
#chat-autocomplete-list .autocomplete-item:hover,
#chat-autocomplete-list .autocomplete-item.active {
color: #FFF;
background: #292929;
}
#chat-autocomplete-list .autocomplete-item small {
color: #666;
}
#statistics {
position: fixed;
z-index: 11;
width: 100%;
top: 0; left: 0;
padding: 10px;
font-size: 14px;
display: flex;
gap: 15px;
justify-content: flex-end;
backdrop-filter: blur(5px);
font-weight: bold;
-webkit-mask-image: linear-gradient(to top, transparent, black 40%);
mask-image: linear-gradient(to top, transparent, black 40%);
text-shadow: 2px 2px 2px rgba(0,0,0,0.25);
}
#statistics .platform {
background: #000;
color: #FFF;
padding: 5px 10px;
border-radius: 100px;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: nowrap;
}
#statistics .platform i.fa-brands {
margin-right: 5px;
}
#statistics .platform > span {
display: inline-block;
margin: 0 5px;
}
#statistics .platform#twitch {
background: #a970ff;
}
#statistics .platform#youtube {
background: #FF0000;
}
#statistics .platform#tiktok {
background: #ff0050;
}
#statistics .platform#kick {
background: #48d415;
}
#statistics .platform#kick svg {
width: 24px;
fill: #FFF;
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.25));
}
@media (max-width: 768px) {
#statistics {
justify-content: center;
font-size: 12px;
gap: 5px;
text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}
#statistics .platform {
padding: 5px 10px;
text-align: center;
}
#statistics .platform#kick svg {
width: 18px;
filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
}
}