From 1e78f09d87adaac5df3e634be996f8b5ef3e0232 Mon Sep 17 00:00:00 2001 From: mzr1996 Date: Fri, 7 Apr 2023 14:49:49 +0800 Subject: [PATCH] Update docs style. --- docs/en/_static/css/readthedocs.css | 15 ++++++++++++--- docs/zh_CN/_static/css/readthedocs.css | 15 ++++++++++++--- 2 files changed, 24 insertions(+), 6 deletions(-) diff --git a/docs/en/_static/css/readthedocs.css b/docs/en/_static/css/readthedocs.css index d678f523..4c7fa98f 100644 --- a/docs/en/_static/css/readthedocs.css +++ b/docs/en/_static/css/readthedocs.css @@ -1,8 +1,14 @@ .header-logo { background-image: url("../image/mmpt-logo.png"); - background-size: 180px 40px; - height: 40px; - width: 180px; + background-size: 183px 50px; + height: 50px; + width: 183px; +} + +@media screen and (min-width: 1100px) { + .header-logo { + top: -12px; + } } pre { @@ -17,6 +23,9 @@ pre { article.pytorch-article { max-width: 1200px; } + .pytorch-breadcrumbs-wrapper { + width: 1200px; + } .pytorch-right-menu.scrolling-fixed { position: fixed; top: 45px; diff --git a/docs/zh_CN/_static/css/readthedocs.css b/docs/zh_CN/_static/css/readthedocs.css index 502e8604..39dc689e 100644 --- a/docs/zh_CN/_static/css/readthedocs.css +++ b/docs/zh_CN/_static/css/readthedocs.css @@ -1,8 +1,14 @@ .header-logo { background-image: url("../image/mmpt-logo.png"); - background-size: 180px 40px; - height: 40px; - width: 180px; + background-size: 183px 50px; + height: 50px; + width: 183px; +} + +@media screen and (min-width: 1100px) { + .header-logo { + top: -12px; + } } pre { @@ -17,6 +23,9 @@ pre { article.pytorch-article { max-width: 1200px; } + .pytorch-breadcrumbs-wrapper { + width: 1200px; + } .pytorch-right-menu.scrolling-fixed { position: fixed; top: 45px;