diff --git a/doc/platforms-html5.dox b/doc/platforms-html5.dox index 4378e45da..935339cd8 100644 --- a/doc/platforms-html5.dox +++ b/doc/platforms-html5.dox @@ -273,11 +273,12 @@ endif() @section platforms-html5-layout Modifying page style, canvas size and aspect ratio The `WebApplication.css` file contains a basic style and the additional -@cb{.css} .container @ce, @cb{.css} .sizer @ce and @cb{.css} .expander @ce -@cb{.html}
@ce s take care of aligning the canvas to the center and -making it responsively scale on narrow screens, preserving aspect ratio. For -proper responsiveness on all platforms it's important to include the -@cb{.html} @ce tag in the HTML markup as well. +@cb{.css} #container @ce, @cb{.css} #sizer @ce, @cb{.css} #expander @ce and +@cb{.css} #listener @ce @cb{.html}
@ce s take care of aligning the canvas +to the center and making it responsively scale on narrow screens, preserving +aspect ratio. For proper responsiveness on all platforms it's important to +include the @cb{.html} @ce tag in the HTML markup as +well. By default the canvas is @cpp 640px @ce wide with a 4:3 aspect ratio, you can modify this by placing one of the @cb{.css} .aspect-* @ce CSS classes on the diff --git a/src/Magnum/Platform/EmscriptenApplication.h b/src/Magnum/Platform/EmscriptenApplication.h index 9377f03dd..6df665714 100644 --- a/src/Magnum/Platform/EmscriptenApplication.h +++ b/src/Magnum/Platform/EmscriptenApplication.h @@ -517,7 +517,7 @@ class EmscriptenApplication { /** * @brief Set container CSS class * - * Assigns given CSS class to the @cb{.html}
@ce. + * Assigns given CSS class to the @cb{.html}
@ce. * Useful for example to change aspect ratio of the view or stretch it * to cover the full page. See @ref platforms-html5-layout for more * information about possible values. Note that this replaces any diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h index 1cc75f12d..732003fa7 100644 --- a/src/Magnum/Platform/Sdl2Application.h +++ b/src/Magnum/Platform/Sdl2Application.h @@ -797,7 +797,7 @@ class Sdl2Application { /** * @brief Set container CSS class * - * Assigns given CSS class to the @cb{.html}
@ce. + * Assigns given CSS class to the @cb{.html}
@ce. * Useful for example to change aspect ratio of the view or stretch it * to cover the full page. See @ref platforms-html5-layout for more * information about possible values. Note that this replaces any