mirror of
https://github.com/outline/outline.git
synced 2026-12-04 18:34:54 +03:00
* First pass * Remove prop drilling, fix comment layout * Revert dev:watch to use dev:backend Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
20 lines
360 B
TypeScript
20 lines
360 B
TypeScript
import styled from "styled-components";
|
|
import { hover } from "@shared/styles";
|
|
import SidebarButton from "./SidebarButton";
|
|
|
|
const ToggleButton = styled(SidebarButton)`
|
|
opacity: 0;
|
|
transition: opacity 100ms ease-in-out;
|
|
|
|
&:${hover},
|
|
&:active {
|
|
opacity: 1;
|
|
}
|
|
|
|
[dir="rtl"] & svg {
|
|
transform: scaleX(-1);
|
|
}
|
|
`;
|
|
|
|
export default ToggleButton;
|