Skip to content

Commit 9968ad1

Browse files
committed
style: ensure landing page navbar matches docs
1 parent 56168cc commit 9968ad1

File tree

4 files changed

+13
-18
lines changed

4 files changed

+13
-18
lines changed

docs/shared/logo.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
font-weight: 700;
2626
color: #fff;
2727
white-space: nowrap;
28+
font-size: 1rem;
2829
}
2930

3031
@media (max-width: 576px) {

docs/ui/src/css/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ body {
229229

230230
.navbar-menu {
231231
box-shadow: 0 8px 16px rgba(10, 10, 10, 0.1);
232-
background-color: rgba(18, 74, 130, 0.8);
232+
background-color: rgb(47 47 94);
233233
max-height: var(--body-min-height);
234234
overflow-y: auto;
235235
overscroll-behavior: none;

docs/website/index.html.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</head>
3737

3838
<body>
39-
<nav class="nav container-fluid" aria-label="Main navigation">
39+
<nav class="nav" aria-label="Main navigation">
4040
<div class="nav-section">
4141
<a href="/" class="logo-link" aria-label="{{ site.title }} Home">
4242
{{> logo }}

docs/website/styles.css

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@charset "UTF-8";
22

33
:root {
4-
--font-family: system-ui, -apple-system, "Segoe UI", "Roboto", "Ubuntu", "Cantarell", "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
4+
--font-family: "Roboto", sans-serif;
55
--line-height: 1.5;
66
--font-weight: 400;
77
--font-weight-bold: 700;
@@ -358,8 +358,8 @@ kbd {
358358
width: 100%;
359359
margin-right: auto;
360360
margin-left: auto;
361-
padding-right: var(--spacing);
362-
padding-left: var(--spacing)
361+
padding-left: 1rem;
362+
padding-right: 1rem;
363363
}
364364

365365
@media (min-width: 576px) {
@@ -1475,19 +1475,13 @@ nav li {
14751475
nav a {
14761476
font-weight: 400;
14771477
text-decoration: none;
1478+
font-size: 16px;
14781479
}
14791480

14801481
nav li > * {
14811482
--spacing: 0
14821483
}
14831484

1484-
nav :where(a,[role=link]) {
1485-
display: inline-block;
1486-
margin: calc(var(--nav-link-spacing-vertical) * -1) calc(var(--nav-link-spacing-horizontal) * -1);
1487-
padding: var(--nav-link-spacing-vertical) var(--nav-link-spacing-horizontal);
1488-
border-radius: var(--border-radius);
1489-
text-decoration: none
1490-
}
14911485

14921486
nav :where(a,[role=link]):is([aria-current],:hover,:active,:focus) {
14931487
text-decoration: none
@@ -2748,6 +2742,7 @@ html {
27482742
align-items: center;
27492743
gap: 0.25rem;
27502744
text-decoration: none;
2745+
padding-left: 18px;
27512746
}
27522747

27532748
.nav .logo-link:hover {
@@ -2762,6 +2757,7 @@ html {
27622757
}
27632758

27642759
.nav .logo-text, .navbar-brand .navbar-item:first-child .logo-text {
2760+
font-size: 18px;
27652761
font-weight: 700;
27662762
color: #fff;
27672763
white-space: nowrap;
@@ -2778,7 +2774,6 @@ html {
27782774
}
27792775

27802776
nav {
2781-
background-color: rgba(0, 0, 0, 0.2);
27822777
backdrop-filter: blur(10px);
27832778
}
27842779

@@ -2860,11 +2855,10 @@ ol a:focus {
28602855

28612856
.nav {
28622857
background-color: rgba(0, 0, 0, 0.2);
2863-
padding: 0.25rem 1rem;
2864-
font-size: calc(16 / var(--rem-base) * 1rem);
2858+
font-size: 16px;
28652859
font-weight: bold;
2866-
font-size: 1rem;
28672860
height: 3.5rem;
2861+
max-height: 63px;
28682862
display: flex;
28692863
align-items: center;
28702864
justify-content: space-between;
@@ -2902,7 +2896,7 @@ ol a:focus {
29022896
}
29032897

29042898
.nav-section:last-child {
2905-
2899+
padding-right: 18px;
29062900
color: #ffffff99;
29072901
}
29082902

@@ -2921,7 +2915,7 @@ ol a:focus {
29212915

29222916

29232917
.nav .nav-section:last-child a[role="menuitem"] {
2924-
font-size: 1rem;
2918+
/* font-size: 1rem; */
29252919
}
29262920

29272921
/* ===========================

0 commit comments

Comments
 (0)