Skip to content

Commit ff28fa3

Browse files
authored
Revert "Polish docs header branding and nav alignment (#62)" (#65)
This reverts commit 2fc9fc6.
1 parent 2fc9fc6 commit ff28fa3

8 files changed

Lines changed: 11 additions & 89 deletions

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<p align="center">
2-
<picture>
3-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-full-text-gradient-dark-v1.png">
4-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/logo-full-text-gradient-light-v1.png">
5-
<img width="420" alt="AgentOpt" src="docs/assets/logo-full-text-gradient-light-v1.png" />
6-
</picture>
2+
<img width="360" alt="AgentOpt" src="docs/assets/logo.png" />
73
</p>
84

95
<p align="center">
-144 KB
Binary file not shown.
-145 KB
Binary file not shown.
-141 KB
Binary file not shown.
-141 KB
Binary file not shown.
-313 KB
Binary file not shown.

docs/stylesheets/extra.css

Lines changed: 8 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,15 @@
4646
════════════════════════════════════════════ */
4747

4848
.md-header__button.md-logo img {
49-
height: 40px;
50-
width: auto;
51-
max-width: 220px;
49+
height: 28px;
50+
width: 28px;
5251
object-fit: contain;
53-
filter: none !important;
54-
}
55-
56-
/* Swap full-wordmark text color by theme (dark=white, light=black) */
57-
[data-md-color-scheme="slate"] .md-header__button.md-logo img {
58-
content: url("../assets/logo-full-text-transparent-dark-v2.png");
52+
border-radius: 6px;
5953
}
6054

55+
/* Light mode: invert the dark-bg logo to a light variant */
6156
[data-md-color-scheme="default"] .md-header__button.md-logo img {
62-
content: url("../assets/logo-full-text-transparent-light-v2.png");
63-
}
64-
65-
/* Wordmark already includes text; keep only image in header */
66-
.md-header__button.md-logo {
67-
margin-right: 0.7rem;
68-
}
69-
70-
.md-header__title .md-header__topic,
71-
.md-header__title .md-header__topic + .md-header__topic {
72-
display: none;
57+
filter: invert(0.88) hue-rotate(180deg) brightness(1.3) contrast(0.95);
7358
}
7459

7560
/* ── Palette toggle visibility ── */
@@ -106,6 +91,9 @@
10691

10792
[data-md-color-scheme="slate"] .md-header__title {
10893
color: var(--ao-text);
94+
font-weight: 600;
95+
font-size: 14px;
96+
letter-spacing: -0.3px;
10997
}
11098

11199
[data-md-color-scheme="slate"] .md-source {
@@ -141,11 +129,6 @@
141129
letter-spacing: 0;
142130
}
143131

144-
/* Center top navigation row */
145-
.md-tabs__list {
146-
justify-content: center;
147-
}
148-
149132
[data-md-color-scheme="slate"] .md-tabs__link {
150133
color: var(--ao-text-secondary);
151134
opacity: 1;
@@ -500,63 +483,6 @@
500483
background-color: #f5f3f0;
501484
}
502485

503-
/* Header controls: match nav typography + alignment */
504-
.md-search__input,
505-
.md-source__repository,
506-
.md-source__facts,
507-
.md-tabs__link {
508-
font-family: "DM Sans", sans-serif;
509-
}
510-
511-
.md-search__input {
512-
font-size: 13px;
513-
font-weight: 400;
514-
line-height: 1.2;
515-
}
516-
517-
.md-source__repository,
518-
.md-source__facts {
519-
font-size: 13px;
520-
font-weight: 400;
521-
}
522-
523-
.md-search,
524-
.md-header__source {
525-
align-self: center;
526-
}
527-
528-
/* Make magnifier icon color match search text exactly */
529-
.md-search__icon,
530-
.md-search__icon .md-icon,
531-
.md-search__icon svg {
532-
color: inherit !important;
533-
fill: currentColor !important;
534-
}
535-
536-
[data-md-color-scheme="slate"] .md-search__input,
537-
[data-md-color-scheme="slate"] .md-search__icon,
538-
[data-md-color-scheme="slate"] .md-header__source {
539-
color: var(--ao-text-secondary);
540-
}
541-
542-
[data-md-color-scheme="slate"] .md-search__input:focus,
543-
[data-md-color-scheme="slate"] .md-search:hover,
544-
[data-md-color-scheme="slate"] .md-header__source:hover {
545-
color: var(--ao-text);
546-
}
547-
548-
[data-md-color-scheme="default"] .md-search__input,
549-
[data-md-color-scheme="default"] .md-search__icon,
550-
[data-md-color-scheme="default"] .md-header__source {
551-
color: #64748b;
552-
}
553-
554-
[data-md-color-scheme="default"] .md-search__input:focus,
555-
[data-md-color-scheme="default"] .md-search:hover,
556-
[data-md-color-scheme="default"] .md-header__source:hover {
557-
color: #1e1e2e;
558-
}
559-
560486
/* Sidebar */
561487
[data-md-color-scheme="slate"] .md-sidebar {
562488
border-right: 0.5px solid var(--ao-border);

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ theme:
3838
- search.suggest
3939
- search.highlight
4040
- toc.follow
41-
logo: assets/logo-full-text-transparent-dark-v2.png
42-
favicon: assets/logo-icon-transparent.png
41+
logo: assets/logo.png
42+
favicon: assets/logo.png
4343
icon:
4444
repo: fontawesome/brands/github
4545

0 commit comments

Comments
 (0)