diff --git a/src/components/DocsHub/index.tsx b/src/components/DocsHub/index.tsx index fcea198271e..15b271643bc 100644 --- a/src/components/DocsHub/index.tsx +++ b/src/components/DocsHub/index.tsx @@ -29,7 +29,7 @@ import { FiArrowUpRight } from 'react-icons/fi'; import BrowserOnly from '@docusaurus/BrowserOnly'; import Spinner, { SPINNER_TYPE } from '@site/src/components/reusables/spinners/SpinnerUnit'; import { ITechDocItem, QuickstartItems, SdkItemsList, TechDocItems } from "@site/src/config/DocsHubList"; -import GLOBALS, { device, globalsMargin } from '@site/src/config/globals'; +import GLOBALS, { device } from '@site/src/config/globals'; import { PageMeta } from "@site/src/config/pageMeta"; @@ -349,16 +349,16 @@ export default function HomepageFeatures(): JSX.Element { const DocsHeroSection = styled(Section)` background: ${GLOBALS.COLORS.BG_DARK}; - padding: ${`120px ${globalsMargin.DEFAULT.DESKTOP.RIGHT} 120px ${globalsMargin.DEFAULT.DESKTOP.LEFT}`}; + padding: ${`${GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.DESKTOP}`}; padding-bottom: 0px; @media ${device.laptop} { - padding: ${`60px ${globalsMargin.DEFAULT.DESKTOP.RIGHT} 60px ${globalsMargin.DEFAULT.DESKTOP.LEFT}`}; + padding: ${`${GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.TABLET}`}; padding-bottom: 0px; } @media ${device.mobileM} { - padding: ${`40px ${globalsMargin.DEFAULT.DESKTOP.RIGHT} 40px ${globalsMargin.DEFAULT.DESKTOP.LEFT}`}; + padding: ${`${GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.MOBILE}`}; padding-bottom: 0px; } `; diff --git a/src/components/DocsHub/styles.css b/src/components/DocsHub/styles.css index b67cafa7a04..2c7e286df37 100644 --- a/src/components/DocsHub/styles.css +++ b/src/components/DocsHub/styles.css @@ -70,8 +70,8 @@ } .mainWrapper_eExm { - max-width: 100%; - min-width: 100%; + max-width: 100vw; + min-width: 100vw; } .PushDocs .docRoot_node_modules-\@docusaurus-theme-classic-lib-theme-DocRoot-Layout-styles-module, .PushDocs .docRoot_UBD9 { diff --git a/src/components/NewMarqueeAnimation.tsx b/src/components/NewMarqueeAnimation.tsx index 244c9b29302..c501e619040 100644 --- a/src/components/NewMarqueeAnimation.tsx +++ b/src/components/NewMarqueeAnimation.tsx @@ -48,7 +48,7 @@ function NewMarqueeAnimation(props: Props) { props.display || "flex"}; flex-direction: ${(props) => props.flexDirection || "column"}; position: ${(props) => props.position || "relative"}; + flex: ${(props) => props.flex || "1"}; align-self: ${(props) => props.alignSelf || "stretch"}; width: ${(props) => props.width || "auto"}; - max-width: ${(props) => props.maxWidth || "1200px"}; + max-width: ${(props) => props.maxWidth || "1213px"}; // max-width: 1140px; display: flex; justify-content: ${(props) => props.justifyContent || "center"}; @@ -77,10 +78,10 @@ export const Content = styled.div` @media ${device.laptop} { padding: ${(props) => props.padding || GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.TABLET}; - // max-width: ${(props) => props.maxWidth || "1200px"}; + // max-width: ${(props) => props.maxWidth || "1213px"}; } - @media ${device.mobileL} { + @media ${device.mobileM} { padding: ${(props) => props.padding || GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.MOBILE}; max-width: ${(props) => props.maxWidth || "100%"}; diff --git a/src/css/custom.css b/src/css/custom.css index d4ceaf08ffb..d4e9b811309 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -201,41 +201,12 @@ article ol ul { /* ----- */ /* OVERRIDES */ /* ----- */ - - -html, body { - height: 100%; - overflow-x: hidden; - overflow-y: auto; - box-sizing: border-box; - margin: 0; - padding: 0; -} - -::-webkit-scrollbar { - width: 4px !important; -} - -::-webkit-scrollbar-thumb { - background: #cb3faa; - border-radius: 6px; -} - -::-webkit-scrollbar-track { - background: black; -} - -::-webkit-scrollbar-button { - display: none !important; -} - -/* body { margin: 0; padding: 0; overflow-x: hidden; box-sizing: border-box; -} */ +} .home-wrapper { font-style: var(--ifm-font-family-homepage) !important; @@ -763,24 +734,6 @@ li { width: 100%; gap: 32px; } - - ::-webkit-scrollbar { - width: 4px !important; -} - -::-webkit-scrollbar-thumb { - background: #cb3faa; - border-radius: 6px; -} - -::-webkit-scrollbar-track { - background: black; -} - -::-webkit-scrollbar-button { - display: none !important; -} - } /* ------------------ */ diff --git a/src/pages/home.tsx b/src/pages/home.tsx index 34edf30d912..8d56b5f9725 100644 --- a/src/pages/home.tsx +++ b/src/pages/home.tsx @@ -61,8 +61,8 @@ import { NotifFeaturesList, NotifUseCasesList, } from "@site/src/config/HomeNotifFeaturesList"; -import GLOBALS, { device, globalsMargin } from "@site/src/config/globals"; import { OthersFeaturesList } from "@site/src/config/HomeOthersFeaturesList"; +import GLOBALS, { device } from "@site/src/config/globals"; import { PageMeta } from "@site/src/config/pageMeta"; export default function Home({ homePageBlogMetadata, recentPosts }) { @@ -221,7 +221,7 @@ export default function Home({ homePageBlogMetadata, recentPosts }) { zIndex="9" left="0" right="0" - // bottom="0" + bottom="0" bottom={`${GLOBALS.HEADER.OUTER_MARGIN.DESKTOP.TOP}px`} > @@ -242,10 +242,7 @@ export default function Home({ homePageBlogMetadata, recentPosts }) { {/* NOTIF SECTION */} - +

+ props.padding || GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.TABLET}; + } + + @media ${device.tablet} { + padding: ${(props) => + props.padding || GLOBALS.ADJUSTMENTS.MARGIN.DEFAULT.MOBILE}; + } `; const InvestorCard = styled(ItemV)` diff --git a/src/segments/Header.tsx b/src/segments/Header.tsx index 46632c7ba85..c80f9046659 100644 --- a/src/segments/Header.tsx +++ b/src/segments/Header.tsx @@ -699,7 +699,6 @@ const PushLogoBlackContainer = styled(ItemV)` } `; -// const StyledHeader = styled.header` const StyledHeader = styled.header` font-family: "Strawford"; @@ -707,14 +706,11 @@ const StyledHeader = styled.header` position: fixed; top: 0; left: 0; - right: 4px; + right: 0; /* color: #ffffff; background: #121315; */ opacity: 1; - // background: red; - // min-width: 100%; - // box-sizing: border-box; border-bottom-left-radius: 32px; border-bottom-right-radius: 32px; @@ -750,7 +746,6 @@ const StyledHeader = styled.header` max-height: 100%; overflow-x: hidden; overflow-y: auto; - right: 4px; flex-direction: column;