Last active
September 12, 2021 16:20
-
-
Save kazu0617/f8c253724aa5fc5451cd35da44a0ef7b to your computer and use it in GitHub Desktop.
ズズさんのところで話してた縦でぴょこぴょこするやつ。
This file contains 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
/* 縦にしたいって話してたので下の参考サイトを参考に改変しました。もしよければどうぞ */ | |
/* 右側に置く位置は大体で決めています。もしもう少し右とかの場合はtranslateXの%を、もう少し下の場合はtranslateYの%をそれぞれ調整してください */ | |
/* 参考サイト: https://albalunaweb.net/note/10296.html / https://note.com/protein_daizi/n/n0abb4237680d */ | |
/* 値を利用しやすくしてる定義エリア */ | |
/* discord-avatarsizeは参加者の人数に応じて変更してください */ | |
/* OBS側の設定 "幅"はdiscord-avatarsizeに合わせて調整して下さい */ | |
/* 手元環境だと高さ 1080において、 15人なら38px, 10人なら75px でいい感じになりました */ | |
:root { | |
--discord-avatarsize: 75px; | |
--translateX: 0%; | |
--translateY: 0%; | |
} | |
body { | |
margin: 0px; | |
overflow: hidden; | |
background: transparent; | |
} | |
.voice-container { | |
margin: 0; | |
padding: 1em 0 0 0; | |
} | |
.voice-container .voice-states { | |
padding-left: 0; | |
padding: 0; | |
margin: 0; | |
transform: translateX(var(--translateX)) translateY(var(--translateY)); | |
} | |
.voice-container .voice-states .voice-state { | |
height: var(--discord-avatarsize); | |
margin-bottom: 30px; | |
list-style-type: none; | |
min-width: var(--discord-avatarsize); | |
max-width: var(--discord-avatarsize); | |
} | |
.voice-container .voice-states .voice-state .avatar { | |
height: var(--discord-avatarsize); | |
width: var(--discord-avatarsize); | |
/*border:0 solid transparent;*/ | |
border-radius: 0px; | |
float: none; | |
margin-right: 0px; | |
margin: 0; | |
} | |
/*アバターの大きさと明るさを決めるよ あと線を消してるよ*/ | |
.avatar { | |
height: var(--discord-avatarsize); | |
width: var(--discord-avatarsize); | |
border-radius: 10px !important; | |
filter: brightness(70%); | |
} | |
.voice-container .voice-states .voice-state { | |
border-color: transparent !important; | |
} | |
/*しゃべったときの状態の設定してるよ*/ | |
.speaking { | |
border-color: rgba(0, 255, 0, 0.7) !important; | |
position: relative; | |
animation-name: speak-now; | |
animation-duration: 5000ms; | |
animation-fill-mode: forwards; | |
filter: brightness(100%); | |
} | |
/*しゃべってるときのアニメーションの設定だよ*/ | |
@keyframes speak-now { | |
0% { bottom:0px; } | |
5% { bottom:10px; } | |
10% { bottom:0px; } | |
15% { bottom:10px; } | |
20% { bottom:0px; } | |
25% { bottom:10px; } | |
30% { bottom:0px; } | |
35% { bottom:10px; } | |
40% { bottom:0px; } | |
45% { bottom:10px; } | |
50% { bottom:0px; } | |
55% { bottom:10px; } | |
60% { bottom:0px; } | |
65% { bottom:10px; } | |
70% { bottom:0px; } | |
75% { bottom:10px; } | |
80% { bottom:0px; } | |
85% { bottom:10px; } | |
90% { bottom:0px; } | |
95% { bottom:10px; } | |
100% { bottom:0px; } | |
} | |
.voice-container .voice-states .voice-state .user { | |
padding-top: 0; | |
position: relative; | |
top: 0px; | |
display: inline-block; | |
text-align: center; | |
z-index: 2; | |
min-width: var(--discord-avatarsize); | |
max-width: var(--discord-avatarsize); | |
overflow: hidden; | |
white-space: nowrap; | |
font-size: 12pt !important; | |
background-color: rgba(33, 31, 30, 0.6) !important; | |
} | |
.voice-container .voice-states .voice-state .user .name { | |
font-size: 12pt !important; | |
border: 0; | |
margin: 0; | |
background-color: transparent !important; | |
} |
This file contains 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
/* 縦にしたいって話してたので下の参考サイトを参考に改変しました。もしよければどうぞ */ | |
/* 右側に置く位置は大体で決めています。もしもう少し左とかの場合はtranslateXの%を、もう少し下の場合はtranslateYの%をそれぞれ調整してください */ | |
/* 参考サイト: https://albalunaweb.net/note/10296.html / https://note.com/protein_daizi/n/n0abb4237680d */ | |
/* 値を利用しやすくしてる定義エリア */ | |
/* discord-avatarsizeは参加者の人数に応じて変更してください */ | |
/* OBS側の設定 "幅"はdiscord-avatarsizeに合わせて調整して下さい */ | |
/* 手元環境だと高さ 1080において、 15人なら38px, 10人なら75px でいい感じになりました */ | |
:root { | |
--discord-avatarsize: 75px; | |
--translateX: 93%; | |
--translateY: 0%; | |
} | |
body { | |
margin: 0px; | |
overflow: hidden; | |
background: transparent; | |
} | |
.voice-container { | |
margin: 0; | |
padding: 1em 0 0 0; | |
} | |
.voice-container .voice-states { | |
padding-left: 0; | |
padding: 0; | |
margin: 0; | |
transform: translateX(var(--translateX)) translateY(var(--translateY)); | |
} | |
.voice-container .voice-states .voice-state { | |
height: var(--discord-avatarsize); | |
margin-bottom: 30px; | |
list-style-type: none; | |
min-width: var(--discord-avatarsize); | |
max-width: var(--discord-avatarsize); | |
} | |
.voice-container .voice-states .voice-state .avatar { | |
height: var(--discord-avatarsize); | |
width: var(--discord-avatarsize); | |
/*border:0 solid transparent;*/ | |
border-radius: 0px; | |
float: none; | |
margin-right: 0px; | |
margin: 0; | |
} | |
/*アバターの大きさと明るさを決めるよ あと線を消してるよ*/ | |
.avatar { | |
height: var(--discord-avatarsize); | |
width: var(--discord-avatarsize); | |
border-radius: 10px !important; | |
filter: brightness(70%); | |
} | |
.voice-container .voice-states .voice-state { | |
border-color: transparent !important; | |
} | |
/*しゃべったときの状態の設定してるよ*/ | |
.speaking { | |
border-color: rgba(0, 255, 0, 0.7) !important; | |
position: relative; | |
animation-name: speak-now; | |
animation-duration: 5000ms; | |
animation-fill-mode: forwards; | |
filter: brightness(100%); | |
} | |
/*しゃべってるときのアニメーションの設定だよ*/ | |
@keyframes speak-now { | |
0% { | |
bottom: 0px; | |
} | |
5% { | |
bottom: 10px; | |
} | |
10% { | |
bottom: 0px; | |
} | |
15% { | |
bottom: 10px; | |
} | |
20% { | |
bottom: 0px; | |
} | |
25% { | |
bottom: 10px; | |
} | |
30% { | |
bottom: 0px; | |
} | |
35% { | |
bottom: 10px; | |
} | |
40% { | |
bottom: 0px; | |
} | |
45% { | |
bottom: 10px; | |
} | |
50% { | |
bottom: 0px; | |
} | |
55% { | |
bottom: 10px; | |
} | |
60% { | |
bottom: 0px; | |
} | |
65% { | |
bottom: 10px; | |
} | |
70% { | |
bottom: 0px; | |
} | |
75% { | |
bottom: 10px; | |
} | |
80% { | |
bottom: 0px; | |
} | |
85% { | |
bottom: 10px; | |
} | |
90% { | |
bottom: 0px; | |
} | |
95% { | |
bottom: 10px; | |
} | |
100% { | |
bottom: 0px; | |
} | |
} | |
.voice-container .voice-states .voice-state .user { | |
padding-top: 0; | |
position: relative; | |
top: 0px; | |
display: inline-block; | |
text-align: center; | |
z-index: 2; | |
min-width: var(--discord-avatarsize); | |
max-width: var(--discord-avatarsize); | |
overflow: hidden; | |
white-space: nowrap; | |
font-size: 12pt !important; | |
background-color: rgba(33, 31, 30, 0.6) !important; | |
} | |
.voice-container .voice-states .voice-state .user .name { | |
font-size: 12pt !important; | |
border: 0; | |
margin: 0; | |
background-color: transparent !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment