From 317a491c26a403fad9cf66770ec653f0e6ac4d00 Mon Sep 17 00:00:00 2001 From: ymrl Date: Mon, 20 Feb 2023 19:22:29 +0900 Subject: [PATCH] =?UTF-8?q?:+1:=20sphinx=5Frtd=5Ftheme=E3=82=92=E3=82=84?= =?UTF-8?q?=E3=82=81=E3=81=A6sphinx=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB?= =?UTF-8?q?=E3=83=88=E3=83=86=E3=83=BC=E3=83=9E=20(Alabaster)=20=E3=81=AB?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_static/a11y-gl.css | 49 ++++++++++++++++++++++------------- source/_static/freee-logo.svg | 6 +++++ source/conf.py | 35 +++++++++++++++++++++---- 3 files changed, 67 insertions(+), 23 deletions(-) create mode 100644 source/_static/freee-logo.svg diff --git a/source/_static/a11y-gl.css b/source/_static/a11y-gl.css index fbb93916..269b46c7 100644 --- a/source/_static/a11y-gl.css +++ b/source/_static/a11y-gl.css @@ -1,28 +1,41 @@ -body { - font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN","メイリオ", sans-serif; +div.body p, div.body dd, div.body li { + line-height: 1.8; } -.header-logo { - width: 8.1875rem; - height: 2.75rem; - fill: #fff; - display: block; - margin: 0 auto 1rem; +div.body p + p { + margin-top: 1.5em; } -.rst-content blockquote { - border-left: 4px solid #e3e3e3; - padding: 8px 24px; - margin-left: 0; - background-color: #efefef; +div.body dt { + font-weight: bold; } -.rst-content blockquote p:last-child { - margin-bottom: 0; +div.sphinxsidebar ul { + line-height: 1.8; +} + +@media screen and (max-width: 875px) { + div.sphinxsidebar h3, div.sphinxsidebar h4, div.sphinxsidebar p, div.sphinxsidebar h3 a { + color: #323232; + } +} + +a { + transition-property: color; + transition-duration: .2s; +} +div.sphinxsidebar #searchbox form.search { + display: flex; + +} +div.sphinxsidebar #searchbox input[type="text"], +div.sphinxsidebar #searchbox input[type="submit"] { + float: none; } .checklist > section { - margin: 16px; - border: 1px solid #ccc; - padding: 16px; + margin: 1rem; + border: 1px solid #e1dcdc; + border-radius: 0.25rem; + padding: 1rem; } diff --git a/source/_static/freee-logo.svg b/source/_static/freee-logo.svg new file mode 100644 index 00000000..a2ab516a --- /dev/null +++ b/source/_static/freee-logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/source/conf.py b/source/conf.py index 4487b513..07f0c998 100644 --- a/source/conf.py +++ b/source/conf.py @@ -78,12 +78,37 @@ # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -import sphinx_rtd_theme -html_theme = "sphinx_rtd_theme" -html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] - html_theme_options = { - "collapse_navigation": "false", + "logo": "freee-logo.svg", + "logo_name": True, + "page_width": "60rem", + "sidebar_width": "20rem", + "link": "#285ac8", + "link_hover": "#23418c", + "footer_text": "#6e6b6b", + "body_text": "#323232", + "sidebar_link": "#323232", + "sidebar_header": "#323232", + "sidebar_text": "#323232", + "narrow_sidebar_bg": "#f7f5f5", + "narrow_sidebar_fg": "#323232", + "narrow_sidebar_link": "#323232", + "gray_1": "#6e6b6b", + "gray_2": "#e9e7e7", + "gray_3": "#f7f5f5", + "pre_bg": "#f7f5f5", + "font_family": + """ + '-apple-system', BlinkMacSystemFont, 'Helvetica Neue', 'ヒラギノ角ゴ ProN', Hiragino Kaku Gothic ProN, Arial, 'メイリオ', Meiryo, + sans-serif + """, + "head_font_family": + """ + '-apple-system', BlinkMacSystemFont, 'Helvetica Neue', 'ヒラギノ角ゴ ProN', Hiragino Kaku Gothic ProN, Arial, 'メイリオ', Meiryo, + sans-serif + """, + + } # Add any paths that contain custom static files (such as style sheets) here,