📝 docs(custom-component.mdx): add documentation for custom components

🎨 style(custom.css): update styling for code blocks and sidebar in documentation
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-27 06:58:10 -03:00
commit 6b7ab2aded
2 changed files with 338 additions and 11 deletions

View file

@ -3,17 +3,19 @@
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
:root {
:root {
--ifm-background-color: var(--token-primary-bg-c);
--ifm-navbar-link-hover-color: initial;
--ifm-navbar-padding-vertical: 0;
--ifm-navbar-item-padding-vertical: 0;
--ifm-font-family-base: -apple-system, BlinkMacSystemFont, Inter, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI emoji';
--ifm-font-family-monospace: 'SFMono-Regular', 'Roboto Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
--ifm-font-family-base: -apple-system, BlinkMacSystemFont, Inter, Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI emoji";
--ifm-font-family-monospace: "SFMono-Regular", "Roboto Mono", Consolas,
"Liberation Mono", Menlo, Courier, monospace;
}
.theme-doc-sidebar-item-category.menu__list-item:not(:first-child) {
margin-top: 1.5rem!important;
margin-top: 1.5rem !important;
}
.docusaurus-highlight-code-line {
@ -31,7 +33,7 @@
transform: skewY(6deg);
}
[class^='announcementBar'] {
[class^="announcementBar"] {
z-index: 10;
}
@ -112,7 +114,7 @@ body {
}
.header-github-link:before {
content: '';
content: "";
width: 24px;
height: 24px;
display: flex;
@ -126,7 +128,7 @@ body {
}
.header-twitter-link::before {
content: '';
content: "";
width: 24px;
height: 24px;
display: flex;
@ -140,7 +142,7 @@ body {
}
.header-discord-link::before {
content: '';
content: "";
width: 24px;
height: 24px;
display: flex;
@ -148,7 +150,6 @@ body {
background-size: contain;
}
/* Images */
.image-rendering-crisp {
image-rendering: crisp-edges;
@ -164,7 +165,7 @@ body {
.img-center {
display: flex;
justify-content: center;
width: 100%,
width: 100%;
}
.resized-image {
@ -188,4 +189,13 @@ body {
.mendable-search {
width: 140px;
}
}
}
.ch-scrollycoding-content {
max-width: 40% !important;
}
.ch-scrollycoding-sticker {
max-width: 60% !important;
min-width: 60% !important;
}