Skip to content

Instantly share code, notes, and snippets.

@norfair00
Forked from Brybry16/style.css
Created July 27, 2024 20:29
Show Gist options
  • Save norfair00/4483810dad130b892fcc18524d24434d to your computer and use it in GitHub Desktop.
Save norfair00/4483810dad130b892fcc18524d24434d to your computer and use it in GitHub Desktop.
Discord Squared Horizontal Overlay
body {
--width: 100;
--widthPX: calc(var(--width) * 1px);
--height: calc(var(--widthPX) * 1.25);
--nameHeight: calc(var(--height) - var(--widthPX));
--fontSize: calc((var(--widthPX) / 100) * 15);
width: 100%;
overflow: hidden;
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W .Voice_voiceState__OCoZh .Voice_avatar__htiqH.Voice_avatarSpeaking__lE\+4m {
opacity: 1;
filter: grayscale(0%);
outline: calc(var(--widthPX) / 20) solid #43b581;
outline-offset: calc(var(--widthPX) / 20 * -1);
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W {
display: flex;
align-items: center;
padding: 0;
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W .Voice_voiceState__OCoZh {
width: var(--widthPX);
height: var(--height);
margin: 0 5px;
background-color: black;
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.8);
position: relative;
text-align: center;
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W .Voice_voiceState__OCoZh .Voice_avatar__htiqH {
height: var(--widthPX);
width: 100%;
border-radius: 0;
border-width: 0;
opacity: 0.3;
filter: grayscale(100%);
transition: filter 0.15s, opacity 0.15s;
border: 0;
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W .Voice_voiceState__OCoZh .Voice_user__8fGwX {
background-color: #1e2124;
position: absolute;
bottom: 0;
padding: 0;
height: var(--nameHeight);
width: 100%;
}
.Voice_voiceContainer__adk9M .Voice_voiceStates__a121W .Voice_voiceState__OCoZh .Voice_user__8fGwX .Voice_name__TALd9 {
font-size: var(--fontSize) !important;
padding: 0;
margin: 0;
position: relative;
bottom: calc(var(--width) / 8 * -1%);
display: inline-block;
color: white;
line-height: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment