Skip to content

Instantly share code, notes, and snippets.

@mogproject
Last active April 26, 2024 03:22
Show Gist options
  • Save mogproject/2a87a885d262fb03bf885fd042a70f08 to your computer and use it in GitHub Desktop.
Save mogproject/2a87a885d262fb03bf885fd042a70f08 to your computer and use it in GitHub Desktop.
Custom horizontal layout CSS running with OBS/Discord Streaming Kit.
/*
* Custom horizontal layout CSS running with OBS/Discord Streaming Kit.
*
* Recommended browser size: w2600 x h400
*/
[class*="Voice_voiceStates__"] {
display: flex;
flex-wrap: nowrap;
margin: 32px 2px 2px 2px;
}
[class*="Voice_voiceState__"] {
height: auto;
margin-bottom: 0;
display: flex;
flex-direction: column;
}
[class*="Voice_avatar__"] {
margin-left: 8px;
margin-right: 18px;
width: 180px;
height: 180px;
filter: brightness(35%);
}
img[class*="Voice_avatarSpeaking"] {
filter: brightness(100%);
}
[class*="Voice_user__"] {
margin-left: 16px;
}
[class*="Voice_name__"] {
height: 36px;
width: 174px;
padding: 10px 6px 4px 4px;
box-sizing: border-box;
text-overflow: clip;
white-space: nowrap;
overflow: hidden;
display: block;
text-align: center;
top: -60px;
position: relative;
}
@keyframes speak-border {
0% {
filter: drop-shadow(2px 2px 0px #FFFFFF) drop-shadow(-2px -2px 0px #FFFFFF) drop-shadow(-2px 2px 0px #FFFFFF) drop-shadow(2px -2px 0px #FFFFFF);
}
50% {
filter: drop-shadow(2px 2px 0px #FFFFFF) drop-shadow(-2px -2px 0px #FFFFFF) drop-shadow(-2px 2px 0px #FFFFFF) drop-shadow(2px -2px 0px #FFFFFF);
}
100% {
filter: drop-shadow(2px 2px 0px #FFFFFF) drop-shadow(-2px -2px 0px #FFFFFF) drop-shadow(-2px 2px 0px #FFFFFF) drop-shadow(2px -2px 0px #FFFFFF);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment