Skip to content

Commit 858edc4

Browse files
committed
style: add GitHub link to navigation and update layout
1 parent 438e07d commit 858edc4

File tree

3 files changed

+24
-7
lines changed

3 files changed

+24
-7
lines changed

docs/website/index.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@
3939
<li role="none"><a href="#examples" class="secondary" role="menuitem">Examples</a></li>
4040
<li role="none"><a href="#features" class="secondary" role="menuitem">Features</a></li>
4141
<li role="none"><a href="./docs/" class="secondary" role="menuitem">Docs</a></li>
42+
<li>
43+
<a href="https://www.github.com/cppalliance/mrdocs" class="contrast" aria-label=" GitHub repository">
44+
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg"
45+
viewBox="0 0 496 512" height="16px">
46+
<path fill="currentColor"
47+
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path>
48+
</svg>
49+
</a>
50+
</li>
4251
</ul>
4352
</div>
4453
</nav>
@@ -69,7 +78,7 @@ <h1>MrDocs</h1>
6978
<div class="container">
7079
<div class="grid principles-banner">
7180
<div class="principles-image">
72-
<div class="box1 box-shape2 box270">
81+
<div class="box1 box-shape1 box0">
7382
<div class="inner-box thinking"></div>
7483
</div>
7584
</div>

docs/website/index.html.hbs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
{{#each navbar}}
5151
<li role="none"><a href="{{ href }}" class="secondary" role="menuitem">{{ title }}</a></li>
5252
{{/each}}
53+
<li>
54+
<a href="{{ site.github.url }}" class="contrast" aria-label="{{ site.title}} GitHub repository">
55+
<svg aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg"
56+
viewBox="0 0 496 512" height="16px">
57+
<path fill="currentColor"
58+
d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path>
59+
</svg>
60+
</a>
61+
</li>
5362
</ul>
5463
</div>
5564
</nav>
@@ -80,7 +89,7 @@
8089
<div class="container">
8190
<div class="grid principles-banner">
8291
<div class="principles-image">
83-
<div class="box1 box-shape2 box270">
92+
<div class="box1 box-shape1 box0">
8493
<div class="inner-box thinking"></div>
8594
</div>
8695
</div>

docs/website/styles.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,6 @@ pre {
14551455

14561456
code, kbd, pre {
14571457
border-radius: var(--border-radius);
1458-
background: var(--code-background-color);
14591458
color: var(--code-color);
14601459
font-weight: var(--font-weight);
14611460
line-height: initial
@@ -1475,7 +1474,7 @@ pre {
14751474
pre > code {
14761475
display: block;
14771476
padding: var(--spacing);
1478-
background: 0 0;
1477+
background-color: rgba(0, 0, 0, 0.55);
14791478
font-size: 14px;
14801479
line-height: var(--line-height)
14811480
}
@@ -2137,7 +2136,8 @@ body > nav a {
21372136

21382137
body > nav a svg {
21392138
vertical-align: text-bottom;
2140-
height: 1rem
2139+
height: 1rem;
2140+
color: initial;
21412141
}
21422142

21432143
body > nav ul:first-of-type {
@@ -2678,7 +2678,7 @@ section#demo {
26782678
}
26792679

26802680
.documentation-panel {
2681-
background-color: rgba(0, 0, 0, 0.3);
2681+
background-color: rgba(255, 255, 255, 0.10);
26822682
border-radius: 20px;
26832683
flex: 1;
26842684
padding: 30px;
@@ -2905,7 +2905,6 @@ nav {
29052905

29062906
.nav ul li {
29072907
list-style: none;
2908-
font-weight: bold;
29092908
}
29102909

29112910
.nav .logo-link {

0 commit comments

Comments
 (0)