mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-24 22:37:19 +00:00
[doc] all: Center content when there's room
This commit is contained in:
parent
ff6c46f7ca
commit
936688ddac
@ -102,7 +102,13 @@ html_favicon = '../resources/icon.ico'
|
|||||||
|
|
||||||
html_logo = '../resources/icon-128x128.png'
|
html_logo = '../resources/icon-128x128.png'
|
||||||
|
|
||||||
|
html_css_files = [
|
||||||
|
'center-rtd.css',
|
||||||
|
]
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
html_static_path = []
|
html_static_path = [
|
||||||
|
'css/center-rtd.css',
|
||||||
|
]
|
||||||
|
17
doc/css/center-rtd.css
Normal file
17
doc/css/center-rtd.css
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
@media screen and (min-width:1100px) {
|
||||||
|
.wy-nav-content-wrap {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
.wy-nav-content {
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:1430px) {
|
||||||
|
.wy-nav-content-wrap {
|
||||||
|
margin-left: 300px;
|
||||||
|
}
|
||||||
|
.wy-nav-content {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user