Skip to content

Commit

Permalink
Navbar logotype divided into two separate links
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartek Musiał committed Sep 24, 2024
1 parent 85e57e8 commit a454a2f
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 19 deletions.
20 changes: 20 additions & 0 deletions docs/API/images/docs-badge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions docs/API/images/flotiq-badge-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions docs/API/images/flotiq-logo-wt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions docs/css/flotiq.css
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,15 @@ li.md-nav__item.md-nav__item--active:not(.md-nav__item--nested) {
width: unset;
}

.md-header__button.md-logo.docs-badge {
padding-left: 0;
margin-left: 0;
}

.md-header__button.md-logo.docs-badge img{
width: 50px;
}

@media screen and (min-width: 76.25em) {
.md-nav__item--nested .md-nav__toggle:checked ~ .md-nav__link .md-nav__icon, .md-nav__item--nested .md-nav__toggle:indeterminate ~ .md-nav__link .md-nav__icon {
color: #0083FC;
Expand Down
59 changes: 40 additions & 19 deletions theme/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,46 @@
aria-label="{{ lang.t('header.title') }}"
>
<div style="display: flex; align-content: center;">
<!-- Link to home -->
<a
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
title="{{ config.site_name | e }}"
class="md-header__button md-logo desktop"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/full_logo.svg' | url }}" alt="Flotiq">
</a>
<a
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
title="{{ config.site_name | e }}"
class="md-header__button md-logo mobile"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/small_logo.svg' | url }}" alt="Flotiq">
</a>
<div style="display: flex; align-items: center;">
<a
href="http://flotiq.com/"
title="{{ config.site_name | e }}"
class="md-header__button md-logo desktop"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/flotiq-logo-wt.svg' | url }}" alt="Flotiq">
</a>
<a
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
title="{{ config.site_name | e }}"
class="md-header__button md-logo docs-badge desktop"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/docs-badge.svg' | url }}" alt="Flotiq">
</a>
</div>
<div style="display: flex; align-items: center;">
<a
href="http://flotiq.com/"
title="{{ config.site_name | e }}"
class="md-header__button md-logo mobile"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/flotiq-badge-logo.svg' | url }}" alt="Flotiq">
</a>
<a
href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"
title="{{ config.site_name | e }}"
class="md-header__button md-logo docs-badge mobile"
aria-label="{{ config.site_name }}"
data-md-component="logo"
>
<img src="{{ 'API/images/docs-badge.svg' | url }}" alt="Flotiq">
</a>
</div>
</div>
<div>
<!-- Color palette -->
Expand Down

0 comments on commit a454a2f

Please sign in to comment.