mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Make the documentation logo hiDPI-friendly
This also sets the documentation logo to a fixed size in the CSS to prevent reflows during page loading.
This commit is contained in:
@@ -593,6 +593,13 @@ kbd, .kbd {
|
||||
opacity: var(--logo-opacity);
|
||||
}
|
||||
|
||||
.wy-side-nav-search > a img.logo {
|
||||
/* Fixed size to prevent reflows and support hiDPI displays */
|
||||
/* A 5 pixel margin is added on each side. The logo itself displays at 200×200 at 100% scaling. */
|
||||
width: 210px;
|
||||
height: 210px;
|
||||
}
|
||||
|
||||
.wy-side-nav-search {
|
||||
background-color: var(--navbar-background-color);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user