Skip to content

Commit 7d61969

Browse files
more dark logo tests
1 parent 2234916 commit 7d61969

File tree

17 files changed

+152
-22
lines changed

17 files changed

+152
-22
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
logo:
2+
images:
3+
light-logo:
4+
path: light-logo.png
5+
alt: light logo
6+
small:
7+
light: light-logo
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
project:
2+
type: website
3+
theme:
4+
light: default
5+
dark: darkly
6+
website:
7+
navbar:
8+
logo:
9+
light: quarto.png
10+
style: "docked"
11+
search: true
12+
contents:
13+
- index.qmd
14+
- conclusion.qmd
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: conclusion
3+
---
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*-- scss:rules --*/
2+
3+
nav.sidebar.sidebar-navigation:not(.rollup) {
4+
background-color: #282b30;
5+
}
6+
7+
nav.navbar {
8+
background-color: rgba(13, 108, 251, 25%);
9+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Yes dark logo if theme enables dark mode
3+
_quarto:
4+
tests:
5+
html:
6+
ensureHtmlElements:
7+
-
8+
- 'img[class*="light-content"][src="./quarto.png"][alt=""]'
9+
- 'img[class*="dark-content"][src="./quarto.png"][alt=""]'
10+
- []
11+
---
12+
13+
Chooses the project's light logo because there is no dark logo in the brand.
14+
15+
{{< lipsum 4 >}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.quarto/
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
logo:
2+
images:
3+
light-logo:
4+
path: light-logo.png
5+
alt: light logo
6+
small:
7+
light: light-logo
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
project:
2+
type: website
3+
theme:
4+
light: default
5+
dark: darkly
6+
website:
7+
sidebar:
8+
logo:
9+
light: quarto.png
10+
style: "docked"
11+
search: true
12+
contents:
13+
- index.qmd
14+
- conclusion.qmd
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: conclusion
3+
---

0 commit comments

Comments
 (0)