Last active
November 19, 2022 18:41
-
-
Save chriskirknielsen/fe88f635e3919bc44a507abec818401c to your computer and use it in GitHub Desktop.
Mastodon Expander Composer
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
.columns-area__panels { | |
position: relative; | |
} | |
.columns-area__panels__pane.columns-area__panels__pane--compositional { | |
z-index: 1; /* Ensure the left panel is above the rest */ | |
} | |
.compose-panel { | |
overflow-y: clip; /* We need to alter the overflow-y: hidden to allow expansion, here `clip` allows overflow-x to stay as `visible` */ | |
} | |
.compose-form { | |
/* These properties might change based on settings or which server you're on! */ | |
--bg: hsl(227 15% 12% / 75%); | |
--padding-x: 15px; | |
width: calc(100% - 2 * var(--padding-x, 0px)); /* Calculate its initial width */ | |
transition: all 200ms ease-in-out; | |
} | |
body:has(.emoji-picker-dropdown__menu) .compose-form, | |
.compose-form:focus-within { | |
position: sticky; | |
left: 0; | |
top: 0; | |
width: 200%; | |
background-color: var(--bg); | |
box-shadow: 0 0 0 1rem var(--bg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment