chiark / gitweb /
css: rework button markup.
authorVladimír Vondruš <mosra@centrum.cz>
Fri, 5 Jan 2018 16:39:31 +0000 (17:39 +0100)
committerVladimír Vondruš <mosra@centrum.cz>
Tue, 16 Jan 2018 21:45:06 +0000 (22:45 +0100)
commitb9824736835cf2b8ed3ace7795c0e7cf24ffccb4
treee92e854e18ecec87e5d5da583f07297c5aff347a
parentecc1945921de2de3e4683fef529efd4de87de4d4
css: rework button markup.

Default to centered button, because that's what one usually wants. This
also resolves the problem with the following markup not having spacing
after and thus being too sticky to content that immediately follows it.

    <div class="m-text-centered">
      <a class="m-button m-success" href="#">...</a>
    </div>

The new markup is thus this, the .m-text-centered class no longer
needed. Adding .m-fullwidth to the <div> works as expected.

    <div class="m-button m-success">
      <a href="#">...</a>
    </div>

Sorry for potential breakages of your content.
css/m-components.css
doc/css/components-test.rst
doc/css/components.rst
pelican-plugins/m/components.py
pelican-plugins/m/test/components/page.html