2023-05-18 13:17:41 +02:00
|
|
|
/*
|
|
|
|
|
* Copyright (C) Contributors to the Suwayomi project
|
|
|
|
|
*
|
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
*/
|
|
|
|
|
|
2023-06-04 21:08:39 +02:00
|
|
|
import { Fab, styled } from '@mui/material';
|
2023-05-15 18:23:26 +02:00
|
|
|
|
|
|
|
|
export const DEFAULT_FAB_STYLE = {
|
|
|
|
|
position: 'fixed',
|
|
|
|
|
height: '48px',
|
2023-05-15 18:36:16 +02:00
|
|
|
right: '48px',
|
|
|
|
|
bottom: '28px',
|
2023-05-15 18:23:26 +02:00
|
|
|
} as const;
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_FULL_FAB_HEIGHT = `calc(${DEFAULT_FAB_STYLE.bottom} + ${DEFAULT_FAB_STYLE.height})`;
|
|
|
|
|
|
2023-10-28 00:32:02 +02:00
|
|
|
export const StyledFab = styled(Fab)({
|
2023-05-15 18:23:26 +02:00
|
|
|
...DEFAULT_FAB_STYLE,
|
|
|
|
|
}) as typeof Fab;
|