Skip to content
Open
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
8 changes: 0 additions & 8 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ module.exports = {
"protobuf",
],
},
// algolia: {
// // apiKey: "5f882bef2dfc81f5f1b4e5ea87b2f165",
// appId: 'DY1AXAPBQY',
// apiKey: '391ef440955a44a32cbeb5e7db9a2b6c',
// indexName: "apache_shenyu",
// // Optional: see doc section below
// contextualSearch: true,
// },
imageZoom: {
// CSS selector to apply the plugin to, defaults to '.markdown img'
selector: '.markdown img',
Expand Down
67 changes: 67 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,70 @@
html[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}

/* ===== Navbar Style Overrides ===== */
:root {
--ifm-navbar-height: 52px;
--ifm-navbar-padding-vertical: 0;
--ifm-navbar-padding-horizontal: 1rem;
}

.navbar {
height: var(--ifm-navbar-height);
min-height: var(--ifm-navbar-height);
padding: 0 var(--ifm-navbar-padding-horizontal);
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
height: 100%;
flex-wrap: nowrap;
}

.navbar__brand {
height: 100%;
display: flex;
align-items: center;
flex-shrink: 0;
}

.navbar__logo {
height: 28px;
max-width: 180px;
width: auto;
}

.navbar__title {
display: none;
}

.navbar__item {
padding: 0 0.6rem;
font-size: 0.9rem;
}

.navbar__link {
line-height: normal;
}

.navbar-sidebar {
top: var(--ifm-navbar-height);
}

/* ===== Responsive Breakpoint: Switch to Hamburger Menu when Viewport ≤ 1200px ===== */
/* Coverage Scenario: Situations where the effective viewport size decreases—e.g., when the browser is zoomed in to 125%–250%. */
/* Infima defaults to switching at 996px; however, due to the large number of menu items, the breakpoint needs to be shifted earlier to 1200px. */
@media (max-width: 1200px) {
.navbar__toggle {
display: inherit;
}

.navbar__item {
display: none;
}

/* 保留搜索框在移动端可见 */
.navbar__search {
display: flex;
}
}
29 changes: 0 additions & 29 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,32 +347,3 @@
right: 0px !important;
}
}

@media screen and (max-width: 576px) {
.hero {
padding: 1.5rem 0.5rem;
}

.heroProjectTitle {
font-size: 2rem;
}

.heroProjectTagline {
font-size: 18px;
}

.buttonGetStarted,
.buttonGithub {
width: 8rem;
font-size: 14px;
}

.indexCtas a:last-of-type {
margin: 20px 16px;
}

.logoContainer {
min-height: 250px;
margin-top: 1.5rem;
}
}
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function Home() {
<main>
<div className={styles.hero}>
<div className="row" style={{ alignItems: "center" }}>
<div className="col col--5 col--offset-1">
<div className="col col--5 col--offset-1">
<h1 className={styles.heroProjectTitle}>
<img
src="/img/logo.svg"
Expand Down