2021-10-27 03:03:38 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import { borderSize, smPaddingX } from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import { colorGrayLighter } from '/imports/ui/stylesheets/styled-components/palette';
|
2022-08-02 06:41:48 +08:00
|
|
|
import { Tabs } from 'react-tabs';
|
|
|
|
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2021-10-27 03:03:38 +08:00
|
|
|
|
|
|
|
const KeyCell = styled.td`
|
|
|
|
border: ${borderSize} solid ${colorGrayLighter};
|
|
|
|
text-align: center;
|
|
|
|
padding: ${smPaddingX};
|
|
|
|
margin: auto;
|
2022-08-02 06:41:48 +08:00
|
|
|
width: 6rem;
|
|
|
|
min-width: 6rem;
|
2021-10-27 03:03:38 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
const DescCell = styled.td`
|
|
|
|
border: ${borderSize} solid ${colorGrayLighter};
|
|
|
|
padding: ${smPaddingX};
|
|
|
|
margin: auto;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ShortcutTable = styled.table`
|
|
|
|
border: ${borderSize} solid ${colorGrayLighter};
|
|
|
|
border-collapse: collapse;
|
2022-08-02 06:41:48 +08:00
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const SettingsTabs = styled(Tabs)`
|
|
|
|
display: flex;
|
|
|
|
flex-flow: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
margin-top: 1rem;
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
width: 100%;
|
|
|
|
flex-flow: column;
|
|
|
|
}
|
2021-10-27 03:03:38 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
KeyCell,
|
|
|
|
DescCell,
|
|
|
|
ShortcutTable,
|
2022-08-02 06:41:48 +08:00
|
|
|
SettingsTabs,
|
2021-10-27 03:03:38 +08:00
|
|
|
};
|