Skip to content

Commit

Permalink
Add theme property to customize logo height in default navigation
Browse files Browse the repository at this point in the history
REDMINE-20560
  • Loading branch information
tf committed Jan 16, 2024
1 parent b7b8d3d commit 3e787ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,8 @@ System](https://material.io/design/color/the-color-system.html#color-theme-creat
| `default_navigation_progress_bar_background_color` | Background color of the progress bar. |
| `default_navigation_progress_bar_indicator_color` | Color of the progress bar indicator. Defaults to `accent_color`. |
| `default_navigation_separator_color` | Color of separator lines between chapters. |
| `default_navigation_desktop_logo_height` | Height of the logo in the desktop layout. |
| `default_navigation_mobile_logo_height` | Height of the logo in the mobile layout. |

## Palette Colors

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,24 @@ div:focus-within > .contextIcon,
}

.logo {
display: flex;
align-items: center;
top: 0;
left: 15px;
height: 100%;
max-width: 15%;
}

.logo picture {
height: var(--theme-default-navigation-mobile-logo-height, 100%);
}

@media (min-width: 781px) {
.logo picture {
height: var(--theme-default-navigation-desktop-logo-height, 100%);
}
}

.logo img {
height: 100%;
max-width: 100%;
Expand Down

0 comments on commit 3e787ba

Please sign in to comment.