From 2af85243af0fc37996696a62a27013efd1ad83b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 13 Oct 2017 00:03:46 +0200 Subject: [PATCH] PHPDoc: adjust styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- .../themes/nextcloud_com/static/styles.css | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) diff --git a/_shared_assets/themes/nextcloud_com/static/styles.css b/_shared_assets/themes/nextcloud_com/static/styles.css index 81e9e72d9..fda5e4d50 100644 --- a/_shared_assets/themes/nextcloud_com/static/styles.css +++ b/_shared_assets/themes/nextcloud_com/static/styles.css @@ -1210,3 +1210,101 @@ li > dl > dt { font-weight: 900; } +/* API doc styles */ + +/** Hacky way to display visibility since sphinx-phpdomain currently doesn't seem support them */ + +.public:before { + content: 'public '; +} +.private:before { + content: 'private '; +} +.protected:before { + content: 'protected '; +} +.final dt:before{ + content: 'final '; +} +.abstract dt:before { + content: 'abstract '; +} + +/* Apply rtd default styling to prepended visibility strings */ +.public:before, .private:before { + float: left; +} +.abstract dt:before, +.final dt:before { + padding-right: 10px; +} + +dl.class dt, +dl.interface dt, +dl.trait dt { + font-size: 150%; + margin-bottom: 20px; +} + +.method > dt, +.class > dt, +.interface > dt, +.trait > dt, +.namespace > dt { + padding: 3px; + background-color: #eeeeee; + font-family: Monaco,Menlo,Consolas,"Courier New",monospace; + font-size: 90%; +} +.method:before, +.class:before, +.interface:before, +.trait:before, +.namespace:before { + padding-left: 10px; + padding-top: 1px; + background-color: #eeeeee; + font-family: Monaco,Menlo,Consolas,"Courier New",monospace; + font-size: 90%; + margin-right: 10px; +} +.method > dt code, +.class > dt code, +.interface > dt code, +.trait > dt code, +.namespace > dt code { + background-color: #eeeeee; + font-size: 100%; +} + +/* Hide Fqsn */ +.method .descclassname, +.attr .descclassname { + display: none; +} +.attr .descname:before { + content: '$'; +} + +.method { + margin-bottom: 30px; +} +.method dd { + padding: 10px; +} + +.phpdoctorst th.field-name { + width: 200px; +} + +.phpdoctorst .field-body ul { + padding-left: 0; + list-style-type: none; +} + +.phpdoctorst .line-block { + margin: 0px; +} +.phpdoctorst .line-block .line-block { + margin-left: 15px; +}