From 8d0ca2deeb0af6abef5c690acf79a78ff9ab083a Mon Sep 17 00:00:00 2001 From: Sebastian Meyer Date: Thu, 15 Feb 2024 10:14:55 +0100 Subject: [PATCH] Update phpDocumentor styles --- .phpdoc/template/components/sidebar.html.twig | 31 ++++++++++ .phpdoc/template/css/custom.css.twig | 56 ++++++++++++++++++- 2 files changed, 85 insertions(+), 2 deletions(-) create mode 100644 .phpdoc/template/components/sidebar.html.twig diff --git a/.phpdoc/template/components/sidebar.html.twig b/.phpdoc/template/components/sidebar.html.twig new file mode 100644 index 0000000..80488dd --- /dev/null +++ b/.phpdoc/template/components/sidebar.html.twig @@ -0,0 +1,31 @@ + + + diff --git a/.phpdoc/template/css/custom.css.twig b/.phpdoc/template/css/custom.css.twig index bd6e01d..376befb 100644 --- a/.phpdoc/template/css/custom.css.twig +++ b/.phpdoc/template/css/custom.css.twig @@ -1,7 +1,43 @@ aside.phpdocumentor-sidebar - h2.phpdocumentor-sidebar__category-header { - text-transform: capitalize; + display: flex; + flex-direction: column; +} + +aside.phpdocumentor-sidebar + section.-documentation +{ + order: 1; +} + +aside.phpdocumentor-sidebar + section.-packages +{ + order: 2; +} + +aside.phpdocumentor-sidebar + section.-namespaces +{ + order: 3; +} + +aside.phpdocumentor-sidebar + section.-reports +{ + order: 4; +} + +aside.phpdocumentor-sidebar + section.-index +{ + order: 5; +} + +aside.phpdocumentor-sidebar + ul.phpdocumentor-list +{ + padding: 0 var(--spacing-md) !important; } code.prettyprint @@ -14,6 +50,22 @@ code.prettyprint padding: var(--spacing-xxxs); } +div.phpdocumentor-content + div.section + ul +{ + padding-left: var(--spacing-lg); +} + +div.phpdocumentor-content + div.section + ul + li +{ + padding-bottom: 0; +} + + dl.phpdocumentor-table-of-contents dt.phpdocumentor-table-of-contents__entry.-documentation:before {