mirror of
https://github.com/outline/outline.git
synced 2026-12-04 02:20:17 +03:00
* fix: Vertically center text in large buttons on mobile * fix: Use mobile touch target height for large buttons
24 lines
488 B
TypeScript
24 lines
488 B
TypeScript
import styled from "styled-components";
|
|
import { breakpoint } from "@shared/styles/breakpoint";
|
|
import { MOBILE_TOUCH_TARGET } from "@shared/constants";
|
|
import Button, { Inner } from "./Button";
|
|
|
|
const ButtonLarge = styled(Button)`
|
|
height: 40px;
|
|
|
|
${Inner} {
|
|
padding: 0 16px;
|
|
min-height: 40px;
|
|
}
|
|
|
|
${breakpoint("mobile", "tablet")`
|
|
height: ${MOBILE_TOUCH_TARGET}px;
|
|
|
|
${Inner} {
|
|
min-height: ${MOBILE_TOUCH_TARGET}px;
|
|
}
|
|
`};
|
|
`;
|
|
|
|
export default ButtonLarge;
|