From e035e03d59f7bd2c5407fdb35d06bdcb91f1b1d1 Mon Sep 17 00:00:00 2001 From: mzr1996 Date: Thu, 2 Mar 2023 13:29:48 +0800 Subject: [PATCH] Update docs style. --- docs/en/_static/css/readthedocs.css | 16 ++++++++++++++++ docs/zh_CN/_static/css/readthedocs.css | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/docs/en/_static/css/readthedocs.css b/docs/en/_static/css/readthedocs.css index 7713e9f8..87ca393b 100644 --- a/docs/en/_static/css/readthedocs.css +++ b/docs/en/_static/css/readthedocs.css @@ -9,6 +9,22 @@ pre { white-space: pre; } +@media screen and (min-width: 2000px) { + .pytorch-content-left { + width: 1200px; + margin-left: 30px; + } + article.pytorch-article { + max-width: 1200px; + } + .pytorch-right-menu.scrolling-fixed { + position: fixed; + top: 45px; + left: 1580px; + } +} + + article.pytorch-article section code { padding: .2em .4em; background-color: #f3f4f7; diff --git a/docs/zh_CN/_static/css/readthedocs.css b/docs/zh_CN/_static/css/readthedocs.css index 7713e9f8..8dca7953 100644 --- a/docs/zh_CN/_static/css/readthedocs.css +++ b/docs/zh_CN/_static/css/readthedocs.css @@ -9,6 +9,21 @@ pre { white-space: pre; } +@media screen and (min-width: 2000px) { + .pytorch-content-left { + width: 1200px; + margin-left: 30px; + } + article.pytorch-article { + max-width: 1200px; + } + .pytorch-right-menu.scrolling-fixed { + position: fixed; + top: 45px; + left: 1580px; + } +} + article.pytorch-article section code { padding: .2em .4em; background-color: #f3f4f7;