Skip to content

Instantly share code, notes, and snippets.

@jrburke
Last active May 17, 2017 06:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrburke/258923f9b82cdb9102304f0c4c272a8a to your computer and use it in GitHub Desktop.
Save jrburke/258923f9b82cdb9102304f0c4c272a8a to your computer and use it in GitHub Desktop.
Prevent Atom 1.17 docks from animating their toggle buttons
/*
Choose Atom, Stylesheet... menu to add these to your local style overrides.
These styles only work on the .left and .bottom toggle buttons, but should
be straightforward to copy the .left selectors and adjust for other edges.
*/
.atom-dock-toggle-button:not(.atom-dock-toggle-button-visible) .icon {
opacity: 1;
transition: unset;
}
.atom-dock-toggle-button:not(.atom-dock-toggle-button-visible) .atom-dock-toggle-button-inner.left,
.atom-dock-toggle-button:not(.atom-dock-toggle-button-visible) .atom-dock-toggle-button-inner.bottom {
transform: unset;
}
.atom-dock-toggle-button:not(.atom-dock-toggle-button-visible) .atom-dock-toggle-button-inner {
transition: unset;
}
.atom-dock-toggle-button:not(.atom-dock-toggle-button-visible) {
pointer-events: auto;
}
/////////////////////////////////
/// OR: if you do not want the toggle buttons showing up at all, use this instead:
/////////////////////////////////
.atom-dock-toggle-button .atom-dock-toggle-button-inner.left {
transform: translateX(-50%);
}
.atom-dock-toggle-button .atom-dock-toggle-button-inner.bottom {
transform: translateY(50%);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment