Skip to content

Commit 3a2f146

Browse files
committed
style: refine header styles
1 parent 031c486 commit 3a2f146

File tree

3 files changed

+62
-17
lines changed

3 files changed

+62
-17
lines changed

docs/website/index.html

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,21 @@
4444
</nav>
4545
<header>
4646
<div class="container">
47-
<h1>MrDocs</h1>
48-
<p>MrDocs is a C++ documentation generator for your projects.</p>
49-
<div class="header-cta">
50-
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
51-
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
47+
<div class="header-content">
48+
<h1>MrDocs</h1>
49+
<p>MrDocs is a C++ documentation generator for your projects.</p>
50+
<div class="header-cta">
51+
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
52+
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
53+
</div>
54+
<div class="banner-snippet">
55+
<small><code>No workarounds: A tool that fully understands C++</code></small>
56+
</div>
5257
</div>
53-
<div class="banner-snippet">
54-
<small><code>No workarounds: A tool that fully understands C++</code></small>
58+
<div class="header-image">
59+
<div class="box1 box-shape2 box270">
60+
<div class="inner-box thinking"></div>
61+
</div>
5562
</div>
5663
</div>
5764
</header>

docs/website/index.html.hbs

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,21 @@
5555
</nav>
5656
<header>
5757
<div class="container">
58-
<h1>{{ title }}</h1>
59-
<p>{{ description }}</p>
60-
<div class="header-cta">
61-
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
62-
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
58+
<div class="header-content">
59+
<h1>{{ title }}</h1>
60+
<p>{{ description }}</p>
61+
<div class="header-cta">
62+
<a href="docs/" class="secondary" role="button" aria-label="Documentation">Get started</a>
63+
<a href="docs/mrdocs/install.html" class="contrast outline" role="button" aria-label="Download">Download</a>
64+
</div>
65+
<div class="banner-snippet">
66+
<small><code>{{ banner.description }}</code></small>
67+
</div>
6368
</div>
64-
<div class="banner-snippet">
65-
<small><code>{{ banner.description }}</code></small>
69+
<div class="header-image">
70+
<div class="box1 box-shape2 box270">
71+
<div class="inner-box thinking"></div>
72+
</div>
6673
</div>
6774
</div>
6875
</header>

docs/website/styles.css

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2798,8 +2798,7 @@ nav {
27982798

27992799
.banner-snippet code {
28002800
margin-top: 0.5rem;
2801-
background-color: rgba(34, 34, 34, 0.5);
2802-
color: inherit;
2801+
background-color:rgba(255, 255, 255, 0.10);
28032802
}
28042803

28052804
.dotted {
@@ -3036,4 +3035,36 @@ nav {
30363035

30373036
.mrdocs {
30383037
background-image: url("./assets/mrdocs.svg");
3039-
}
3038+
}
3039+
3040+
/* ===========================
3041+
Header Styles
3042+
=========================== */
3043+
3044+
header .container {
3045+
display: flex;
3046+
flex-direction: column;
3047+
}
3048+
3049+
header .header-image {
3050+
align-self: center;
3051+
}
3052+
3053+
@media (min-width: 768px) {
3054+
header .container {
3055+
align-items: center;
3056+
justify-content: center;
3057+
flex-direction: row;
3058+
}
3059+
}
3060+
3061+
.header-content {
3062+
display: flex;
3063+
flex-direction: column;
3064+
align-items: center;
3065+
}
3066+
.header-cta a[aria-label="Documentation"] {
3067+
color: #fff;
3068+
background-color: rgba(255, 255, 255, 0.25);
3069+
}
3070+

0 commit comments

Comments
 (0)