2021-10-27 03:03:38 +08:00
|
|
|
import styled from 'styled-components';
|
2022-10-19 02:39:28 +08:00
|
|
|
import { smPaddingX } from '/imports/ui/stylesheets/styled-components/general';
|
|
|
|
import { colorOffWhite, colorPrimary } from '/imports/ui/stylesheets/styled-components/palette';
|
2022-08-02 06:41:48 +08:00
|
|
|
import { Tabs } from 'react-tabs';
|
2022-10-19 02:39:28 +08:00
|
|
|
import { ScrollboxVertical } from '/imports/ui/stylesheets/styled-components/scrollable';
|
2022-08-02 06:41:48 +08:00
|
|
|
|
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2021-10-27 03:03:38 +08:00
|
|
|
|
|
|
|
const KeyCell = styled.td`
|
|
|
|
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`
|
|
|
|
padding: ${smPaddingX};
|
|
|
|
margin: auto;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const ShortcutTable = styled.table`
|
|
|
|
border-collapse: collapse;
|
2022-08-02 06:41:48 +08:00
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
2022-10-19 02:39:28 +08:00
|
|
|
|
|
|
|
> tbody > tr:nth-child(even) {
|
|
|
|
background-color: ${colorOffWhite};
|
|
|
|
color: ${colorPrimary};
|
|
|
|
}
|
2022-08-02 06:41:48 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
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
|
|
|
`;
|
|
|
|
|
2022-10-19 02:39:28 +08:00
|
|
|
const TableWrapper = styled(ScrollboxVertical)`
|
|
|
|
height: 50vh;
|
|
|
|
width: 100%;
|
|
|
|
`;
|
|
|
|
|
2021-10-27 03:03:38 +08:00
|
|
|
export default {
|
|
|
|
KeyCell,
|
|
|
|
DescCell,
|
|
|
|
ShortcutTable,
|
2022-08-02 06:41:48 +08:00
|
|
|
SettingsTabs,
|
2022-10-19 02:39:28 +08:00
|
|
|
TableWrapper,
|
2021-10-27 03:03:38 +08:00
|
|
|
};
|