Skip to content

Commit

Permalink
fix: prepare for new mac header
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Jul 7, 2021
1 parent c399e90 commit 282d648
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions src/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,25 @@ a.title h1.title {
color: var(--ls-search-icon-color, #9fa6b2);
}

.cp__header.electron-mac {
height: var(--ct-header-height);
}

#search {
padding: 0;
align-self: stretch;
}

.cp__header #search-field {
height: auto;
padding: 0;
}

#search > .inner {
display: flex;
align-items: center;
}

.ls-block :is(h1, h2, h3, h4, h5) {
font-family: var(--ct-page-title-font-family);
}
Expand Down
4 changes: 2 additions & 2 deletions src/_root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ body {
--ls-font-family: Overpass, "Noto Sans SC", sans-serif;
}

.cp__header.electron-mac {
height: var(--ct-header-height);
:root.is-mac.is-electron {
--ct-header-height: 48px;
}

/* Some tweaks on making this theme a bit more compact on mobile.
Expand Down

0 comments on commit 282d648

Please sign in to comment.