Skip to content

Commit

Permalink
conflict-resolving
Browse files Browse the repository at this point in the history
  • Loading branch information
nike-getto committed Dec 4, 2024
1 parent c51eca6 commit e0629e7
Showing 1 changed file with 13 additions and 44 deletions.
57 changes: 13 additions & 44 deletions frontend/src/components/organisms/Constitution/MDXComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const Anchor = ({ id, offset = "-20vh " }) => {
display: "block",
position: "relative",
top: offset,
visibility: "hidden"
visibility: "hidden",
}}
/>
);
Expand All @@ -36,7 +36,7 @@ export const Heading1 = ({ children, id }) => (
marginTop: "24px",
marginBottom: "16px",
lineHeight: "1.25em",
fontSize: { xxs: 20, md: 32 }
fontSize: { xxs: 20, md: 32 },
}}
variant="headline4"
>
Expand All @@ -55,7 +55,7 @@ export const Heading2 = ({ children, id }) => (
fontWeight: 600,
fontSize: { xxs: 16, md: 20 },

lineHeight: "1.25em"
lineHeight: "1.25em",
}}
>
{children}
Expand All @@ -72,7 +72,7 @@ export const Heading3 = ({ children, id }) => (
marginBottom: "16px",
fontWeight: 600,
fontSize: { xxs: 14, md: 18 },
lineHeight: "1.25em"
lineHeight: "1.25em",
}}
>
{children}
Expand All @@ -89,11 +89,7 @@ export const Heading5 = ({ children }) => (
fontWeight: 800,
fontSize: { xxs: 12, md: 14 },
lineHeight: "1em",
<<<<<<< HEAD
overflowWrap: "break-word"
=======
overflowWrap: "break-word",
>>>>>>> staging
}}
>
{children}
Expand All @@ -107,11 +103,7 @@ export const Paragraph = ({ children, id }) => (
lineHeight: "1.5",
marginBottom: "16px",
fontSize: "14px",
<<<<<<< HEAD
color: customPalette.textGray
=======
color: customPalette.textGray,
>>>>>>> staging
}}
variant="caption"
>
Expand All @@ -130,11 +122,7 @@ export const ListItem = ({ children, id }) => (
flexDirection: "column",
alignItems: "flex-start",
justifyContent: "center",
<<<<<<< HEAD
wordBreak: "break-all"
=======
wordBreak: "break-all",
>>>>>>> staging
}}
>
{children}
Expand All @@ -150,7 +138,7 @@ export const Code = ({ children }) => (
margin: 0,
whiteSpace: "break-spaces",
backgroundColor: "#afb8c133",
borderRadius: "6px"
borderRadius: "6px",
}}
>
{children}
Expand All @@ -162,20 +150,20 @@ export const TABLE_OF_CONTENTS_WRAPPER_STYLE_PROPS = {
borderRadius: "16px",
padding: "12px",
"& ol.toc-level": {
margin: 0
margin: 0,
},
"& ol.toc-level-1": {
paddingInlineStart: "20px",

"& li": {
listStyle: "outside !important",
"& a.toc-link-h1": {
fontWeight: 600
}
}
fontWeight: 600,
},
},
},
"& ol.toc-level-2": {
margin: "10px 0px 10px 0px"
margin: "10px 0px 10px 0px",
},
"& li": {
width: "100%",
Expand All @@ -186,15 +174,9 @@ export const TABLE_OF_CONTENTS_WRAPPER_STYLE_PROPS = {
fontSize: "1rem",
fontWeight: 400,
lineHeight: "56px",
<<<<<<< HEAD
color: customPalette.textBlack
}
}
=======
color: customPalette.textBlack,
},
},
>>>>>>> staging
};
export const DrawerNav = () => {
const t = useTranslations("Constitution");
Expand Down Expand Up @@ -225,11 +207,7 @@ export const NavDrawerDesktop = ({
children,
left = 0,
top = { xxs: 75, md: 90 },
<<<<<<< HEAD
dataTestId
=======
dataTestId,
>>>>>>> staging
}: {
children: ReactNode;
left: number;
Expand All @@ -250,7 +228,7 @@ export const NavDrawerDesktop = ({
borderRadius: "16px",
height: { xxs: "95vh", md: "calc(100vh - 118px)" },
zIndex: 1,
...TABLE_OF_CONTENTS_WRAPPER_STYLE_PROPS
...TABLE_OF_CONTENTS_WRAPPER_STYLE_PROPS,
}}
>
<Box
Expand All @@ -259,13 +237,8 @@ export const NavDrawerDesktop = ({
overflowY: "scroll",
borderRadiusTop: "16px 16px 0 0",
"&::-webkit-scrollbar": {
<<<<<<< HEAD
display: "none"
}
=======
display: "none",
},
>>>>>>> staging
}}
data-testid="nav-drawer-collapse-container"
>
Expand All @@ -283,11 +256,7 @@ export const NavCard = ({
hash,
url,
isActive,
<<<<<<< HEAD
isLatest
=======
isLatest,
>>>>>>> staging
}) => {
return (
<Grid
Expand Down Expand Up @@ -347,7 +316,7 @@ export const NavCard = ({
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center"
alignItems: "center",
}}
>
<Link
Expand All @@ -372,7 +341,7 @@ export const NavCard = ({
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center"
alignItems: "center",
}}
>
{!isActive && !isLatest && (
Expand Down

0 comments on commit e0629e7

Please sign in to comment.