gristlabs_grist-core/app/client/ui/ShortcutKey.ts
George Gevoian 01fbe871aa (core) Add April Fools easter egg
Summary: What happens when you type "rr" instead of "r" in an anchor link's row number?

Test Plan: Browser tests.

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3829
2023-03-27 14:12:52 -04:00

26 lines
645 B
TypeScript

import {theme} from 'app/client/ui2018/cssVars';
import {styled} from 'grainjs';
export const ShortcutKeyContent = styled('span', `
font-style: normal;
font-family: inherit;
color: ${theme.shortcutKeyPrimaryFg};
`);
export const ShortcutKeyContentStrong = styled(ShortcutKeyContent, `
font-weight: 700;
`);
export const ShortcutKey = styled('div', `
display: inline-block;
padding: 2px 5px;
border-radius: 4px;
margin: 0px 2px;
border: 1px solid ${theme.shortcutKeyBorder};
color: ${theme.shortcutKeyFg};
background-color: ${theme.shortcutKeyBg};
font-family: inherit;
font-style: normal;
white-space: nowrap;
`);