Can the footer area of a Quarto (Revealjs) presentation be coloured? #1645
-
I'm trying to create a coloured bar at the bottom of a Quarto presentation (Revealjs format), like the one that appears at the bottom of this slide: I created that slide with {xaringan} and in my custom CSS I specified it with .remark-slide-content {
color: #000;
font-size: 40px;
border-bottom: 35px solid #006682;
padding: 0 50px 0 50px;
} I see there's a Is there a way in Quarto/Revealjs to colour the footer area directly, or perhaps there's more of a hacky approach, like the one for {xaringan} above? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You can take a very similar approach with Quarto! Rather than Example .qmd file:
In the
This produces the following: |
Beta Was this translation helpful? Give feedback.
-
I know this has been answered already, but the provided answer didn't work for me. Perhaps something has changed since then. Instead, the following worked for me. Example ---
title: "Your title goes here"
format:
revealjs:
logo: custom-logo.png
footer: "Footer text goes here"
theme:
- default
- custom.scss
---
## This is a slide title
This is some text. Example /*-- scss:defaults --*/
$custom-background: #0000ff !default;
/*-- scss:rules --*/
.reveal .footer {
color: #ffffff;
background-color: $custom-background;
display: block;
position: fixed;
padding-bottom: 12px;
padding-top: 12px;
bottom: 0px !important; // Makes footer div flush with bottom of slide
width: 100%;
z-index: 2 !important; // Sets the footer div further down the z-index
}
.reveal .slide-logo {
margin-bottom: 6px !important; // Lowers logo more in line with rest of footer
z-index: 5 !important; // Keeps logo above footer div
} |
Beta Was this translation helpful? Give feedback.
You can take a very similar approach with Quarto! Rather than
.remark-slide-content
in your custom CSS file, use.reveal .footer > *
.Example .qmd file:
In the
style.css
file:This produces the following: