-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from vordgi/rd-324
rd-324 implement different containers
- Loading branch information
Showing
11 changed files
with
52 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/robindoc/src/components/elements/blog-container/blog-container.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@import "src/assets/_vars"; | ||
|
||
.r-blog-container { | ||
min-height: calc(100vh - var(--header-height)); | ||
overflow-wrap: break-word; | ||
|
||
@media screen and (width >= $lg) { | ||
display: grid; | ||
justify-content: space-between; | ||
column-gap: 40px; | ||
grid-template-areas: "breadcrumbs contents" "content contents" "pagination contents"; | ||
grid-template-columns: 760px 220px; | ||
grid-template-rows: auto 1fr auto; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
packages/robindoc/src/components/elements/blog-container/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
import { Container } from "@src/components/ui/container"; | ||
|
||
import "./blog-container.scss"; | ||
|
||
export const BlogContainer: React.FC<React.PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<Container component="main" className="r-blog-container"> | ||
{children} | ||
</Container> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
packages/robindoc/src/components/elements/docs-container/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
|
||
import { Container } from "@src/components/ui/container"; | ||
|
||
import "./docs-container.scss"; | ||
|
||
export const DocsContainer: React.FC<React.PropsWithChildren> = ({ children }) => { | ||
return ( | ||
<Container component="main" className="r-docs-container"> | ||
{children} | ||
</Container> | ||
); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
@import "src/assets/_vars"; | ||
|
||
.r-sidebar { | ||
width: 220px; | ||
grid-area: sidebar; | ||
|
||
@media screen and (width < $sm) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters