Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/refresh docs 2025/css improvements #919

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
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const config = {
({
docs: {
sidebar: {
hideable: true,
hideable: false,
},
},
navbar: {
Expand Down Expand Up @@ -169,7 +169,7 @@ const config = {
},
colorMode: {
defaultMode: "light",
disableSwitch: true,
disableSwitch: false,
respectPrefersColorScheme: false,
},
footer: {
Expand Down
209 changes: 173 additions & 36 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,66 @@
/* You can override the default Infima variables here. */

:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary: #1e56e3;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.29);

/* New */

--secondary-blue-900: #001c63;
--sidebar-bg-color: #f3f4f6;
--secondary-blue-500: #3970fd;
--primary-blue-600: #1e56e3;
--base-neutral-0: #ffffff;
--primary-neutral-800: #1f2a37;
--ifm-menu-color-active: #1e56e3;
--primary-neutral-600: #4d5761;
--ifm-breadcrumb-color-active: var(--primary-neutral-600);
--ifm-link-color: #1e56e3;
--ifm-button-background-color: #2e8555;
--ifm-button-background-color-dark: #205d3b;
--ifm-hover-overlay: rgba(0, 0, 0, 0.05);
--brand-color: black;
--next-prev-border-color: #e5e7eb;

/* New */
}

/* For readability concerns, you should choose a lighter palette in dark mode. */

[data-theme="dark"] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary: #1e56e3;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);

/* New */

--secondary-blue-900: #c6d6ff;
--sidebar-bg-color: #161f36;
--primary-neutral-800: #9da4ae;
--ifm-button-background-color: #25c2a0;
--ifm-button-background-color-dark: #2e8555;

/* New */
}

[data-theme="dark"] .themedComponent--light_NVdE {
display: initial;
}

[data-theme="dark"] .navbar {
border-bottom: 1px solid #2d3956;
}

/* stylelint-disable docusaurus/copyright-header */
Expand All @@ -42,7 +80,7 @@
/* You can override the default Infima variables here. */

:root {
--ifm-color-primary: #31bb6b;
--ifm-color-primary: #1e56e3;
--ifm-color-primary-dark: #cc4a00;
--ifm-color-primary-darker: #993800;
--ifm-color-primary-darkest: #662500;
Expand All @@ -69,22 +107,21 @@
--ifm-heading-line-height: 1.5;
--ifm-h1-font-size: 2.25rem;
--ifm-h2-font-size: 1.875rem;
--ifm-navbar-shadow: none;
--ifm-navbar-shadow: 0 1px 2px 0 #0000001a;
--ifm-navbar-search-input-background-color: var(--ifm-color-gray-100);
--ifm-navbar-search-input-color: var(--ifm-color-content);
--ifm-table-stripe-background: #efeff2;
--ifm-font-family-base: Inter, system-ui, -apple-system, Segoe UI, Roboto,
Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI",
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol";
--ifm-font-family-base: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, "Segoe UI", Helvetica,
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
--ifm-font-family-monospace: "IBM Plex Mono", SFMono-Regular, Menlo, Monaco,
Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Dak mode css */

html[data-theme="dark"] {
--ifm-background-color: #020712;
--ifm-background-color: #111927;
--ifm-background-surface-color: var(--ifm-background-color);
--ifm-menu-color: var(--ifm-color-gray-200);
--ifm-toc-link-color: var(--ifm-color-gray-200);
Expand All @@ -94,24 +131,24 @@ html[data-theme="dark"] {
--ifm-table-stripe-background: #001242;
--ifm-navbar-search-input-placeholder-color: var(--ifm-color-gray-200);
--ifm-navbar-search-input-icon: url('data:image/svg+xml;utf8,<svg fill="%23C9C9CC" alt="Search" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="16px" width="16px"><path d="M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z" /></svg>');
}

@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");
/* New */

/* .menu--responsive > .menu__list > .menu__list-item:not(:last-of-type):not(.menu__list-item--collapsed) {
margin-bottom: 3rem;
--ifm-hover-overlay: rgba(0, 0, 0, 0);
--ifm-color-primary: #1e56e3;
--secondary-blue-900: #c6d6ff;
--sidebar-bg-color: #161f36;
--primary-neutral-800: #c9c9cc;
--ifm-button-background-color: #25c2a0;
--ifm-button-background-color-dark: #2e8555;
--ifm-navbar-link-color: #9da4ae;
--brand-color: white;
--primary-neutral-600: #c4c4c4;
--next-prev-border-color: #293441;
}

.table-of-contents > li:not(:last-of-type) > ul {
margin-bottom: 1.5rem;
} */
/* .table-of-contents__left-border li ul li a {
font-size: 0.75rem !important;
}
.table-of-contents__left-border li a:nth-child(1) {
font-size: 0.9rem;
} */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap");

.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
Expand All @@ -129,10 +166,30 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- {
margin-bottom: 1.5rem;
}

.menu__link {
/* New */

.menu {
background-color: var(--sidebar-bg-color);
}

/* New */

.menu__link,
.menu * {
line-height: 1.5;
font-size: 0.7rem;
padding-left: 0.5rem;
padding-bottom: 0;
text-transform: uppercase;
font-weight: 700;
background: transparent !important;
}

.menu__list {
border-bottom: 1px solid var(--next-prev-border-color);
}
.menu__list ul{

.menu__list ul {
margin-left: 15px;
margin-right: 15px;
}
Expand All @@ -149,17 +206,45 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- {
margin-top: calc(var(--ifm-h3-vertical-rhythm-top) * 0rem);
}

.navbar__items--right> .navbar__item:not(:first-of-type) {
/* New */

.navbar {
background-color: var(--sidebar-bg-color);
box-shadow: var(--ifm-navbar-shadow);
padding: 24px 48px;
height: auto;
}

.navbar__item {
font-size: 0.875rem;
}

.navbar__link:hover,
.navbar__link--active {
color: var(--primary-blue-600);
text-decoration: none;
}

/* New */

.navbar__items--right > .navbar__item:not(:first-of-type) {
margin-left: 0.25px;
}
.navbar__link.active:hover{
color: #102b19;

/* New */

.dropdown__link:hover {
color: #2563eb;
}
.dropdown__link{
color:#000000

.dropdown__link--active {
background-color: transparent;
}
.dropdown__link:hover{
color:#31bb6b

/* New */

.dropdown__link {
color: var(--ifm-navbar-link-color);
}

.markdown {
Expand Down Expand Up @@ -237,9 +322,22 @@ h1.docTitle_node_modules-\@docusaurus-theme-classic-src-theme-DocItem- {
background: url("/img/youtube.svg") no-repeat;
position: relative;
right: 8px;
top:4.5px;
top: 4.5px;
}

/* New */

.footer--dark {
--ifm-footer-background-color: #111927;
}

.footer--dark li {
margin-bottom: 0;
line-height: normal;
}

/* New */

.footer__icon {
margin: 0;
padding: 2px;
Expand Down Expand Up @@ -307,7 +405,7 @@ html[data-theme="dark"] .header-github-link:before {
background: url(/img/github.svg) no-repeat;
}
html[data-theme="dark"] .header-youtube-link:before {
background: url(/img/youtube.svg) no-repeat;
background: url(/img/youtube-white.svg) no-repeat;
}

.markdown > button {
Expand Down Expand Up @@ -346,7 +444,6 @@ html[data-theme="dark"] .header-youtube-link:before {
}
}


@media (max-width: 1000px) {
.navbar__items--right > .navbar__item:not(:first-of-type) {
margin-left: 0.25rem;
Expand Down Expand Up @@ -385,3 +482,43 @@ html[data-theme="dark"] .header-youtube-link:before {
margin-right: 0.5rem;
}
}

/* New */

h1 {
font-size: 1.75rem;
font-weight: 700;
}
.Heading {
font-size: 1.5rem;
font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--secondary-blue-900);
margin: 20px 0 !important;
}

p,
textarea,
li,
.Heading div {
margin-bottom: 1.25rem;
color: var(--primary-neutral-800);
font-size: 0.9375rem;
line-height: 1.625rem;
}

a {
color: #2563eb;
text-decoration: none;
}

a:hover {
color: #86a7ef;
}
Loading
Loading