bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/shortcut-help/styles.js

57 lines
1.2 KiB
JavaScript
Raw Normal View History

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';
import { Tabs } from 'react-tabs';
2022-10-19 02:39:28 +08:00
import { ScrollboxVertical } from '/imports/ui/stylesheets/styled-components/scrollable';
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;
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;
margin: 0;
width: 100%;
2022-10-19 02:39:28 +08:00
> tbody > tr:nth-child(even) {
background-color: ${colorOffWhite};
color: ${colorPrimary};
}
`;
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,
SettingsTabs,
2022-10-19 02:39:28 +08:00
TableWrapper,
2021-10-27 03:03:38 +08:00
};