Skip to content

Commit df6a09e

Browse files
authored
optimize for mobile responsiveness (#1032)
* style: enhance navbar and footer link styles * style: refine link styles in navbar and footer * style: adjust box dimensions for responsive design * style: enhance header layout and improve responsiveness * style: refactor inner-box styles for rotation and scaling * style: remove background styles from article and nav
1 parent 1ea3e3d commit df6a09e

File tree

11 files changed

+749
-83
lines changed

11 files changed

+749
-83
lines changed

docs/ui/src/css/custom.css

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

53-
.body .article {
54-
backdrop-filter: blur(10px);
55-
background-color: rgba(255, 255, 255, 0.1);
56-
}
57-
5853
.doc h1,
5954
.doc h2,
6055
.doc h3,

docs/ui/src/css/nav.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
width: var(--nav-width);
2222
background-color: transparent;
2323
}
24-
25-
.nav-container .nav {
26-
background-color: rgb(255 255 255 / 18%);
27-
}
2824
}
2925

3026
@media screen and (min-width: 1024px) {

docs/website/assets/glasses.png

-367 KB
Loading

docs/website/assets/mrdocs.png

-573 KB
Loading

docs/website/assets/pointing.png

-699 KB
Loading

docs/website/assets/shout.png

-637 KB
Loading

docs/website/assets/thinking.png

-540 KB
Loading

docs/website/assets/writing.png

-1010 KB
Loading

docs/website/index.html

Lines changed: 629 additions & 0 deletions
Large diffs are not rendered by default.

docs/website/index.html.hbs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@
4646
<div class="nav-section">
4747
<ul role="menubar">
4848
{{#each navbar}}
49-
<li><a href="{{ href }}">{{ title }}</a></li>
49+
<li class="nav-link"><a href="{{ href }}">{{ title }}</a></li>
5050
{{/each}}
51-
<li>
51+
<li class="nav-link">
5252
<a href="{{ site.github.url }}" class="contrast" aria-label="{{ site.title }} GitHub repository">
5353
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
5454
viewBox="0 0 496 512" height="16px">
@@ -62,20 +62,22 @@
6262
</nav>
6363
<header>
6464
<div class="container">
65-
<div class="header-content">
66-
<h1>{{ title }}</h1>
67-
<p>{{ description }}</p>
68-
<div class="header-cta">
69-
<a href="docs/" class="contrast outline">Get started</a>
70-
<a href="docs/mrdocs/install.html" class="primary">Download</a>
71-
</div>
72-
<div class="banner-snippet">
73-
<small><code>{{ banner.description }}</code></small>
65+
<div class="grid header-banner">
66+
<div class="header-content">
67+
<h1>{{ title }}</h1>
68+
<p>{{ description }}</p>
69+
<div class="header-cta">
70+
<a href="docs/" class="contrast outline">Get started</a>
71+
<a href="docs/mrdocs/install.html" class="primary">Download</a>
72+
</div>
73+
<div class="banner-snippet">
74+
<small><code>{{ banner.description }}</code></small>
75+
</div>
7476
</div>
75-
</div>
76-
<div class="header-image">
77-
<div class="box3 box-shape2 box270">
78-
<div class="inner-box mrdocs"></div>
77+
<div class="header-image">
78+
<div class="box3 box-shape2 box270">
79+
<div class="inner-box mrdocs"></div>
80+
</div>
7981
</div>
8082
</div>
8183
</div>
@@ -178,11 +180,11 @@
178180
</main>
179181
<footer>
180182
<div class="container">
181-
<ul>
183+
<ul class="footer-links">
182184
{{#each navbar}}
183-
<li><a href="{{ href }}">{{ title }}</a></li>
185+
<li class="footer-link"><a href="{{ href }}">{{ title }}</a></li>
184186
{{/each}}
185-
<li><a href="https://github.com/cppalliance/mrdocs">GitHub</a></li>
187+
<li class="footer-link"><a href="https://github.com/cppalliance/mrdocs">GitHub</a></li>
186188
</ul>
187189
</div>
188190
</footer>

0 commit comments

Comments
 (0)