diff --git a/_shared_assets/themes/nextcloud_com/static/styles.css b/_shared_assets/themes/nextcloud_com/static/styles.css index 59dbf42ce..991d99434 100644 --- a/_shared_assets/themes/nextcloud_com/static/styles.css +++ b/_shared_assets/themes/nextcloud_com/static/styles.css @@ -1145,13 +1145,14 @@ li.next { } /* Floating image on code */ -.figure.align-right img { +.figure.figure-with-code img { margin: 0; } -.figure.align-right { +.figure.figure-with-code { float: right; - margin: 1em; - padding: 1em; - border: 1px solid #ccc; - background-color: #f5f5f5; + max-width: 40%; + min-width: 200px; +} +.figure.figure-with-code + .code.html { + max-width: 59%; } diff --git a/developer_manual/design/navigation.rst b/developer_manual/design/navigation.rst index b7b96891b..2e8282126 100644 --- a/developer_manual/design/navigation.rst +++ b/developer_manual/design/navigation.rst @@ -20,13 +20,15 @@ It needs to be: Nextcloud provides a very organized way of building menus. We implemented various essential functions and provide easy way of using them. -.. figure:: ../images/navigation.png - :alt: Navigation screenshot - :align: right Basic layout ============= +.. rst-class:: figure-with-code + +.. figure:: ../images/navigation.png + :alt: Navigation screenshot + .. code:: html
@@ -55,7 +57,6 @@ Each entry is allowed to have a counter and/or a button for user interaction. * The order of the button and the counter are **not** interchangeable. You need to put the counter before the menu. .. code:: html - :class: with-figure