Skip to content

Commit

Permalink
Merge pull request PaperMC#140 from PaperMC/fix-logo
Browse files Browse the repository at this point in the history
fix logo size and alignment
  • Loading branch information
kashike authored Mar 10, 2023
2 parents 501166b + 66f0603 commit 094949f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/navbar.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const navbar: Omit<Navbar, "style" | "hideOnScroll"> = {
logo: {
src: "img/logo-marker-light.svg",
srcDark: "img/logo-marker-dark.svg",
width: 130,
height: 32,
height: 42, // when changing here, also change css
width: 121,
alt: "PaperMC Docs",
},
items: [
Expand Down
8 changes: 8 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ html[data-theme="dark"] {

.navbar__logo {
margin: 0;
height: unset;
display: flex;
}

.navbar__logo img {
height: 42px;
width: auto;
margin-top: 2px; /* simulated line height to align stuff */
}

.menu__link--active:not(.menu__link--sublist) {
Expand Down

0 comments on commit 094949f

Please sign in to comment.