diff --git a/docs/assets/logo.svg b/docs/assets/logo.svg index 548509e..0489d4c 100644 --- a/docs/assets/logo.svg +++ b/docs/assets/logo.svg @@ -1,4 +1,3 @@ - - Open - Adapt + + OpenAdapt diff --git a/docs/stylesheets/brand.css b/docs/stylesheets/brand.css index 68aaea5..b1c9639 100644 --- a/docs/stylesheets/brand.css +++ b/docs/stylesheets/brand.css @@ -96,7 +96,7 @@ body { .md-header__button.md-logo img, .md-header__button.md-logo svg { height: auto; - width: 4.85rem; + width: 5.4rem; } .md-header__button.md-logo { margin-right: 0.25rem; diff --git a/tests/test_brand_styles.py b/tests/test_brand_styles.py index 77bf143..e71670c 100644 --- a/tests/test_brand_styles.py +++ b/tests/test_brand_styles.py @@ -1,6 +1,7 @@ from __future__ import annotations import re +import xml.etree.ElementTree as ET from pathlib import Path @@ -91,9 +92,13 @@ def test_docs_actions_and_logo_match_the_ink_on_paper_chrome() -> None: CSS, re.DOTALL, ) - assert 'fill="#23281F"' in LOGO - assert ">Open" in LOGO - assert ">Adapt" in LOGO + logo = ET.fromstring(LOGO) + view_box = [float(value) for value in logo.attrib["viewBox"].split()] + assert view_box[2] / view_box[3] >= 4.5 + assert all( + "textLength" not in element.attrib and "lengthAdjust" not in element.attrib + for element in logo.iter() + ) assert 'content: "Docs"' in CSS assert "instead of reducing it to “Docs”" in CSS assert "filter: brightness(0) invert(1)" in CSS