Skip to content

Commit

Permalink
Fix #3493 — ensure SVG logos are visible with SHOW_BLOG_TITLE = False
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 2, 2021
1 parent 578e535 commit b44b34e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nikola/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ COMPILERS = ${COMPILERS}

# If you want to hide the title of your website (for example, if your logo
# already contains the text), set this to False.
# Note: if your logo is a SVG image, and you set SHOW_BLOG_TITLE = False,
# you should explicitly set a height for #logo in CSS.
# SHOW_BLOG_TITLE = True

# Paths for different autogenerated bits. These are combined with the
Expand Down
5 changes: 5 additions & 0 deletions nikola/data/themes/base/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ pre.code, code {
overflow: auto;
}

/* Set a minimum logo height to ensure .svg are displayed if there is no brand text (#3493) */
#logo {
min-height: 25px;
}

/* SOURCE: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
@media print {
*,
Expand Down
5 changes: 5 additions & 0 deletions nikola/data/themes/bootstrap4/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,8 @@ pre.code {
html[dir="rtl"] body {
text-align: right;
}

/* Set a minimum logo height to ensure .svg are displayed if there is no brand text (#3493) */
#logo {
min-height: 25px;
}

0 comments on commit b44b34e

Please sign in to comment.