@craftercms/studio-ui
Version:
Services, components, models & utils to build CrafterCMS authoring extensions.
120 lines (118 loc) • 2.94 kB
JavaScript
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { makeStyles } from 'tss-react/mui';
const useStyles = makeStyles()((theme) => ({
root: {
display: 'flex',
height: '100%',
position: 'relative',
flexDirection: 'column'
},
editorRoot: {
border: '0',
borderRadius: '0',
margin: 0
},
appBar: {
paddingRight: '14.4px'
},
textMargin: {
marginBottom: '1em'
},
confirmDialogBody: {
textAlign: 'left'
},
buttonGroup: {
marginRight: '15px'
},
rootEditor: {
display: 'flex',
flex: '1 1 auto'
},
loadingStateRight: {
width: '50%'
},
historyButton: {
marginRight: 'auto'
},
drawerPaper: {
position: 'absolute',
'&.embedded': {
top: 0
}
},
list: {
width: '100%',
overflow: 'auto',
height: '100%'
},
ellipsis: {
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap'
},
searchBarRoot: {
borderRadius: '0 !important',
border: 0,
'&.focus': {
border: '0 !important',
boxShadow: 'none'
}
},
alert: {
borderRadius: 0
},
listSubheader: {
background: theme.palette.background.paper,
padding: 0,
borderBottom: `1px solid ${theme.palette.divider}`
},
listSubheaderSkeleton: {
display: 'flex',
alignItems: 'center',
flexDirection: 'column',
padding: '10px'
},
itemSkeletonText: {
height: '20px'
},
errorState: {
height: 'calc(100% - 65px)'
},
sampleErrorState: {
maxWidth: '50%',
margin: '0 auto',
'& p': {
wordBreak: 'break-word'
}
}
}));
export default useStyles;