Skip to content

Commit

Permalink
Merge pull request #60 from cdw9/54_headings_toc
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbeeston authored Dec 10, 2024
2 parents b3355ac + 4771a0a commit 3541dca
Showing 1 changed file with 53 additions and 6 deletions.
59 changes: 53 additions & 6 deletions boostlook.css
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ html.dark {
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format('truetype');
}

@font-face {
font-family: "Noto Sans Display";
font-style: normal;
font-weight: 550;
font-stretch: semi-condensed;
font-display: block;
src: url('/_/fonts/NotoSansDisplay.ttf') format('truetype'),
url('../../../../tools/boostlook/NotoSansDisplay.ttf') format('truetype'),
url("https://cppalliance.org/fonts/NotoSansDisplay.ttf") format('truetype');
}

@font-face {
font-family: "Noto Sans Display";
font-style: italic;
Expand Down Expand Up @@ -636,12 +647,27 @@ p, h1, h2, h3, h4, h5, h6 {
overflow-x: auto;
}

#boost-legacy-docs-wrapper h2.title,
#boost-legacy-docs-wrapper h3.title,
.boostlook .title {
font-weight: bolder;
margin-bottom: 0.5rem;
#boost-legacy-docs-wrapper h2.title {
margin-top: 0;
margin-bottom: 0.5rem;
font-weight: 500;
}

#boost-legacy-docs-wrapper h3.title {
font-weight: 600;
margin-bottom: 0.5rem;
font-feature-settings: normal;
}

.boostlook h2 a code {
color: var(---bl-nav-link-color);
font-size: 2rem;
}

.boostlook h3 a code,
.boostlook h3 a:hover code {
color: var(---bl-nav-link-color) !important;
font-size: 1.5rem;
}

.boostlook pre.rouge .o {
Expand Down Expand Up @@ -965,6 +991,21 @@ p, h1, h2, h3, h4, h5, h6 {


/*---------- Quickbook docs styling fixes -----------*/

#boost-legacy-docs-wrapper.boostlook h2 {
font-size: 2rem;
border-bottom: 1px solid #eaf0f3;
border-bottom: 1px solid var(--bl-table-border-color);
}

#boost-legacy-docs-wrapper.boostlook h3 {
font-size: 1.5rem;
}

#boost-legacy-docs-wrapper.boostlook h4 {
font-size: 1.35rem;
}

#boost-legacy-docs-wrapper.boostlook p {
margin-bottom: 0;
font-size: 16px;
Expand Down Expand Up @@ -1056,7 +1097,8 @@ p, h1, h2, h3, h4, h5, h6 {
}

.boostlook dl.toc > dt {
font-weight: bold;
font-weight: 550;
font-feature-settings: normal;
}

.boostlook dl.toc dd {
Expand All @@ -1067,6 +1109,11 @@ p, h1, h2, h3, h4, h5, h6 {
margin-bottom: .6rem;
}

.boostlook dl.toc code {
font-size: 80%;
line-height: 1.15;
}

.boostlook .copyright-footer {
padding: 1rem;
}
Expand Down

0 comments on commit 3541dca

Please sign in to comment.