From: Jeremy Thomas Date: Tue, 14 Mar 2017 22:38:45 +0000 (+0000) Subject: Add spaced title X-Git-Tag: 0.4.0~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dc6ef2c7600b43d2e1fc8f449aa5f6ca5c6b846;p=thirdparty%2Fbulma.git Add spaced title --- diff --git a/docs/_includes/bsa.html b/docs/_includes/bsa.html index 4c8794d6a..313eecf47 100644 --- a/docs/_includes/bsa.html +++ b/docs/_includes/bsa.html @@ -5,7 +5,7 @@

Bulma Partners

-

Keeping the project alive!

+

Check out their products!

diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 2f29f5717..582b2108d 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -2540,8 +2540,8 @@ input[type="submit"].button { margin-top: -0.75rem; } -.title + .subtitle { - margin-top: -1.25rem; +.title:not(.is-spaced) + .subtitle { + margin-top: -1.5rem; } .title.is-1 { @@ -2579,7 +2579,7 @@ input[type="submit"].button { color: #363636; } -.subtitle + .title { +.subtitle:not(.is-spaced) + .title { margin-top: -1.5rem; } diff --git a/docs/documentation/elements/form.html b/docs/documentation/elements/form.html index bd07d2cea..a39c15966 100644 --- a/docs/documentation/elements/form.html +++ b/docs/documentation/elements/form.html @@ -27,7 +27,8 @@ doc-subtab: form
  • .button
  • .help
  • -

    When combining several controls in a form, use the .control class as a container, to keep the spacing consistent.

    +

    Each of them should be wrapped in a .control container.
    + When combining several controls in a form, use the .field class as a container, to keep the spacing consistent.

    {% capture form_example %} diff --git a/docs/documentation/elements/title.html b/docs/documentation/elements/title.html index 18dbd3f7b..ec40a9a3e 100644 --- a/docs/documentation/elements/title.html +++ b/docs/documentation/elements/title.html @@ -12,7 +12,9 @@ doc-subtab: title

    Simple headings to add depth to your page

    +
    +

    There are 2 types of heading:

    @@ -28,7 +30,9 @@ doc-subtab: title {% endhighlight %}
    +
    +

    There are 6 sizes available:

    @@ -52,6 +56,7 @@ doc-subtab: title {% endhighlight %}
    +
    @@ -73,7 +78,9 @@ doc-subtab: title {% endhighlight %}
    +
    +
    @@ -105,6 +112,45 @@ doc-subtab: title

    Title 3

    Subtitle 5

    +{% endhighlight %} +
    +
    + +
    + +
    +
    +
    +

    + New! +

    +

    You can maintain the normal spacing between titles and subtitles if you use the is-spaced modifier on the first element.

    +
    +
    +
    +
    +

    Title 1

    +

    Subtitle 3

    +
    +
    +

    Title 2

    +

    Subtitle 4

    +
    +
    +

    Title 3

    +

    Subtitle 5

    +
    +
    +
    +{% highlight html %} +

    Title 1

    +

    Subtitle 3

    + +

    Title 2

    +

    Subtitle 4

    + +

    Title 3

    +

    Subtitle 5

    {% endhighlight %}
    diff --git a/docs/documentation/overview/responsiveness.html b/docs/documentation/overview/responsiveness.html index 82e3b8eb1..0440570c8 100644 --- a/docs/documentation/overview/responsiveness.html +++ b/docs/documentation/overview/responsiveness.html @@ -36,7 +36,7 @@ doc-subtab: responsiveness
  • tablet: from 769px
  • desktop: from 1000px
  • widescreen: from 1192px
  • -
  • fullhd: from 1384px
  • +
  • New! fullhd: from 1384px
  • Bulma uses 9 responsive mixins:

      @@ -73,6 +73,7 @@ doc-subtab: responsiveness from 1192px and until 1383px
    • + New! =fullhd
      from 1384px
    • diff --git a/sass/elements/title.sass b/sass/elements/title.sass index 7414a6b73..52c051ef1 100644 --- a/sass/elements/title.sass +++ b/sass/elements/title.sass @@ -29,8 +29,8 @@ $subtitle-weight: $weight-light !default color: inherit & + .highlight margin-top: -0.75rem - & + .subtitle - margin-top: -1.25rem + &:not(.is-spaced) + .subtitle + margin-top: -1.5rem // Colors @each $size in $sizes $i: index($sizes, $size) @@ -44,7 +44,7 @@ $subtitle-weight: $weight-light !default line-height: 1.25 strong color: $subtitle-strong - & + .title + &:not(.is-spaced) + .title margin-top: -1.5rem // Colors @each $size in $sizes