mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
* Convert LinkEditor to functional component * Add keyboard navigation * cleanup * Allow pointer selection
27 lines
529 B
TypeScript
27 lines
529 B
TypeScript
import { transparentize } from "polished";
|
|
import styled from "styled-components";
|
|
import { s } from "@shared/styles";
|
|
|
|
const Input = styled.input`
|
|
font-size: 15px;
|
|
background: ${s("inputBorder")};
|
|
color: ${s("text")};
|
|
border-radius: 2px;
|
|
padding: 3px 8px;
|
|
border: 0;
|
|
margin: 0;
|
|
outline: none;
|
|
flex-grow: 1;
|
|
min-width: 0;
|
|
|
|
&::placeholder {
|
|
color: ${(props) => transparentize(0.5, props.theme.text)};
|
|
}
|
|
|
|
@media (hover: none) and (pointer: coarse) {
|
|
font-size: 16px;
|
|
}
|
|
`;
|
|
|
|
export default Input;
|