File tree Expand file tree Collapse file tree 2 files changed +28
-11
lines changed
packages/web/docs/src/app/case-studies Expand file tree Collapse file tree 2 files changed +28
-11
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,16 @@ import { LookingToUseHiveUpsellBlock } from '../looking-to-use-hive-upsell-block
9
9
// because the class responsible for dark mode gets transformed
10
10
// so `dark:` prefixes don't work.
11
11
const ONE_OFF_CLASS_CASE_STUDIES = 'case-studies' ;
12
+ const MAIN_CONTENT = 'main-content' ;
12
13
13
14
export default function CaseStudiesLayout ( { children } : { children : React . ReactNode } ) {
14
15
return (
15
16
< div className = { cn ( ONE_OFF_CLASS_CASE_STUDIES , 'mx-auto box-content max-w-[90rem]' ) } >
16
17
< CaseStudiesHeader className = "mx-auto max-w-[--nextra-content-width] pl-6 sm:my-12 md:pl-12 lg:my-24" />
17
- < aside className = "sticky top-[92px] mx-auto max-w-[--nextra-content-width]" >
18
- < LookingToUseHiveUpsellBlock className = "absolute right-2 top-4 max-lg:hidden lg:w-[320px] xl:w-[400px]" />
19
- </ aside >
20
- { children }
18
+ < div className = { cn ( MAIN_CONTENT , ' mx-auto flex' ) } >
19
+ { children }
20
+ < LookingToUseHiveUpsellBlock className = "sticky right-2 top-[108px] mb-8 h-min max-lg:hidden lg:w-[320px] xl:w-[400px]" / >
21
+ </ div >
21
22
< MoreStoriesSection />
22
23
< GetYourAPIGameWhite className = "sm:my-24" />
23
24
</ div >
Original file line number Diff line number Diff line change 2
2
--nextra-content-width : 1208px ;
3
3
--article-max-width : 640px ;
4
4
5
- /* hide leftmost column to left-align the case study */
6
- & > div : first-of-type > : first-child {
7
- @apply hidden;
8
- }
9
-
10
- & > div > article {
5
+ & > .main-content {
11
6
box-sizing : content-box;
12
- max-width : var (--article-max-width );
7
+ width : var (--nextra-content-width );
8
+ max-width : 100% ;
9
+
10
+ /* hide leftmost column to left-align the case study */
11
+ & > div : first-of-type > : first-child {
12
+ @apply hidden;
13
+ }
14
+
15
+ & > div {
16
+ @apply ml-0 pl-6 md:pl-12;
17
+ }
18
+
19
+ & > div > article {
20
+ box-sizing : content-box;
21
+ max-width : 100% ;
22
+ width : var (--article-max-width );
23
+ padding : 0 ;
24
+ }
25
+
26
+ & nav .nextra-toc {
27
+ @apply hidden;
28
+ }
13
29
}
14
30
15
31
@apply text-green-1000 dark:text-white;
You can’t perform that action at this time.
0 commit comments