diff --git a/components/ButtonGroup.tsx b/components/ButtonGroup.tsx index a72082a..e2eb6ad 100644 --- a/components/ButtonGroup.tsx +++ b/components/ButtonGroup.tsx @@ -6,11 +6,14 @@ const ButtonGroup = styled('div', { marginLeft: '1px', [`& ${StyledButton}`]: { marginLeft: '-1px', - px: '$4', + px: '0.65rem', zIndex: 2, position: 'relative', '&:hover, &:focus': { zIndex: 200 + }, + '@sm': { + px: '$4' } }, [`& ${StyledButton}:not(:only-of-type):not(:first-child):not(:last-child)`]: { diff --git a/components/Dialog.tsx b/components/Dialog.tsx index 86d03d8..32a7b68 100644 --- a/components/Dialog.tsx +++ b/components/Dialog.tsx @@ -40,11 +40,10 @@ const StyledContent = styled(DialogPrimitive.Content, { color: '$mauve12', borderRadius: '$md', position: 'relative', - mb: '15%', + mb: '0%', boxShadow: '0px 10px 38px -5px rgba(22, 23, 24, 0.25), 0px 10px 20px -5px rgba(22, 23, 24, 0.2)', width: '90vw', maxWidth: '450px', - // maxHeight: "85vh", padding: 25, '@media (prefers-reduced-motion: no-preference)': { animation: `${contentShow} 150ms cubic-bezier(0.16, 1, 0.3, 1)` @@ -53,6 +52,9 @@ const StyledContent = styled(DialogPrimitive.Content, { '.dark &': { backgroundColor: '$mauve5', boxShadow: '0px 10px 38px 0px rgba(0, 0, 0, 0.85), 0px 10px 20px 0px rgba(0, 0, 0, 0.6)' + }, + '@md': { + mb: '8%' } }) diff --git a/components/EditorNavigation.tsx b/components/EditorNavigation.tsx index 74b4595..d5e4812 100644 --- a/components/EditorNavigation.tsx +++ b/components/EditorNavigation.tsx @@ -78,7 +78,6 @@ const EditorNavigation = ({ renderNav }: { renderNav?: () => ReactNode }) => { return ( ReactNode }) => { ) : ( - )} @@ -202,6 +215,9 @@ const EditorNavigation = ({ renderNav }: { renderNav?: () => ReactNode }) => { alignSelf: 'flex-start', boxShadow: 'none' }, + 'button:not(:last-child)': { + display: 'none' + }, 'button:not(:first-child):not(:last-child)': { borderRight: 0, borderLeft: 0 @@ -217,6 +233,11 @@ const EditorNavigation = ({ renderNav }: { renderNav?: () => ReactNode }) => { '&:hover': { boxShadow: 'inset 0px 0px 0px 1px $colors$mauve12' } + }, + '@sm': { + 'button:not(:last-child)': { + display: 'flex' + } } }} > diff --git a/components/Navigation.tsx b/components/Navigation.tsx index 14a08fe..e0f5561 100644 --- a/components/Navigation.tsx +++ b/components/Navigation.tsx @@ -33,7 +33,7 @@ import { styled } from '../stitches.config' const ImageWrapper = styled(Flex, { position: 'relative', mt: '$2', - mb: '$10', + mb: '$6', svg: { // fill: "red", '.angle': { @@ -66,16 +66,23 @@ const Navigation = () => { @@ -84,7 +91,11 @@ const Navigation = () => { css={{ display: 'flex', alignItems: 'center', - color: '$textColor' + color: '$textColor', + mr: '$2', + '@sm': { + mr: '$4' + } }} > @@ -92,9 +103,12 @@ const Navigation = () => { {snap.loading ? ( @@ -135,8 +149,8 @@ const Navigation = () => { css={{ display: 'flex', maxWidth: '1080px', - width: '80vw', - maxHeight: '80%', + width: '90vw', + maxHeight: '90%', backgroundColor: '$mauve1 !important', overflowY: 'auto', background: 'black', @@ -265,15 +279,18 @@ const Navigation = () => { gridTemplateColumns: '1fr', gridTemplateRows: 'max-content', flex: 1, - p: '$7', - pb: '$16', + p: '$4', + pb: '$8', gap: '$3', alignItems: 'normal', flexWrap: 'wrap', backgroundColor: '$mauve1', '@md': { gridTemplateColumns: '1fr 1fr', - gridTemplateRows: 'max-content' + gridTemplateRows: 'max-content', + p: '$7', + pb: '$10', + paddingRight: '$12' }, '@lg': { gridTemplateColumns: '1fr 1fr 1fr', @@ -316,23 +333,30 @@ const Navigation = () => { diff --git a/components/PanelBox.tsx b/components/PanelBox.tsx index b638db8..a2ff569 100644 --- a/components/PanelBox.tsx +++ b/components/PanelBox.tsx @@ -7,7 +7,7 @@ const PanelBox = styled('div', { flexDirection: 'column', border: '1px solid $colors$mauve6', backgroundColor: '$mauve2', - padding: '$3', + padding: '$5', borderRadius: '$sm', fontWeight: 'lighter', height: 'auto', diff --git a/components/Transaction/index.tsx b/components/Transaction/index.tsx index cdc2cc9..f786a1f 100644 --- a/components/Transaction/index.tsx +++ b/components/Transaction/index.tsx @@ -185,11 +185,16 @@ const Transaction: FC = ({ header, state: txState, ...props }) row css={{ justifyContent: 'space-between', - position: 'absolute', - left: 0, - bottom: 0, width: '100%', - mb: '$1' + mb: '$2', + mt: '$1', + '@md': { + position: 'absolute', + left: 0, + bottom: 0, + mt: '$0', + mb: '$2' + } }} >