Because of the picture I have at the bottom of my title slide, I want to:
- move all
title
,subtitle
andauthor
up from their center positions. - remove the
Rlogo
in the title slide only (don't really know how to do it). I could only remove slide number for now using.title-slide .remark-slide-number { display: none; }
.
Any suggestion is appreciated! Thanks!
Here is my reproducible example:
tweaks.css file
/* for logo and slide number in the footer */
.remark-slide-content:after {
content: "";
position: absolute;
bottom: 15px;
right: 8px;
height: 40px;
width: 120px;
background-repeat: no-repeat;
background-size: contain;
background-image: url("Rlogo.png");
}
/* for background image in title slide */
.title-slide {
background-image: url("slideMasterSample.png");
background-size: cover;
}
.title-slide h1 {
color: #F7F8FA;
margin-top: -170px;
}
.title-slide h2, .title-slide h3 {
color: #e7e8e2;
line-height: 1.0em;
margin-top: -75px;
}
.title-slide .remark-slide-number {
display: none;
}
1st attempt: modified margin-top
in tweaks.css
file as mentioned in xaringan
wiki
---
title: "Presentation Ninja"
subtitle: "xaringan"
author: "Author"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["default", "tweaks.css"]
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
Result 1:
2nd attempt: added <br>
to the title
to manually push it up but then the subtitle
and author
were also pushed down. Adding <br>
to subtitle
and author
did not help either.
---
title: "Presentation Ninja<br><br><br><br><br><br>"
subtitle: "xaringan"
author: "Author"
output:
xaringan::moon_reader:
lib_dir: libs
css: ["default", "tweaks.css"]
nature:
highlightStyle: github
highlightLines: true
countIncrementalSlides: false
---
Result 2:
Photos used