Skip to content

Commit 10a82f5

Browse files
committed
style: update landing page design and documentation UI
- Enhanced website and documentation styling with improved CSS - Added MrDocsBanner.png and updated mrdocs-logo.svg - Improved header, navigation, and site-wide components - Updated chevron.svg to white and enhanced home.svg - Added logo.hbs partial and refined page layout - Updated README.adoc and index page documentation
1 parent 3f82b34 commit 10a82f5

File tree

19 files changed

+141
-47
lines changed

19 files changed

+141
-47
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
= MrDocs
22

3-
image::docs/modules/ROOT/images/MrDocsBanner.jpg[Mr. Docs Documentation,link=https://www.mrdocs.com]
3+
image::docs/modules/ROOT/images/MrDocsBanner.png[Mr. Docs Documentation,link=https://www.mrdocs.com]
44

55
Visit the Mr. Docs Documentation website at https://www.mrdocs.com.
66

325 KB
Loading

docs/modules/ROOT/pages/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Alan Freitas <[email protected]>
66
:page-tags: mrdocs
77
:navtitle: Home
88

9-
image::MrDocsBanner.jpg[link=https://www.mrdocs.com]
9+
image::MrDocsBanner.png[link=https://www.mrdocs.com]
1010

1111
- Automating {cpp} reference documentation significantly enhances usability by providing a navigable API and ensuring a single, up-to-date source of truth with minimal effort.
1212
- However, documenting {cpp} poses significant challenges due to discrepancies between the codebase and the public API. Doxygen remains a popular tool, yet it is suboptimal for {cpp} as it fails to fully comprehend {cpp} constructs and requires many transformation steps, including the incorporation of many macros within the {cpp} code. These macros maintain well-formed and ill-formed versions of the code, undermining the goal of unifying the source of truth.

docs/shared/logo.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/* ===========================
2+
Shared Logo Styles
3+
=========================== */
4+
5+
/* Logo Styles */
6+
.nav .logo-link, .navbar-brand .navbar-item:first-child {
7+
display: flex;
8+
align-items: center;
9+
gap: 0.25rem;
10+
text-decoration: none;
11+
}
12+
13+
.nav .logo-link:hover {
14+
opacity: 0.8;
15+
text-decoration: none;
16+
}
17+
18+
.nav .logo-link svg, .navbar-brand .navbar-item:first-child svg {
19+
height: 48px;
20+
width: auto;
21+
flex-shrink: 0;
22+
}
23+
24+
.nav .logo-text, .navbar-brand .navbar-item:first-child .logo-text {
25+
font-weight: 700;
26+
color: #fff;
27+
white-space: nowrap;
28+
}
29+
30+
@media (max-width: 576px) {
31+
.nav .logo-link svg {
32+
height: 28px;
33+
}
34+
35+
.nav .logo-link {
36+
gap: 0.5rem;
37+
}
38+
}

docs/ui/src/css/custom.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050
color: var(--navbar-font-color);
5151
}
5252

53-
.doc .content {
54-
backdrop-filter: blur(10px);
55-
}
56-
5753
.body .article {
5854
backdrop-filter: blur(10px);
5955
background-color: rgba(255, 255, 255, 0.1);

docs/ui/src/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body {
99
}
1010

1111
.navbar {
12-
background-color: rgba(0, 0, 0, 0.1);
12+
background-color: rgba(0, 0, 0, 0.2);
1313
backdrop-filter: blur(10px);
1414
color: var(--navbar-font-color);
1515
font-size: calc(16 / var(--rem-base) * 1rem);

docs/ui/src/css/nav.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
display: flex;
6767
flex-direction: column;
6868
height: inherit;
69+
background-color: rgba(255, 255, 255, 0.1);
6970
}
7071

7172
.nav-panel-menu {
@@ -185,7 +186,7 @@
185186
}
186187

187188
.nav-panel-explore {
188-
background: var(--nav-background);
189+
background: rgba(255, 255, 255, 0.3);
189190
display: flex;
190191
flex-direction: column;
191192
position: absolute;
@@ -203,7 +204,7 @@
203204
.nav-panel-explore .context {
204205
font-size: calc(15 / var(--rem-base) * 1rem);
205206
flex-shrink: 0;
206-
color: var(--nav-muted-color);
207+
color: var(--color-white);
207208
box-shadow: 0 -1px 0 var(--nav-panel-divider-color);
208209
padding: 0 0.5rem;
209210
display: flex;

docs/ui/src/css/page-versions.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
}
1212

1313
.page-versions .version-menu-toggle {
14-
color: inherit;
14+
color: var(--color-white);
1515
background: url(../img/chevron.svg) no-repeat;
1616
background-position: right 0.5rem top 50%;
1717
background-size: auto 0.75em;

docs/ui/src/css/site.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@
1616
@import "highlight.css";
1717
@import "print.css";
1818
@import "custom.css";
19+
@import "../../../shared/logo.css";

docs/ui/src/css/toolbar.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.toolbar {
2+
background-color: rgba(255, 255, 255, 0.1);
23
color: var(--toolbar-font-color);
34
align-items: center;
45
display: flex;
@@ -62,5 +63,5 @@
6263
}
6364

6465
.toolbar .edit-this-page a {
65-
color: var(--toolbar-muted-color);
66+
color: var(--color-white);
6667
}

0 commit comments

Comments
 (0)