--- /dev/null
+<!--
+ This file is part of m.css.
+
+ Copyright © 2017, 2018, 2019 Vladimír Vondruš <mosra@centrum.cz>
+
+ Permission is hereby granted, free of charge, to any person obtaining a
+ copy of this software and associated documentation files (the "Software"),
+ to deal in the Software without restriction, including without limitation
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ and/or sell copies of the Software, and to permit persons to whom the
+ Software is furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included
+ in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ DEALINGS IN THE SOFTWARE.
+-->
+
+<html>
+<head>
+ <title>Page Layout Test: navbar with a brand logo</title>
+ <meta name="css" content="
+https://fonts.googleapis.com/css?family=Source+Code+Pro:400,400i,600%7CSource+Sans+Pro:400,400i,600,600i&subset=latin-ext
+/static/m-dark.compiled.css
+ " />
+ <meta name="template" content="passthrough" />
+ <meta name="slug" content="css/page-layout/test-navbar-brand-logo" />
+</head>
+<body>
+<header><nav id="navigation">
+ <div class="m-container">
+ <div class="m-row">
+ <a id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m">
+ <img src="{static}/static/mosra.jpg" />
+ Your <span class="m-thin">Brand</span>
+ </a>
+ <a id="m-navbar-show" href="#navigation" title="Show navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
+ <a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
+ <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
+ <div class="m-row">
+ <ol class="m-col-t-12 m-col-m-none">
+ <li><a href="#">More</a></li>
+ <li><a href="#">Menu</a></li>
+ <li><a href="#">Items</a></li>
+ </ol>
+ </div>
+ </div>
+ </div>
+ </div>
+</nav></header>
+<main>
+<article>
+ <div class="m-container m-container-inflatable">
+ <div class="m-row">
+ <div class="m-col-l-10 m-push-l-1">
+ <h1>
+ <span class="m-breadcrumb">
+ <a href="{filename}/css.rst">CSS</a> »
+ <a href="{filename}/css/page-layout.rst">Page layout</a> »
+ </span>
+ Test: navbar with a brand logo
+ </h1>
+<p>Shows how a navbar with a brand logo looks.
+<a href="{filename}/css/page-layout.rst#brand-logo">Go back.</a></p>
+</article>
+</main>
+</body>
+</html>
page source to see how it's done here. Don't forget to try to shrink your
browser window to see its behavior in various cases.
+`Brand logo`_
+-------------
+
+Add an :html:`<img>` with a logo inside the :css:`a#m-navbar-brand`. It will be
+a :css:`1.75rem` square vertically centered in the navbar. `See here how it looks <{filename}/css/page-layout-test-navbar-brand-logo.html>`__.
+
+.. code:: html
+ :hl_lines: 4 5 6 7
+ :class: m-inverted
+
+ <header><nav id="navigation">
+ <div class="m-container">
+ <div class="m-row">
+ <a href="#" id="m-navbar-brand" class="m-col-t-9 m-col-m-none m-left-m">
+ <img src="brand.png" />
+ Your Brand
+ </a>
+ <a id="m-navbar-show" href="#navigation" title="Show navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
+ <a id="m-navbar-hide" href="#" title="Hide navigation" class="m-col-t-3 m-hide-m m-text-right"></a>
+ ...
+ </div>
+ </div>
+ </nav></header>
+
`Link back to main site from a subsite`_
----------------------------------------
relation to the main site and link back to the main site as well as the subsite
homepage. The markup looks like in the following snippet (note the
:css:`#m-navbar-brand` is now a span containing two links and a "breadcrumb"
-separator), `see here how it looks <{filename}/css/page-layout-test-navbar-subsite.html>`_.
+separator), `see here how it looks <{filename}/css/page-layout-test-navbar-subsite.html>`__. The `brand logo`_ works here as well if you put it inside the
+:html:`<a>`.
.. code:: html
:hl_lines: 4 5 6 7 8