Skip to content

Commit 231157d

Browse files
committed
fix: show logo in docs navbar; remove blockquote border in README
- Add docs/stylesheets/extra.css: white pill background on .md-logo img so the dark navy hexagon is visible on the indigo navbar - Restore logo: assets/logo_small.png in mkdocs.yml - Wire extra_css: [stylesheets/extra.css] in mkdocs.yml - Replace README blockquote with italic text to eliminate the floating left-border line that appeared above the right-aligned logo image
1 parent 6242b16 commit 231157d

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="docs/assets/logo_small.png" alt="OnlineCML" width="180" align="right"/>
22

3-
> Causal inference for the real world — one observation at a time.
3+
*Causal inference for the real world — one observation at a time.*
44

55
[![CI](https://github.com/athammad/onlinecml/actions/workflows/ci.yml/badge.svg)](https://github.com/athammad/onlinecml/actions/workflows/ci.yml)
66
[![Coverage](https://img.shields.io/badge/coverage-97%25-brightgreen)](https://github.com/athammad/onlinecml)

docs/stylesheets/extra.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* Give the header logo a white pill background so it's visible on the indigo navbar */
2+
.md-header__button.md-logo img {
3+
background: white;
4+
border-radius: 6px;
5+
padding: 3px;
6+
}

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repo_name: athammad/onlinecml
66

77
theme:
88
name: material
9+
logo: assets/logo_small.png
910
favicon: assets/logo_small.png
1011
palette:
1112
- scheme: default
@@ -92,6 +93,9 @@ markdown_extensions:
9293
- pymdownx.arithmatex:
9394
generic: true
9495

96+
extra_css:
97+
- stylesheets/extra.css
98+
9599
extra_javascript:
96100
- javascripts/mathjax.js
97101
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js

0 commit comments

Comments
 (0)