Skip to content

Commit

Permalink
Update navbar (#211)
Browse files Browse the repository at this point in the history
* rename svg to fix icon not showing issue

* fix search icon (#202)

* remove cosmos tag on azure-search-openai-demo-csharp(#204)

* Move Django to frameworks (#203)

* add font fallback and move reactjs to tools (#205)

* custom navbar

* add underline when page is selected

* remove templates page

* remove hover color on title

* switch order

* Keep templates bar

* not having templates page for now
  • Loading branch information
hemarina authored Oct 20, 2023
1 parent cfbd128 commit 6801ae4
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
38 changes: 27 additions & 11 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,21 @@ const config = {
height: 32,
},
items: [
// {
// href: "/",
// label: "Templates",
// position: "left",
// },
{
href: "/",
label: "Templates",
to: "/about",
label: "Getting Started",
position: "left",
},

{
to: "/about",
label: "Getting Started",
label: "Contribute",
position: "left",
type: "doc",
docId: "intro",
},
{
to: "https://learn.microsoft.com/azure/developer/azure-developer-cli/",
Expand All @@ -95,13 +100,8 @@ const config = {
label: "Resources",
position: "left",
},
{
label: "Contribute",
position: "left",
type: "doc",
docId: "intro",
},

// right
{
href: "https://github.com/Azure/repo/awesome-azd",
position: "right",
Expand All @@ -121,6 +121,19 @@ const config = {
color: "white",
},
},

// CONFIG:
// Make sure you have class defined in src/css/custom.css
{
to: "https://azure.github.io/awesome-azd/docs/intro",
label: "Submit your template!",
position: "right",
className: "button",
style: {
backgroundColor: "#7160E8",
color: "white",
},
},
],
},

Expand Down Expand Up @@ -205,6 +218,9 @@ const config = {
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
Expand Down
16 changes: 5 additions & 11 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,12 @@
text-decoration-thickness: 4px;
}

/* .navbar .navbar__inner .navbar__items .navbar_item .navbar__link .templatePage{
text-decoration-line: underline;
text-underline-offset: 20px;
text-decoration-thickness: 4px;
} */

.templatePage:hover::before{
text-decoration-line: underline;
text-underline-offset: 20px;
text-decoration-thickness: 4px;
color:var(--ifm-color-primary);
.navbar .navbar__inner .navbar__items .navbar__brand:hover{
color:black;
}

[data-theme='dark'] .navbar .navbar__inner .navbar__items .navbar__brand:hover{
color:white;
}

.header-github-link:hover {
Expand Down

0 comments on commit 6801ae4

Please sign in to comment.