mirror of
https://github.com/jaywcjlove/wxmp.git
synced 2026-01-12 08:18:49 +08:00
feat: add electron app.
This commit is contained in:
27
website/src/commands/css.tsx
Normal file
27
website/src/commands/css.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { NavLink } from 'react-router-dom';
|
||||
import { ICommand } from '@uiw/react-markdown-editor';
|
||||
import styled from 'styled-components';
|
||||
|
||||
const Link = styled(NavLink)`
|
||||
font-size: 0.8rem;
|
||||
line-height: 0.8rem;
|
||||
text-decoration: none;
|
||||
padding: 0.18rem 0.3rem;
|
||||
&:hover {
|
||||
color: var(--color-accent-fg);
|
||||
background-color: var(--color-neutral-muted);
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
`;
|
||||
|
||||
export const cssCommand: ICommand = {
|
||||
name: 'previewTtheme',
|
||||
keyCommand: 'previewTtheme',
|
||||
button: () => <Link to="/editor/theme">编辑主题</Link>,
|
||||
};
|
||||
|
||||
export const previousCommand: ICommand = {
|
||||
name: 'previous',
|
||||
keyCommand: 'previous',
|
||||
button: () => <Link to="/">返回</Link>,
|
||||
};
|
||||
Reference in New Issue
Block a user