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
21 changes: 18 additions & 3 deletions src/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ html[data-theme-override="light"] {
}

.docs-wrapper .navbar__items {
@apply bg-white dark:bg-neutral-950;
// @apply bg-white dark:bg-neutral-950;
}

.docs-wrapper .main-wrapper,
Expand All @@ -130,6 +130,13 @@ html[data-theme-override="light"] {
padding: 0 2rem;
}

.plugin-pages {
.logo-container {
box-shadow: none;
background: none;
}
}

.navbar {
transition: transform 0.25s ease-in-out;
transform: translateY(0);
Expand Down Expand Up @@ -165,12 +172,20 @@ html[data-theme-override="light"] {
.navbar-sidebar {
@apply h-fit dark:bg-neutral-900;

.navbar-sidebar__brand {
@apply relative;
}

.navbar-sidebar__items {
height: auto;
}

.navbar-sidebar__item.menu {
padding: 10px 6px !important;
}

.color-mode-toggle {
@apply absolute top-[21px] right-6 h-fit;
@apply absolute top-1/2 right-6 -translate-1/2;
}

.menu__link--sublist::after {
Expand Down Expand Up @@ -258,7 +273,7 @@ html[data-theme-override="light"] {
@apply m-0 h-8 w-8;
}
b {
@apply flex h-8 items-center rounded-lg px-2 font-mono hover:bg-neutral-100 dark:hover:bg-neutral-200/10;
@apply flex h-8 items-center rounded-lg px-2 font-mono font-semibold hover:bg-neutral-100 dark:hover:bg-neutral-200/10;
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions src/theme/ColorModeToggle/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
@reference '../../scss/custom.scss';

.toggle {
@apply flex h-8 w-8 justify-center rounded-lg hover:bg-neutral-100 dark:hover:bg-neutral-300/10;
@apply flex justify-center rounded-lg;
height: 21px;
width: 21px;
}

.toggleButton {
@apply h-4 w-4;
align-items: center;
display: flex;
justify-content: center;
height: 100%;
transition: background var(--ifm-transition-fast);
}

.toggleIcon {
width: 1.25rem;
height: 1.25rem;
width: 1rem;
height: 1rem;
}
1 change: 0 additions & 1 deletion src/theme/Icon/Close/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default function IconClose({
return (
<Xmark
className={className}
viewBox="0 0 15 15"
width={width}
height={height}
{...restProps}
Expand Down
3 changes: 3 additions & 0 deletions src/theme/Navbar/Logo/index.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.logo-container {
box-shadow: 0 0 18px 8px var(--tw-shadow-color);
}
10 changes: 9 additions & 1 deletion src/theme/Navbar/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@ import React from "react";
import TestplaneLogo from "@site/static/img/logo.svg";
import TestplaneLogoDark from "@site/static/img/logo-dark.svg";
import Link from "@docusaurus/Link";
import clsx from "clsx";

import styles from "./index.module.css";

export default function NavbarLogo(): JSX.Element {
return (
<div className="flex">
<div
className={clsx(
styles["logo-container"],
"logo-container flex lg:bg-white/70 lg:shadow-white/90 dark:lg:bg-neutral-950/70 dark:lg:shadow-neutral-950/90",
)}
>
<TestplaneLogo className="h-8 w-8 dark:hidden" />
<TestplaneLogoDark className="hidden h-8 w-8 dark:block" />
<Link
Expand Down