Created
December 17, 2022 13:19
-
-
Save Brybry16/5f0450644a75a6934b32ddec77f754f1 to your computer and use it in GitHub Desktop.
Discord Squared Horizontal Overlay
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
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; | |
} |
Centered version with content in 1 line
This version automatically centers the squares on the page and ensure that name is on 1 line only
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;
justify-content: center;
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;
overflow: hidden;
margin-top: 3px;
padding: 0 5px;
white-space: nowrap;
text-overflow: ellipsis;
width: 90px;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Centered version
This version automatically centers the squares on the page