1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-29 01:15:48 +02:00
unleash.unleash/frontend/src/component/project/Project/ProjectInfo/ProjectInfo.styles.ts
Fredrik Strand Oseberg 36fcac7178 Fix/project view desc (#515)
* fix: rollout icon and disabled state

* fix: mobile position

* refactor: move into style file

* fix: description box for projects

* fix: icon placement

* fix: icon

* fix: mobile project view

* fix: add style file to disabled indicator

* fix: hide icon on mobile

* fix: description

* fix: remove project logo
2021-11-24 14:36:21 +01:00

107 lines
2.6 KiB
TypeScript

import { makeStyles } from '@material-ui/core/styles';
export const useStyles = makeStyles(theme => ({
projectInfo: {
width: '225px',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
boxShadow: 'none',
[theme.breakpoints.down('sm')]: {
flexDirection: 'row',
alignItems: 'stretch',
width: '100%',
marginBottom: '1rem',
},
},
description: {
textAlign: 'left',
marginBottom: '0.5rem',
},
descriptionContainer: {
display: 'flex',
justifyContent: 'space-between',
},
idContainer: {
display: 'flex',
width: '100%',
},
percentageContainer: {
display: 'flex',
justifyContent: 'center',
margin: '1rem 0',
},
projectIcon: {
margin: '2rem 0',
[theme.breakpoints.down('sm')]: {
margin: '0 0 0.25rem 0',
width: '53px',
},
},
subtitle: {
marginBottom: '1.25rem',
},
emphazisedText: {
fontSize: '1.5rem',
marginBottom: '1rem',
[theme.breakpoints.down('sm')]: {
fontSize: '1rem',
marginBottom: '2rem',
},
},
infoSection: {
margin: '0',
textAlign: 'center',
marginBottom: '1rem',
backgroundColor: '#fff',
borderRadius: '10px',
width: '100%',
padding: '1.5rem 1rem 1.5rem 1rem',
[theme.breakpoints.down('sm')]: {
margin: '0 0.25rem',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
fontSize: '0.8rem',
position: 'relative',
padding: '0.8rem',
['&:first-child']: {
marginLeft: '0',
},
['&:last-child']: {
marginRight: '0',
},
},
},
arrowIcon: {
color: '#635dc5',
marginLeft: '0.5rem',
},
permissionButtonShortDesc: {
transform: `translateY(-10px)`,
},
infoLink: {
textDecoration: 'none',
color: '#635dc5',
[theme.breakpoints.down('sm')]: {
position: 'absolute',
bottom: '5px',
},
},
accordion: {
boxShadow: 'none',
textAlign: 'left',
},
accordionBody: { padding: '0' },
accordionActions: {
padding: '0',
justifyContent: 'flex-start',
},
linkText: {
[theme.breakpoints.down('sm')]: {
display: 'none',
},
},
}));