Skip to content

Commit d589f5d

Browse files
Fixes Cloud-CV#4739: Fix readthedocs UI container size for all screens (Cloud-CV#4744)
Co-authored-by: Rishabh Jain <rishabhjain2018@gmail.com>
1 parent e9b4394 commit d589f5d

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

docs/source/_static/custom.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.wy-nav-content {
2+
max-width: 2000px;
3+
margin: 0 auto;
4+
padding: 2rem;
5+
background: #ffffff;
6+
border: 1px solid #ddd;
7+
box-sizing: border-box;
8+
width: 100%;
9+
min-height: 100vh;
10+
display: flex;
11+
flex-direction: column;
12+
}
13+
14+
.rst-content {
15+
flex: 1;
16+
}
17+
18+
@media screen and (min-width: 1500px) {
19+
.wy-nav-content {
20+
max-width: 5000px;
21+
}
22+
}

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
# relative to this directory. They are copied after the builtin static files,
166166
# so a file named "default.css" will overwrite the builtin "default.css".
167167
html_static_path = ["_static"]
168-
168+
html_css_files = ["custom.css"]
169169
# Add any extra paths that contain custom files (such as robots.txt or
170170
# .htaccess) here, relative to this directory. These files are copied
171171
# directly to the root of the documentation.

0 commit comments

Comments
 (0)