Skip to content

Commit 6838e98

Browse files
committed
style: enhance antora docs ui
- replace logo on landing page - add blurred backgrounds to docs - update text colors in docs
1 parent 8345af2 commit 6838e98

File tree

11 files changed

+179
-17
lines changed

11 files changed

+179
-17
lines changed

docs/ui/preview-src/ui-model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
antoraVersion: '1.0.0'
22
site:
33
url: http://localhost:5252
4-
title: Brand Docs
4+
title: MrDocs
55
homeUrl: &home_url /xyz/5.2/index.html
66
components:
77
- name: abc

docs/ui/src/css/base.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ html {
1010
height: 100%;
1111
scroll-behavior: smooth;
1212
background:
13-
radial-gradient(ellipse 100% 100% at 20% 20%, #582363CC, transparent 50%),
14-
radial-gradient(ellipse 80% 120% at 75% 25%, rgba(138, 214, 236, 0.5), transparent 55%),
15-
radial-gradient(ellipse 150% 90% at 50% 50%, rgba(40, 98, 114, 0.6), transparent 65%),
16-
radial-gradient(ellipse 100% 100% at 80% 100%, #582363CC, transparent 60%),
17-
linear-gradient(135deg, #124B83, #124B83, #124B83);
13+
radial-gradient(ellipse 100% 100% at var(--x1) var(--y1), rgba(89, 36, 99, 0.8), transparent 50%),
14+
radial-gradient(ellipse 80% 120% at var(--x2) var(--y2), rgba(138, 214, 236, 0.5), transparent 55%),
15+
radial-gradient(ellipse 150% 90% at var(--x3) var(--y3), rgba(40, 98, 114, 0.6), transparent 65%),
16+
radial-gradient(ellipse 100% 100% at 80% 100%, rgba(89, 36, 99, 0.8), transparent 60%),
17+
linear-gradient(135deg, #124b83, #124b83, #124b83);
1818
background-attachment: fixed;
1919
background-blend-mode: screen;
2020
background-size: cover;

docs/ui/src/css/custom.css

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
/* Inherits styles from landing page */
2+
3+
.dotted {
4+
background-image: url("../../../../docs/website/assets/halftone.png");
5+
background-size: 158%;
6+
background-repeat: repeat-y;
7+
background-position: center center;
8+
width: 190px;
9+
height: 100vh;
10+
position: fixed;
11+
left: 0;
12+
opacity: 0.1;
13+
top: 0;
14+
z-index: -5;
15+
pointer-events: none;
16+
}
17+
18+
.dotted-right {
19+
background-image: url("../../../../docs/website/assets/halftone.png");
20+
background-size: 158%;
21+
transform: rotate(180deg);
22+
background-repeat: repeat-y;
23+
background-position: center center;
24+
width: 190px;
25+
height: 100vh;
26+
position: fixed;
27+
right: 0;
28+
opacity: 0.1;
29+
top: 0;
30+
z-index: -5;
31+
pointer-events: none;
32+
}
33+
34+
@media (max-width: 576px) {
35+
.dotted,
36+
.dotted-right {
37+
opacity: 0.05;
38+
}
39+
40+
.dotted {
41+
left: -80px;
42+
}
43+
44+
.dotted-right {
45+
right: -80px;
46+
}
47+
}
48+
49+
.doc {
50+
color: var(--navbar-font-color);
51+
}
52+
53+
.doc .content {
54+
backdrop-filter: blur(10px);
55+
}
56+
57+
.body .article {
58+
backdrop-filter: blur(10px);
59+
background-color: rgba(255, 255, 255, 0.1);
60+
}
61+
62+
.doc h1,
63+
.doc h2,
64+
.doc h3,
65+
.doc h4,
66+
.doc h5,
67+
.doc h6 {
68+
color: var(--navbar-font-color);
69+
}
70+
71+
.toc.sidebar .toc-menu {
72+
color: var(--navbar-font-color);
73+
}
74+
75+
.toc.sidebar .toc-menu h3 {
76+
color: var(--navbar-font-color);
77+
}
78+
79+
.breadcrumbs li {
80+
color: var(--color-white-50);
81+
}
82+
83+
.toc .toc-menu a.is-active {
84+
color: var(--color-white-50);
85+
}
86+
87+
.nav-text {
88+
color: var(--color-white-50);
89+
}

docs/ui/src/css/header.css

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

1111
.navbar {
12-
background: var(--navbar-background);
12+
background-color: rgba(0, 0, 0, 0.1);
13+
backdrop-filter: blur(10px);
1314
color: var(--navbar-font-color);
1415
font-size: calc(16 / var(--rem-base) * 1rem);
1516
height: var(--navbar-height);

docs/ui/src/css/nav.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
}
66

77
.nav-container {
8+
background-color: rgba(255, 255, 255, 0.1);
9+
backdrop-filter: blur(10px);
810
position: fixed;
911
top: var(--navbar-height);
1012
left: 0;
@@ -35,7 +37,7 @@
3537
}
3638

3739
.nav {
38-
background: var(--nav-background);
40+
/* background: var(--nav-background); */
3941
position: relative;
4042
top: var(--toolbar-height);
4143
height: var(--nav-height);
@@ -57,7 +59,7 @@
5759
}
5860

5961
.nav a {
60-
color: inherit;
62+
color: var(--color-white);
6163
}
6264

6365
.nav .panels {

docs/ui/src/css/site.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
@import "typeface-roboto.css";
32
@import "typeface-roboto-mono.css";
43
@import "vars.css";
@@ -16,5 +15,4 @@
1615
@import "footer.css";
1716
@import "highlight.css";
1817
@import "print.css";
19-
20-
/* Inherits styles from landing page */
18+
@import "custom.css";

docs/ui/src/css/toolbar.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
.toolbar {
22
color: var(--toolbar-font-color);
33
align-items: center;
4-
background-color: var(--toolbar-background);
5-
box-shadow: 0 1px 0 var(--toolbar-border-color);
64
display: flex;
75
font-size: calc(15 / var(--rem-base) * 1rem);
86
height: var(--toolbar-height);
97
justify-content: flex-start;
10-
position: sticky;
8+
position: static;
119
top: var(--navbar-height);
1210
z-index: var(--z-index-toolbar);
1311
}
1412

1513
.toolbar a {
16-
color: inherit;
14+
color: var(--navbar-font-color);
1715
}
1816

1917
.nav-toggle {

docs/ui/src/css/vars.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
:root {
22
/* colors */
33
--color-white: rgba(255, 255, 255, 1);
4+
--color-white-50: rgba(255, 255, 255, 0.5);
45
--color-smoke-10: rgba(254, 254, 254, 0.95);
56
--color-smoke-30: rgba(250, 250, 250, 0.9);
67
--color-smoke-50: rgba(245, 245, 245, 0.85);
@@ -148,4 +149,12 @@
148149
--z-index-toolbar: 2;
149150
--z-index-page-version-menu: 3;
150151
--z-index-navbar: 4;
152+
153+
/* Background gradient position variables */
154+
--x1: 20%;
155+
--y1: 20%;
156+
--x2: 75%;
157+
--y2: 25%;
158+
--x3: 50%;
159+
--y3: 50%;
151160
}

docs/ui/src/partials/main.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<main class="article">
2+
<div class="dotted"></div>
3+
<div class="dotted"></div>
24
{{> toolbar}}
35
<div class="content">
46
{{#if (eq page.layout '404')}}

0 commit comments

Comments
 (0)