Skip to content

Commit

Permalink
Merge pull request #55 from cdw9/cdw9/54_qbk
Browse files Browse the repository at this point in the history
styling fixes for quickbook docs
  • Loading branch information
cdw9 authored Dec 4, 2024
2 parents 1b1d710 + de37aec commit ec5e02c
Showing 1 changed file with 164 additions and 2 deletions.
166 changes: 164 additions & 2 deletions boostlook.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@

/* Light Theme Variables */
--light-bl-background: rgb(255, 255, 255);
--light-bl-border-color: rgb(220, 220, 220);
--light-bl-breadcrumbs-svg-color: rgb(0, 0, 0);
--light-bl-caret-svg: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24px'%20viewBox='0%20-960%20960%20960'%20width='24px'%20fill='%23000000'%3E%3Cpath%20d='M320-200v-560l440%20280-440%20280Z'/%3E%3C/svg%3E");
--light-bl-card-background-color: rgb(255, 255, 255);
Expand Down Expand Up @@ -127,6 +128,7 @@

html {
--bl-background: var(--light-bl-background);
--bl-border-color: var(--light-bl-border-color);
--bl-breadcrumbs-svg-color: var(--light-bl-breadcrumbs-svg-color);
--bl-caret-svg: var(--light-bl-caret-svg);
--bl-card-background-color: var(--light-bl-card-background-color);
Expand Down Expand Up @@ -175,6 +177,7 @@ html.dark {
--bl-nav-fade-color: var(--dark-bl-nav-fade-color);
--bl-paragraph-color: var(--dark-bl-paragraph-color);
--bl-pasteboard-color: var(--dark-bl-pasteboard-color);
--bl-pre-background: var(--dark-bl-code-background);
--bl-pagination-color: var(--dark-bl-pagination-color);
--bl-quote-background: var(--dark-bl-quote-background);
--bl-quote-word-color: var(--dark-bl-quote-word-color);
Expand Down Expand Up @@ -491,6 +494,7 @@ p, h1, h2, h3, h4, h5, h6 {
padding: 1rem;
overflow-x: auto;
border-radius: 8px;
border-color: var(--bl-code-border-color);
}

.boostlook:not(:has(.doc)) div.highlight {
Expand All @@ -499,15 +503,14 @@ p, h1, h2, h3, h4, h5, h6 {

.boostlook:not(:has(.doc)) table {
border-collapse: collapse;
margin: 1em;
margin: 1em 0;
border: 1px solid var(--bl-table-border-color);
}

.boostlook:not(:has(.doc)) th {
background-color: var(--bl-table-head-background);
text-align: left;
padding: 0.25em 0.55em;
font-weight: 550;
}

.boostlook:not(:has(.doc)) td {
Expand Down Expand Up @@ -586,9 +589,12 @@ 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;
margin-top: 0;
}

.boostlook pre.rouge .o {
Expand Down Expand Up @@ -905,3 +911,159 @@ p, h1, h2, h3, h4, h5, h6 {
}

/*----------------- Styles specific to website-v2 end -----------------*/


/*---------- Quickbook docs styling fixes -----------*/
#boost-legacy-docs-wrapper.boostlook p {
margin-bottom: 0;
font-size: 16px;
}

#boost-legacy-docs-wrapper li {
font-size: 16px;
}

#boost-legacy-docs-wrapper.boostlook:not(:has(.doc)) th {
background-color: var(--bg-color);
}

.boostlook div.note,
.boostlook div.tip,
.boostlook div.important,
.boostlook div.caution,
.boostlook div.warning,
.boostlook div.blurb,
.boostlook p.blurb {
border: 1px solid var(--bl-border-color);
border-radius: 8px;
background-color: var(--bl-tabpanel-background);
margin: 1pc 0 0 0;
}

.boostlook div.note table,
.boostlook div.tip table,
.boostlook div.important table,
.boostlook div.caution table,
.boostlook div.warning table,
.boostlook div.blurb table,
.boostlook p.blurb table {
border: none;
border-collapse: collapse;
margin: 0;
}

.boostlook div.note th,
.boostlook div.tip th,
.boostlook div.important th,
.boostlook div.caution th,
.boostlook div.warning th,
.boostlook div.blurb th,
.boostlook .blurb th {
background-color: transparent !important;
font-size: 16px;
}

.boostlook div.note td,
.boostlook div.tip td,
.boostlook div.important td,
.boostlook div.caution td,
.boostlook div.warning td,
.boostlook div.blurb td,
.boostlook p.blurb td {
border: none !important;
padding: 1px;
}

.boostlook:not(:has(.doc)) td pre {
padding: 5px;
border-radius: 0;
}

.boostlook .programlisting {
margin: 1rem 0;
}

.boostlook table h1,
.boostlook table h2,
.boostlook table h3 {
line-height: 2rem;
}
.boostlook table h4,
.boostlook table h5,
.boostlook table h6 {
line-height: 1.75rem;
}

.boostlook div.toc {
border-radius: 8px;
padding: 1rem;
margin: 1rem 0;
}

#boost-legacy-docs-wrapper.boostlook div.toc > p {
padding-top: 0 !important;
}

.boostlook dl.toc > dt {
font-weight: bold;
}

.boostlook dl.toc dd {
padding-left: .6rem;
}

.boostlook dl.toc dd dl {
margin-bottom: .6rem;
}

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

body > .section,
body > .chapter,
#boost-legacy-docs-wrapper.boostlook > .section,
#boost-legacy-docs-wrapper.boostlook > .chapter,
#boost-legacy-docs-wrapper.boostlook > .document,
#boost-legacy-docs-wrapper.boostlook > .refentry,
#boost-legacy-docs-wrapper.boostlook > .book {
margin: 0rem 1rem;
padding: 1rem;
background-color: var(--card-color);
border-radius: 0.5rem;
}

/* qbk spirit nav hack */
.boostlook:not(:has(.doc)) .spirit-nav a img {
display: none;
}

.boostlook:not(:has(.doc)) .spirit-nav a,
#boost-legacy-docs-wrapper.boostlook:not(:has(.doc)) .spirit-nav a {
font-family: 'Material Symbols Outlined';
font-size: 18px;
display: inline-block;
width: 24px;
height: 24px;
color: var(--bl-nav-link-color);
}

.boostlook:not(:has(.doc)) .spirit-nav a[accesskey='p']::after {
content: "arrow_back";
}
.boostlook:not(:has(.doc)) .spirit-nav a[accesskey='u']::after {
content: "arrow_upward";
}
.boostlook:not(:has(.doc)) .spirit-nav a[accesskey='h']::after {
content: "home";
}
.boostlook:not(:has(.doc)) .spirit-nav a[accesskey='n']::after {
content: "arrow_forward";
}

@media screen and (max-width: 768px) {
.boostlook:not(:has(.doc)) .spirit-nav {
right: 2rem;
top: 0.2rem;
}
}

0 comments on commit ec5e02c

Please sign in to comment.