From f075932a69ce1a8f30438aef7c96e244cdff6d0d Mon Sep 17 00:00:00 2001 From: zhaorunqi Date: Mon, 16 May 2022 13:18:09 +0800 Subject: [PATCH 1/2] fix no stars --- site2/website-next/src/css/custom.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site2/website-next/src/css/custom.css b/site2/website-next/src/css/custom.css index d32855ba9ec6..42596aba2674 100644 --- a/site2/website-next/src/css/custom.css +++ b/site2/website-next/src/css/custom.css @@ -190,9 +190,9 @@ html[data-theme="dark"] .navbar-sidebar { .dropdown__link--active { background-color: transparent; } -.github-nav.navbar__link{ color: transparent; font-size: 0px; top: 0; position: absolute;} -.github-nav::before {content: url('@site/static/img/github-bg.svg');} -.github-nav.navbar__link:hover::before {content: url('@site/static/img/github-bg-hovered.svg');} +.github-nav.navbar__link{ color: transparent; font-size: 0px; top: 5px; position: absolute;right: 85px;} +.github-nav::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=Github&style=for-the-badge');} +.github-nav.navbar__link:hover::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=Github&style=for-the-badge');} .navbar div[class^="toggle_node_"], .colorModeToggle_vKtC {top: 9px; position: absolute; transform: translateX(-70px);} .community-dropdown ~ .dropdown__menu .dropdown__link--active, .dropdown__link.navbar__link--active{color: #1c1e21;} .navbar__link svg { From cc23dd555b119016fe72bc5b7ea1c5eb45257f39 Mon Sep 17 00:00:00 2001 From: zhaorunqi Date: Mon, 16 May 2022 17:41:14 +0800 Subject: [PATCH 2/2] fix no stars --- site2/website-next/src/css/custom.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site2/website-next/src/css/custom.css b/site2/website-next/src/css/custom.css index 42596aba2674..2ee6043133a7 100644 --- a/site2/website-next/src/css/custom.css +++ b/site2/website-next/src/css/custom.css @@ -190,9 +190,9 @@ html[data-theme="dark"] .navbar-sidebar { .dropdown__link--active { background-color: transparent; } -.github-nav.navbar__link{ color: transparent; font-size: 0px; top: 5px; position: absolute;right: 85px;} -.github-nav::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=Github&style=for-the-badge');} -.github-nav.navbar__link:hover::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=Github&style=for-the-badge');} +.github-nav.navbar__link{ color: transparent; font-size: 0px; top: 10px; position: absolute;right: 125px;} +.github-nav::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=%20&style=social');} +.github-nav.navbar__link:hover::before {content: url('https://img.shields.io/github/stars/apache/pulsar?label=%20&style=social');} .navbar div[class^="toggle_node_"], .colorModeToggle_vKtC {top: 9px; position: absolute; transform: translateX(-70px);} .community-dropdown ~ .dropdown__menu .dropdown__link--active, .dropdown__link.navbar__link--active{color: #1c1e21;} .navbar__link svg {