Skip to content

Commit 53682b0

Browse files
committed
removing top padding
1 parent 3eb6f20 commit 53682b0

12 files changed

Lines changed: 43 additions & 132 deletions

File tree

app/root.res

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ let default = () => {
6767
</head>
6868
<body>
6969
<NavbarPrimary />
70-
// <EnableCollapsibleNavbar isEnabled={!isOverlayOpen}>
71-
// <Navigation isOverlayOpen setOverlayOpen />
7270
<Outlet />
7371
<ScrollRestoration />
7472
<Scripts />
75-
// </EnableCollapsibleNavbar>
7673
</body>
7774
</html>
7875
}

app/routes.res

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,7 @@ let stdlibRoutes =
2828
let beltRoutes =
2929
beltPaths->Array.map(path => route(path, "./routes/ApiRoute.jsx", ~options={id: path}))
3030

31-
let guideRoutes =
32-
mdxRoutes("./routes/Guide.jsx")->Array.filter(route =>
33-
route.path->Option.map(path => String.includes(path, "guide/"))->Option.getOr(false)
34-
)
35-
36-
let mdxRoutes =
37-
mdxRoutes("./routes/MdxRoute.jsx")->Array.filter(route =>
38-
route.path->Option.map(path => !String.includes(path, "guide/"))->Option.getOr(true)
39-
)
31+
let mdxRoutes = mdxRoutes("./routes/MdxRoute.jsx")
4032

4133
let default = [
4234
index("./routes/LandingPageRoute.jsx"),
@@ -53,7 +45,5 @@ let default = [
5345
...stdlibRoutes,
5446
...beltRoutes,
5547
...mdxRoutes,
56-
route("guides", "./routes/Guides.jsx"),
57-
...guideRoutes,
5848
route("*", "./routes/NotFoundRoute.jsx"),
5949
]

app/routes/DocsOverview.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let default = (~showVersionSelect=true) => {
3131
]
3232

3333
<MainLayout>
34-
<div className="max-w-740 w-full m-auto mt-16 md:mt-6">
34+
<div className="max-w-740 w-full m-auto">
3535
// <div className="mb-6" />
3636
<Markdown.H1> {React.string("Docs")} </Markdown.H1>
3737

app/routes/Guide.res

Lines changed: 0 additions & 76 deletions
This file was deleted.

app/routes/TryRoute.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ let default = () => {
6161
{switch data {
6262
| Some({bundleBaseUrl, versions}) => <ClientOnly bundleBaseUrl versions />
6363
| None =>
64-
<div className="mt-16 p-5 text-xl text-red-500 self-center">
64+
<div className="text-xl text-red-500 self-center">
6565
<h1> {React.string("Oops an error occurred!")} </h1>
6666
{React.string("The playground cannot be loaded, please try again in a few moments.")}
6767
</div>

src/ApiDocs.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ module SidebarTree = {
185185
id="sidebar"
186186
className={(
187187
isOpen ? "fixed w-full left-0 h-full z-20 min-w-320" : "hidden "
188-
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 h-auto md:relative overflow-y-visible bg-white mt-16 md:mt-0"}
188+
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 h-auto md:relative overflow-y-visible bg-white"}
189189
>
190190
<aside
191191
id="sidebar-content-api-docs"
@@ -370,7 +370,7 @@ let make = (props: props) => {
370370
<aside
371371
className="relative pl-4 w-full block md:top-28 md:pt-4 md:sticky border-l border-gray-20 overflow-y-auto pb-24 h-[calc(100vh-7rem)]"
372372
>
373-
<div className="hl-overline block text-gray-80 mt-16 mb-2">
373+
<div className="hl-overline block text-gray-80 mb-2">
374374
{"Types and values"->React.string}
375375
</div>
376376
<ul>

src/Blog.res

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -258,17 +258,15 @@ let make = (~posts: array<BlogApi.post>, ~category: category): React.element =>
258258
}
259259

260260
<>
261-
<div className="mt-16 pt-2">
262-
<div className="text-gray-80 text-18">
263-
<div className="flex justify-center overflow-hidden">
264-
<main className="min-w-320 lg:align-center w-full lg:px-0 max-w-1280 pb-48">
265-
<div className="flex justify-center">
266-
<div className="w-full max-w-266.5"> content </div>
267-
</div>
268-
</main>
269-
</div>
270-
<Footer />
261+
<div className="text-gray-80 text-18">
262+
<div className="flex justify-center overflow-hidden">
263+
<main className="min-w-320 lg:align-center w-full lg:px-0 max-w-1280 pb-48">
264+
<div className="flex justify-center">
265+
<div className="w-full max-w-266.5"> content </div>
266+
</div>
267+
</main>
271268
</div>
269+
<Footer />
272270
</div>
273271
</>
274272
}

src/Packages.res

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -427,34 +427,33 @@ let make = (props: props) => {
427427
title="Package Index | ReScript Documentation"
428428
description="Official and unofficial resources, libraries and bindings for ReScript"
429429
/>
430-
<div className="mt-16 pt-2">
431-
<div className="text-gray-80 text-18">
432-
<div className="flex overflow-hidden">
433-
<div
434-
className="flex justify-between min-w-320 px-4 pt-16 lg:align-center w-full lg:px-8 pb-48"
435-
>
436-
<main className="max-w-1280 w-full flex justify-center">
437-
<div className="w-full max-w-176.25">
438-
<H1> {React.string("Libraries & Bindings")} </H1>
439-
<SearchBox
440-
placeholder="Enter a search term, name, keyword, etc"
441-
onValueChange
442-
onClear
443-
value={searchValue}
444-
/>
445-
<div className="mt-12 space-y-8">
446-
officialCategory
447-
communityCategory
448-
</div>
430+
431+
<div className="text-gray-80 text-18">
432+
<div className="flex overflow-hidden">
433+
<div
434+
className="flex justify-between min-w-320 px-4 pt-16 lg:align-center w-full lg:px-8 pb-48"
435+
>
436+
<main className="max-w-1280 w-full flex justify-center">
437+
<div className="w-full max-w-176.25">
438+
<H1> {React.string("Libraries & Bindings")} </H1>
439+
<SearchBox
440+
placeholder="Enter a search term, name, keyword, etc"
441+
onValueChange
442+
onClear
443+
value={searchValue}
444+
/>
445+
<div className="mt-12 space-y-8">
446+
officialCategory
447+
communityCategory
449448
</div>
450-
</main>
451-
<div className="hidden lg:block h-full ">
452-
<InfoSidebar filter setFilter />
453449
</div>
450+
</main>
451+
<div className="hidden lg:block h-full ">
452+
<InfoSidebar filter setFilter />
454453
</div>
455454
</div>
456-
<Footer />
457455
</div>
456+
<Footer />
458457
</div>
459458
</>
460459
}

src/Playground.res

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,6 +1802,7 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
18021802
let subPanelRef = React.useRef(Nullable.null)
18031803

18041804
let onResize = () => {
1805+
Console.debug("resizing playground...")
18051806
let newLayout = window.innerWidth < breakingPoint ? Column : Row
18061807
setLayout(_ => newLayout)
18071808
switch panelRef.current->Nullable.toOption {
@@ -2011,7 +2012,7 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
20112012
<button key={Int.toString(i)} onClick className disabled> {title} </button>
20122013
})
20132014

2014-
<main className={"flex flex-col bg-gray-100 text-gray-40 text-14 mt-16"}>
2015+
<main className={"flex flex-col bg-gray-100 text-gray-40 text-14 h-100"}>
20152016
<ControlPanel
20162017
actionIndicatorKey={Int.toString(actionCount)}
20172018
state=compilerState
@@ -2020,7 +2021,7 @@ let make = (~bundleBaseUrl: string, ~versions: array<string>) => {
20202021
editorRef
20212022
/>
20222023
<div
2023-
className={`flex ${layout == Column ? "flex-col" : "flex-row"}`}
2024+
className={`flex bg-gray-100 ${layout == Column ? "flex-col" : "flex-row"}`}
20242025
ref={ReactDOM.Ref.domRef((Obj.magic(panelRef): React.ref<Nullable.t<Dom.element>>))}
20252026
>
20262027
// Left Panel

src/layouts/MainLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@react.component
22
let make = (~components=MarkdownComponents.default, ~children) => {
33
<>
4-
<div className={"mt-4 xs:mt-16"}>
4+
<div className={"mt-4"}>
55
<div className="text-gray-80">
66
<div className="flex xs:justify-center overflow-hidden pb-48">
77
<main className="mt-16 min-w-320 lg:align-center w-full px-4 md:px-8 max-w-1280 ">

0 commit comments

Comments
 (0)