Skip to content

Commit

Permalink
Merge pull request #4 from zeko-labs/fix/link-change
Browse files Browse the repository at this point in the history
Changed Project link for github repository & Reduced indent between lines & Aligned Zeko Icon to left
  • Loading branch information
L-as authored Apr 5, 2024
2 parents afb667e + 5425c08 commit cc6fdc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 43 deletions.
26 changes: 4 additions & 22 deletions styles/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ h4 {
margin-top: 0.3rem;
}

.nextra-code-block {
margin-top: 0.2rem;
}

/* Set colors for common text elements */
p,
table,
Expand Down Expand Up @@ -228,28 +232,6 @@ pre {
background-color: var(--op-neutral-800);
}

/* External links styling */
/* Style nav external links */
.nextra-nav-container nav a[target="_blank"]:nth-child(2):after,
.nextra-nav-container nav a[target="_blank"]:nth-child(3):after,
.nextra-nav-container nav a[target="_blank"]:nth-child(4):after {
content: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.33622 2.84025L1.17647 10L0 8.82354L7.15975 1.66378H0.849212V0H10V9.15081H8.33622V2.84025Z' fill='%239195A6'/%3E%3C/svg%3E%0A ");
padding-left: 20px;
}

/* sidebar external links */
.nextra-sidebar-container a[target="_blank"]:after {
content: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.33622 2.84025L1.17647 10L0 8.82354L7.15975 1.66378H0.849212V0H10V9.15081H8.33622V2.84025Z' fill='%239195A6'/%3E%3C/svg%3E%0A ");
padding-left: 6px;
}

/* in-content external links */
.nextra-content a[target="_blank"]:after {
content: url('data:image/svg+xml,<svg width="8" height="8" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.33622 2.84025L1.17647 10L0 8.82354L7.15975 1.66378H0.849212V0H10V9.15081H8.33622V2.84025Z" fill="%233374DB"/></svg>');
padding-left: 5px;
margin-right: 2px;
}

/* Tables */
table tr {
background-color: transparent !important;
Expand Down
25 changes: 4 additions & 21 deletions theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import { useRouter } from "next/router";
import { useConfig } from "nextra-theme-docs";
import { FeelbackYesNo, PRESET_LIKE_DISLIKE } from "@feelback/react";
import "@feelback/react/styles/feelback.css";

const config: DocsThemeConfig = {
Expand All @@ -11,7 +10,7 @@ const config: DocsThemeConfig = {
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1288.74 345.59"
width="194"
width="134"
height="32"
>
<path
Expand Down Expand Up @@ -43,7 +42,7 @@ const config: DocsThemeConfig = {
),
darkMode: true,
project: {
link: "https://github.com/zeko-labs/zeko-labs.github.io",
link: "https://github.com/zeko-labs/zeko",
},
footer: {
text: "Zeko Documentation",
Expand All @@ -52,27 +51,11 @@ const config: DocsThemeConfig = {
defaultMenuCollapseLevel: 1,
autoCollapse: true,
},
toc: {
backToTop: true,
extraContent: () => (
<>
<hr className="divider top-divider" />
<FeelbackYesNo
contentSetId="b2983747-797d-4e6e-9ea3-15d59b9c27ce"
preset={PRESET_LIKE_DISLIKE}
textQuestion="Is this page useful?"
textAnswer="Thanks for your feedback :)"
/>
<hr className="divider" />
</>
),
},
feedback: {
content: "❤️ Share general feedback",
labels: "user-feedback",
content: "",
},
editLink: {
text: "✏️ Edit this page on GitHub",
text: "",
},
useNextSeoProps() {
const { asPath } = useRouter();
Expand Down

0 comments on commit cc6fdc0

Please sign in to comment.