You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/06/15 01:45:52 UTC

[incubator-linkis-website] branch dev updated: Change website Github icon

This is an automated email from the ASF dual-hosted git repository.

casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new ebee47104 Change website Github icon
     new cc0939024 Merge pull request #342 from Beacontownfc/githubIcon
ebee47104 is described below

commit ebee471041b16856738823aed5f941ef7cea5798
Author: Beacontownfc <19...@qq.com>
AuthorDate: Wed Jun 15 01:26:11 2022 +0000

    Change website Github icon
---
 docusaurus.config.js |  3 ++-
 src/css/custom.scss  | 12 ++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/docusaurus.config.js b/docusaurus.config.js
index 5af48f0de..96b4168bf 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -214,7 +214,8 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
         },
         {
           href: 'https://github.com/apache/incubator-linkis',
-          label: 'GitHub',
+          'aria-label': 'GitHub',
+          className: 'header-github-link',
           position: 'right',
         },
         {
diff --git a/src/css/custom.scss b/src/css/custom.scss
index d2c5ac0fa..dda93e144 100644
--- a/src/css/custom.scss
+++ b/src/css/custom.scss
@@ -603,3 +603,15 @@ aside {
     }
   }
 }
+
+.header-github-link:hover {
+  opacity: 0.6;
+}
+
+.header-github-link:before {
+  content: '';
+  width: 24px;
+  height: 24px;
+  display: flex;
+  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.52 [...]
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org