Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@

.heroTitle {
font-size: 3rem;
font-weight: 700;
font-weight: 600;
color: white;
margin-bottom: 0.5rem;
}

.heroSubtitle {
font-size: 1.75rem;
font-weight: 500;
font-weight: 400;
color: #a6e22e;
margin-bottom: 1rem;
}
Expand All @@ -68,7 +68,7 @@
padding: 0.8rem 2rem;
border-radius: 12px;
font-size: 1rem;
font-weight: bold;
font-weight: 600;
text-transform: uppercase;
text-decoration: none;
transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
Expand Down
1 change: 1 addition & 0 deletions src/styles/admonition.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
overflow: hidden;
color: rgba(white, 0.8);
--border-color: rgba(255, 255, 255, 0.3);
--ifm-heading-line-height: 1.63;

&::before {
content: '';
Expand Down
7 changes: 4 additions & 3 deletions src/styles/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.footer {
background-color: $background;
padding: 2.4rem 2rem;
position: relative;

@include xl {
padding: 3.2rem 4rem;
Expand Down Expand Up @@ -56,7 +57,7 @@
font-size: 1.6rem;
line-height: 1.5;
color: white;
font-weight: 700;
font-weight: 600;

@include xl {
font-size: 1.8rem;
Expand All @@ -72,7 +73,7 @@
.footer__link-item {
font-size: 1.6rem;
line-height: 1.5;
font-weight: 500;
font-weight: 400;
width: 100%;
display: flex;
align-items: center;
Expand All @@ -91,7 +92,7 @@
.footer__copyright {
font-size: 1.4rem;
line-height: 1.5;
font-weight: 500;
font-weight: 400;
color: white;
opacity: 0.5;

Expand Down
12 changes: 10 additions & 2 deletions src/styles/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
@use '@site/src/styles/common/media.scss' as *;

.markdown {
--ifm-heading-line-height: 1.5;
--ifm-heading-line-height: 2;
--ifm-leading-desktop: 1.5;
color: rgba(white, 0.8);
line-height: var(--ifm-heading-line-height);

h1,
h2,
h3,
h4,
h5 {
color: white;
line-height: 1.5;
}

h1 {
Expand All @@ -34,7 +36,13 @@
}

li + li {
margin-top: 0.4rem;
margin-top: 0.6rem;
}

li {
ul {
margin-top: 0.4rem;
}
}

p:has(+ h2) {
Expand Down
4 changes: 2 additions & 2 deletions src/styles/nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
color: black;
font-size: 1.6rem;
line-height: 2rem;
font-weight: 600;
font-weight: 500;
border-radius: 0.8rem;
display: flex;
align-items: center;
Expand Down Expand Up @@ -116,7 +116,7 @@
.DocSearch-Button-Placeholder {
font-size: 1.6rem;
line-height: 1.63;
font-weight: 500;
font-weight: 400;
color: $muted-background;
}

Expand Down
4 changes: 2 additions & 2 deletions src/styles/pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

span {
font-size: 1.4rem;
font-weight: 500;
font-weight: 400;
line-height: 1.5;
}

Expand All @@ -62,7 +62,7 @@

span {
font-size: 1.6rem;
font-weight: 600;
font-weight: 500;
line-height: 1.5;
}

Expand Down
4 changes: 2 additions & 2 deletions src/styles/search-modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
.DocSearch-Input {
font-size: 1.6rem;
line-height: 1.63;
font-weight: 500;
font-weight: 400;
color: white;

&::placeholder {
Expand Down Expand Up @@ -112,7 +112,7 @@
.DocSearch-HitsFooter {
a {
border: none;
font-weight: 600;
font-weight: 500;
font-size: 1.6rem;
line-height: 150%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/styles/search-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.searchQueryInput_u2C7 {
font-size: 1.6rem;
line-height: 1.63;
font-weight: 500;
font-weight: 400;
color: white;
height: 4.4rem;
background-color: rgba($accent, 0.8);
Expand Down
17 changes: 16 additions & 1 deletion src/styles/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
.menu__link {
font-size: 1.6rem;
line-height: 1.5;
font-weight: 500;
font-weight: 400;
color: white !important;
}

Expand Down Expand Up @@ -79,7 +79,22 @@
}

.menu__list {
position: relative;
padding-left: 2.4rem;
margin: 0;

&::before {
content: '';
position: absolute;
display: block;
width: 1px;
height: 100%;
top: 0;
left: 2.4rem;
transform: translateX(-100%);
background-color: rgba(white, 0.2);
}

.menu__link {
border: none;
background-color: transparent;
Expand Down
7 changes: 4 additions & 3 deletions src/styles/toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@
&::before {
content: '';
position: absolute;
top: 0.6rem;
top: 1.1rem;
left: 0;
width: 0.4rem;
height: 1.2rem;
transform: translateY(-50%);
background: #f6f655;
border-radius: 0.4rem;
opacity: 0;
Expand All @@ -38,9 +39,9 @@
}

a {
font-size: 1.6rem;
font-size: 1.4rem;
font-weight: normal;
line-height: normal;
line-height: 1.5;
color: white;
opacity: 0.5;
transition: opacity 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.2s ease-in-out;
Expand Down
5 changes: 5 additions & 0 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
---ifm-link-color: white;
--docsearch-highlight-color: #{$accent};
--ifm-h1-font-size: 2.4rem;

--ifm-font-weight-light: 200;
--ifm-font-weight-normal: 300;
--ifm-font-weight-semibold: 500;
--ifm-font-weight-bold: 600;
}

@include lg {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Admonition/Layout/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
.admonitionHeading {
font-size: 1.6rem;
line-height: 150%;
font-weight: 600;
font-weight: 500;
display: flex;
align-items: center;
gap: 0.4rem;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/Details/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
padding: 2rem;
font-size: 1.6rem;
line-height: 1.5;
font-weight: 500;
font-weight: 400;
color: white;
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocBreadcrumbs/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.breadcrumbsContainer {
--ifm-breadcrumb-size-multiplier: 0.8;
--margin-bottom: 2rem;
--margin-bottom: 2.4rem;
margin-bottom: var(--margin-bottom);
}
1 change: 1 addition & 0 deletions src/theme/DocRoot/Layout/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default function DocRootLayoutMain({ hiddenSidebarContainer, children }:
<main
className={clsx(styles.docMainContainer, (hiddenSidebarContainer || !sidebar) && styles.docMainContainerEnhanced)}
>
<div className={styles.docBackground} />
<div className={clsx(styles.docItemWrapper)}>{children}</div>
</main>
)
Expand Down
21 changes: 21 additions & 0 deletions src/theme/DocRoot/Layout/Main/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,34 @@
.docMainContainer {
display: flex;
width: 100%;
position: relative;
}

.docBackground {
position: fixed;
top: var(--ifm-navbar-height);
left: var(--doc-sidebar-width);
width: calc(100vw - var(--doc-sidebar-width));
height: calc(100vh - var(--ifm-navbar-height));
opacity: 0.5;
background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%),
linear-gradient(
138deg,
rgba(90, 92, 10, 0.01) -22.01%,
rgba(113, 115, 13, 0.15) 10.21%,
rgba(94, 138, 133, 0.2) 39.44%,
rgba(12, 14, 11, 0.5) 111.64%
),
radial-gradient(105.48% 59.33% at -6.41% 111.39%, rgba(246, 246, 85, 0.1) 0%, rgba(246, 246, 85, 0) 100%),
radial-gradient(108.78% 60.14% at 102.97% -4.95%, rgba(94, 237, 135, 0.1) 0%, rgba(94, 237, 135, 0) 100%);
}

.docItemWrapper {
width: 100%;
max-width: 1440px;
margin: 0 auto;
padding: 1.6rem;
position: relative;
}

@media (min-width: 997px) {
Expand Down
6 changes: 3 additions & 3 deletions src/theme/SearchPage/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
width: 100%;
font-size: 1.6rem;
line-height: 1.63;
font-weight: 500;
font-weight: 400;
color: white;
height: 4.4rem;
background-color: rgba($accent, 0.8);
Expand Down Expand Up @@ -58,7 +58,7 @@
color: rgba(white, 0.5);
font-size: 1.6rem;
line-height: 1.5;
font-weight: 400;
font-weight: 300;
gap: 0.4rem;
&:after {
margin: 0 !important;
Expand All @@ -68,7 +68,7 @@
}

.searchResultItemHeading {
font-weight: 600;
font-weight: 500;
font-size: 2rem;
line-height: 1.5;
margin-bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/theme/TOCCollapsible/CollapseButton/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
span {
font-size: 1.6rem;
line-height: normal;
font-weight: 600;
font-weight: 500;
}

svg {
Expand Down
4 changes: 2 additions & 2 deletions src/theme/TOCCollapsible/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@

.tocCollapsibleContent ul li {
margin: 0;
font-size: 1.6rem;
line-height: normal;
font-size: 1.4rem;
line-height: 1.63;
color: white;

ul {
Expand Down