From d7b0080da01750818a260987dd7900e3f1cfa093 Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Sat, 31 Jul 2021 05:41:22 +0000 Subject: [PATCH] [ci] yarn format --- docs/astro.config.mjs | 5 +- docs/src/components/Header/LanguageSelect.css | 13 ++-- docs/src/components/Header/LanguageSelect.tsx | 72 +++++++++++++------ docs/src/components/Header/Search.css | 2 +- .../RightSidebar/ThemeToggleButton.css | 3 +- docs/src/config.ts | 2 +- 6 files changed, 61 insertions(+), 36 deletions(-) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index fe4142447..d68ce262b 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -4,7 +4,8 @@ export default { }, renderers: [ // Our main renderer for frontend components - '@astrojs/renderer-preact', + '@astrojs/renderer-preact', // Needed for Algolia search component - '@astrojs/renderer-react'], + '@astrojs/renderer-react', + ], }; diff --git a/docs/src/components/Header/LanguageSelect.css b/docs/src/components/Header/LanguageSelect.css index f353c18c2..b95ef5048 100644 --- a/docs/src/components/Header/LanguageSelect.css +++ b/docs/src/components/Header/LanguageSelect.css @@ -1,4 +1,3 @@ - .language-select { flex-grow: 1; width: 48px; @@ -23,7 +22,7 @@ transition-property: border-color, color; -webkit-font-smoothing: antialiased; padding-left: 30px; - padding-right: 1rem; + padding-right: 1rem; } .language-select-wrapper .language-select:hover, .language-select-wrapper .language-select:focus { @@ -35,14 +34,14 @@ position: relative; } .language-select-wrapper > svg { - position: absolute; - top: 7px; - left: 10px; - z-index: -1; + position: absolute; + top: 7px; + left: 10px; + z-index: -1; } @media (min-width: 50em) { .language-select { width: 100%; } -} \ No newline at end of file +} diff --git a/docs/src/components/Header/LanguageSelect.tsx b/docs/src/components/Header/LanguageSelect.tsx index 62849e867..89cd29ed5 100644 --- a/docs/src/components/Header/LanguageSelect.tsx +++ b/docs/src/components/Header/LanguageSelect.tsx @@ -14,29 +14,55 @@ const SelectLanguage: FunctionalComponent<{}> = ({}) => { return (
- - + +
); }; diff --git a/docs/src/components/Header/Search.css b/docs/src/components/Header/Search.css index 47ec15acf..b11a59290 100644 --- a/docs/src/components/Header/Search.css +++ b/docs/src/components/Header/Search.css @@ -64,4 +64,4 @@ .search-hint { display: flex; } -} \ No newline at end of file +} diff --git a/docs/src/components/RightSidebar/ThemeToggleButton.css b/docs/src/components/RightSidebar/ThemeToggleButton.css index 43915c5b9..7de231d1b 100644 --- a/docs/src/components/RightSidebar/ThemeToggleButton.css +++ b/docs/src/components/RightSidebar/ThemeToggleButton.css @@ -1,4 +1,3 @@ - .theme-toggle { display: inline-flex; align-items: center; @@ -35,4 +34,4 @@ input[name='theme-toggle'] { bottom: 0; left: 0; z-index: -1; -} \ No newline at end of file +} diff --git a/docs/src/config.ts b/docs/src/config.ts index c3e78d8d9..3e677a27e 100644 --- a/docs/src/config.ts +++ b/docs/src/config.ts @@ -55,7 +55,7 @@ export const SIDEBAR = [ export const SITE = { title: 'Astro Documentation', description: 'Build faster websites with less client-side Javascript.', -} +}; export const OPEN_GRAPH = { locale: 'en_US',