Skip to content

Minor branding hints #1567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
23 changes: 23 additions & 0 deletions docs/authoring/brand.qmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
---
title: Multiformat branding with `_brand.yml`
title-block-banner: true
include-in-header:
- text: |
<style>
#title-block-header .quarto-title-banner .title {
position: relative;
}
#title-block-header .quarto-title-banner .title:after {
content: '';
display: block;
position: absolute;
transform: translateY(50%);
top: -0.5em;
right: -165px;
height: 1em;
width: 4.5em;
background:
url(./images/brand-logo.png);
background-position: left;
background-size: contain;
background-repeat: no-repeat;
}
</style>
---

## Overview
Expand Down
Binary file added docs/authoring/images/brand-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 18 additions & 2 deletions docs/output-formats/html-themes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ You can also customize these themes or create your own new themes. Learn how to

## Basic Options

If you are using a Bootstrap theme or the Pandoc theme, there are a set of options you can provide in document metadata to customize its appearance. These include:
::: {.callout-tip}
These settings only apply to the `html` output format; more basic options can be set across all formats with a [brand file](/docs/reference/metadata/brand.qmd)
:::

If you are using a Bootstrap theme or the Pandoc theme, there are a set of options you can provide in `_quarto.yml` or document metadata to customize its appearance. These include:

+--------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Option | Description |
Expand All @@ -57,10 +61,22 @@ If you are using a Bootstrap theme or the Pandoc theme, there are a set of optio
| `margin-left`, `margin-right`, `margin-top`, `margin-bottom` | Sets the CSS [`margin`](https://developer.mozilla.org/en-US/docs/Web/CSS/margin) properties for the document body. |
+--------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+

For example. here we set the font-size a bit larger and specify that we want a bit more space between lines of text:
For example. here we set the font-size a bit larger and specify that we want a bit more space between lines of text in a specific document:

``` yaml
---
title: "My Document"
format:
html:
theme: cosmo
fontsize: 1.1em
linestretch: 1.7
---
```

Alternatively, adding this to `_quarto.yml` will apply that setting to all pages:

``` yaml
format:
html:
theme: cosmo
Expand Down