Skip to content

Instantly share code, notes, and snippets.

@chriskirknielsen
Last active November 19, 2022 18:41
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 chriskirknielsen/fe88f635e3919bc44a507abec818401c to your computer and use it in GitHub Desktop.
Save chriskirknielsen/fe88f635e3919bc44a507abec818401c to your computer and use it in GitHub Desktop.
Mastodon Expander Composer
.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