mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
28 lines
606 B
TypeScript
28 lines
606 B
TypeScript
import styled from "styled-components";
|
|
import { s, truncateMultiline } from "@shared/styles";
|
|
import Text from "~/components/Text";
|
|
|
|
/**
|
|
* Highlighted text associated with a comment.
|
|
*/
|
|
export const HighlightedText = styled(Text).attrs({ size: "small" })`
|
|
position: relative;
|
|
color: ${s("textSecondary")};
|
|
padding: 0 8px;
|
|
margin: 4px 0;
|
|
display: inline-block;
|
|
|
|
${truncateMultiline(3)}
|
|
|
|
&:after {
|
|
content: "";
|
|
width: 2px;
|
|
position: absolute;
|
|
inset-inline-start: 0;
|
|
top: 2px;
|
|
bottom: 2px;
|
|
background: ${s("commentMarkBackground")};
|
|
border-radius: 2px;
|
|
}
|
|
`;
|