2021-10-28 01:48:15 +08:00
|
|
|
import styled from 'styled-components';
|
|
|
|
import {
|
|
|
|
mdPaddingX,
|
|
|
|
} from '/imports/ui/stylesheets/styled-components/general';
|
2022-05-20 01:28:58 +08:00
|
|
|
import { colorWhite } from '/imports/ui/stylesheets/styled-components/palette';
|
2021-10-28 01:48:15 +08:00
|
|
|
import { smallOnly } from '/imports/ui/stylesheets/styled-components/breakpoints';
|
2022-11-01 22:40:21 +08:00
|
|
|
import CommonHeader from '/imports/ui/components/common/control-header/component';
|
2021-10-28 01:48:15 +08:00
|
|
|
|
2021-10-16 03:07:13 +08:00
|
|
|
const Notes = styled.div`
|
2021-10-28 01:48:15 +08:00
|
|
|
background-color: ${colorWhite};
|
2022-06-17 00:58:54 +08:00
|
|
|
padding: ${mdPaddingX};
|
2021-10-28 01:48:15 +08:00
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
overflow: hidden;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
${({ isChrome }) => isChrome && `
|
|
|
|
transform: translateZ(0);
|
|
|
|
`}
|
|
|
|
|
|
|
|
@media ${smallOnly} {
|
|
|
|
transform: none !important;
|
2023-06-06 00:42:24 +08:00
|
|
|
&.no-padding {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2021-10-28 01:48:15 +08:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2022-11-01 22:40:21 +08:00
|
|
|
const Header = styled(CommonHeader)`
|
2022-11-01 23:03:31 +08:00
|
|
|
padding-bottom: .2rem;
|
2022-11-01 22:40:21 +08:00
|
|
|
`;
|
|
|
|
|
|
|
|
export default {
|
|
|
|
Notes,
|
|
|
|
Header,
|
|
|
|
};
|