Skip to content

Commit 84ee582

Browse files
committed
Add FineCode logo to docs
1 parent 357a68c commit 84ee582

3 files changed

Lines changed: 119 additions & 0 deletions

File tree

docs/finecode_logo_white.png

56.2 KB
Loading
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{#-
2+
This file was automatically generated - do not edit
3+
-#}
4+
{% set class = "md-header" %}
5+
{% if "navigation.tabs.sticky" in features %}
6+
{% set class = class ~ " md-header--shadow md-header--lifted" %}
7+
{% elif "navigation.tabs" not in features %}
8+
{% set class = class ~ " md-header--shadow" %}
9+
{% endif %}
10+
<header class="{{ class }}" data-md-component="header">
11+
<nav class="md-header__inner md-grid" aria-label="{{ lang.t('header') }}">
12+
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__button md-logo" aria-label="{{ config.site_name }}" data-md-component="logo">
13+
{% include "partials/logo.html" %}
14+
</a>
15+
<label class="md-header__button md-icon" for="__drawer">
16+
{% set icon = config.theme.icon.menu or "material/menu" %}
17+
{% include ".icons/" ~ icon ~ ".svg" %}
18+
</label>
19+
<div class="md-header__title" data-md-component="header-title">
20+
<div class="md-header__ellipsis">
21+
<div class="md-header__topic">
22+
<span class="md-ellipsis">
23+
{{ config.site_name }}
24+
</span>
25+
</div>
26+
<div class="md-header__topic" data-md-component="header-topic">
27+
<span class="md-ellipsis">
28+
{% if page.meta and page.meta.title %}
29+
{{ page.meta.title }}
30+
{% else %}
31+
{{ page.title }}
32+
{% endif %}
33+
</span>
34+
</div>
35+
<a href="{{ config.extra.homepage | d(nav.homepage.url, true) | url }}" title="{{ config.site_name | e }}" class="md-header__logo-mobile" aria-label="{{ config.site_name }}">
36+
{% include "partials/logo.html" %}
37+
</a>
38+
</div>
39+
</div>
40+
{% if config.theme.palette %}
41+
{% if not config.theme.palette is mapping %}
42+
{% include "partials/palette.html" %}
43+
{% endif %}
44+
{% endif %}
45+
{% if not config.theme.palette is mapping %}
46+
{% include "partials/javascripts/palette.html" %}
47+
{% endif %}
48+
{% if config.extra.alternate %}
49+
{% include "partials/alternate.html" %}
50+
{% endif %}
51+
{% if "material/search" in config.plugins %}
52+
{% set search = config.plugins["material/search"] | attr("config") %}
53+
{% if search.enabled %}
54+
<label class="md-header__button md-icon" for="__search">
55+
{% set icon = config.theme.icon.search or "material/magnify" %}
56+
{% include ".icons/" ~ icon ~ ".svg" %}
57+
</label>
58+
{% include "partials/search.html" %}
59+
{% endif %}
60+
{% endif %}
61+
{% if config.repo_url %}
62+
<div class="md-header__source">
63+
{% include "partials/source.html" %}
64+
</div>
65+
{% endif %}
66+
</nav>
67+
{% if "navigation.tabs.sticky" in features %}
68+
{% if "navigation.tabs" in features %}
69+
{% include "partials/tabs.html" %}
70+
{% endif %}
71+
{% endif %}
72+
</header>

docs/stylesheets/extra.css

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
.md-header__topic {
2+
display: none;
3+
}
4+
5+
.md-header__button.md-logo {
6+
margin: 0 0 0 0.2rem;
7+
}
8+
9+
.md-header__button.md-logo img {
10+
height: 1.65rem;
11+
}
12+
13+
/* Mobile: hide left logo button, show logo inside title area */
14+
@media screen and (max-width: 76.1875em) {
15+
.md-header__button.md-logo {
16+
display: none;
17+
}
18+
19+
.md-header__ellipsis {
20+
display: flex;
21+
justify-content: center;
22+
}
23+
24+
.md-header__logo-mobile {
25+
display: flex;
26+
justify-content: center;
27+
align-items: center;
28+
}
29+
30+
.md-header__logo-mobile img {
31+
height: 1.5rem;
32+
}
33+
}
34+
35+
/* Tablet (960px / 60em) */
36+
@media screen and (min-width: 60em) {
37+
.md-header__ellipsis {
38+
justify-content: flex-start;
39+
}
40+
}
41+
42+
/* Desktop: hide the logo inside title area */
43+
@media screen and (min-width: 76.25em) {
44+
.md-header__logo-mobile {
45+
display: none;
46+
}
47+
}

0 commit comments

Comments
 (0)