From e21d2b34883318372a8f374e06cd5e2e22aa3669 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Sun, 6 Oct 2024 14:37:29 +0300 Subject: [PATCH] website: updates --- website/docusaurus.config.ts | 5 +++-- website/i18n/en/docusaurus-theme-classic/navbar.json | 2 +- website/src/css/custom.css | 12 ++++++------ 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/website/docusaurus.config.ts b/website/docusaurus.config.ts index 039e080..5935749 100644 --- a/website/docusaurus.config.ts +++ b/website/docusaurus.config.ts @@ -227,12 +227,13 @@ const config: Config = { // Replace with your project's social card // image: 'img/docusaurus-social-card.jpg', navbar: { - title: 'The xPack Project', + // overriden by i18n/en/docusaurus-theme-classic. + title: 'The xPack Binary Development Tools', logo: { alt: 'xPack Logo', src: 'img/components-256.png', // href: 'https://xpack.github.io/', - // href: 'https://xpack-dev-tools.github.io/gcc-xpack/' + href: 'https://xpack-dev-tools.github.io/' }, items: [ { diff --git a/website/i18n/en/docusaurus-theme-classic/navbar.json b/website/i18n/en/docusaurus-theme-classic/navbar.json index 0474cb4..80443c5 100644 --- a/website/i18n/en/docusaurus-theme-classic/navbar.json +++ b/website/i18n/en/docusaurus-theme-classic/navbar.json @@ -1,6 +1,6 @@ { "title": { - "message": "xPack GCC", + "message": "xPack Binary Development Tools", "description": "The title in the navbar" }, "logo.alt": { diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 854cab3..8f40f6e 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -69,25 +69,25 @@ h2[class*="title"] --ifm-h1-font-size: 2.5em } -/* .header-home-link::before { +.header-home-link::before { content: ''; width: 24px; height: 24px; display: inline-flex; - vertical-align: middle; */ + vertical-align: baseline; /* padding-right: 0.5em; */ - /* background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='current-color'/%3E%3C/svg%3E") + background: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='current-color'/%3E%3C/svg%3E") no-repeat; -} */ +} [data-theme='dark'] .header-home-link::before { content: ''; width: 24px; height: 24px; display: inline-flex; - vertical-align: middle; + vertical-align: baseline; /* padding-right: 0.5em; */ - background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='white'/%3E%3C/svg%3E") + background: url("data:image/svg+xml,%3Csvg viewBox='0 0 22 22' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z' fill='white'/%3E%3C/svg%3E") no-repeat; }