Skip to content

Instantly share code, notes, and snippets.

@mfakane
Created March 31, 2020 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mfakane/05e8de874857a5631e267e8a2c1cf0d4 to your computer and use it in GitHub Desktop.
Save mfakane/05e8de874857a5631e267e8a2c1cf0d4 to your computer and use it in GitHub Desktop.
BetterDiscord 向けの、チャンネル一覧とメンバー一覧を折りたたんでマウスオーバーで展開するカスタム CSS
.sidebar-2K8pFh {
width: 64px;
transition: all 0.25s ease;
}
.sidebar-2K8pFh:hover {
width: 240px;
}
.panel-24C3ux, .container-3baos1, .container-1giJp5 {
padding-left: 16px;
}
.actions-aUdUfC {
display: none;
}
.sidebar-2K8pFh:hover .actions-aUdUfC {
display: block;
}
.list-2bwCXU {
padding-left: 18px;
transition: all 0.25s ease;
}
.sidebar-2K8pFh:hover .list-2bwCXU {
padding-left: 32px;
}
.membersWrap-2h-GB4 {
width: 60px;
min-width: 60px;
transition: all 0.25s ease;
}
.membersWrap-2h-GB4 .members-1998pB {
width: 60px;
transition: all 0.25s ease;
}
.membersWrap-2h-GB4:hover {
width: 240px;
}
.membersWrap-2h-GB4:hover .members-1998pB {
width: 240px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment