Fix tiles

This commit is contained in:
Jeremy Thomas
2018-04-09 16:33:44 +01:00
parent 25d0ea1136
commit 03c13488a6
10 changed files with 646 additions and 665 deletions

View File

@@ -16,6 +16,7 @@
{% if include.clipped %}bd-is-clipped{% endif %} {% if include.clipped %}bd-is-clipped{% endif %}
{% if include.size %}bd-is-{{ include.size }}{% endif %} {% if include.size %}bd-is-{{ include.size }}{% endif %}
{% if include.one_fifth %}bd-is-one-fifth{% endif %} {% if include.one_fifth %}bd-is-one-fifth{% endif %}
{% if include.fullwidth %}bd-is-fullwidth{% endif %}
"> ">
<div class="bd-snippet-preview {% if include.paddingless %}is-paddingless{% endif %}"> <div class="bd-snippet-preview {% if include.paddingless %}is-paddingless{% endif %}">
{{ include.content }} {{ include.content }}

View File

@@ -81,6 +81,10 @@
.bd-snippet-code .bd-snippet-code
overflow: auto overflow: auto
.bd-snippet.bd-is-fullwidth
border-radius: 0
border-width: 1px 0
+desktop +desktop
.bd-snippet.bd-is-vertical .bd-snippet.bd-is-vertical
align-items: stretch align-items: stretch

View File

@@ -1,4 +1,5 @@
.bd-typo .bd-typo
&:not(:first-child)
margin-top: 3rem margin-top: 3rem
.bd-has-text-rss .bd-has-text-rss

View File

@@ -10402,7 +10402,7 @@ svg {
text-decoration: underline; text-decoration: underline;
} }
.bd-typo { .bd-typo:not(:first-child) {
margin-top: 3rem; margin-top: 3rem;
} }
@@ -10939,6 +10939,11 @@ svg {
overflow: auto; overflow: auto;
} }
.bd-snippet.bd-is-fullwidth {
border-radius: 0;
border-width: 1px 0;
}
@media screen and (min-width: 1024px) { @media screen and (min-width: 1024px) {
.bd-snippet.bd-is-vertical { .bd-snippet.bd-is-vertical {
align-items: stretch; align-items: stretch;

View File

@@ -1,12 +1,12 @@
--- ---
title: Footer title: Footer
subtitle: "A simple responsive <strong>footer</strong> which can include anything: lists, headings, columns, icons, buttons, etc."
layout: documentation layout: documentation
hide_carbon: true
doc-tab: layout doc-tab: layout
doc-subtab: footer doc-subtab: footer
--- ---
{% include subnav/subnav-layout.html %}
{% capture footer_example %} {% capture footer_example %}
<footer class="footer"> <footer class="footer">
<div class="container"> <div class="container">
@@ -21,15 +21,10 @@ doc-subtab: footer
</footer> </footer>
{% endcapture %} {% endcapture %}
<section class="section"> {% include layout/main-close.html show_carbon=true %}
<div class="container">
<h1 class="title">Footer</h1>
<h2 class="subtitle">
A simple responsive <strong>footer</strong> which can include anything: lists, headings, columns, icons, buttons, etc.
</h2>
{% include snippet.html content=footer_example horizontal=true more=true %} {% include snippet.html content=footer_example horizontal=true more=true fullwidth=true %}
{% include variables.html %} {% include layout/main-open.html %}
</div>
</section> {% include variables.html %}

View File

@@ -1,20 +1,13 @@
--- ---
title: Hero title: Hero
subtitle: "An imposing <strong>hero banner</strong> to showcase something"
layout: documentation layout: documentation
hide_carbon: true
doc-tab: layout doc-tab: layout
doc-subtab: hero doc-subtab: hero
--- ---
{% include subnav/subnav-layout.html %} {% include layout/main-close.html show_carbon=true %}
<section class="section">
<div class="container">
<h1 class="title">Hero</h1>
<h2 class="subtitle">
An imposing <strong>hero banner</strong> to showcase something
</h2>
</div>
</section>
<section class="section is-fullwidth"> <section class="section is-fullwidth">
<div class="bd-example"> <div class="bd-example">
@@ -31,6 +24,7 @@ doc-subtab: hero
</div> </div>
</section> </section>
</div> </div>
</section>
{% highlight html %} {% highlight html %}
<section class="hero"> <section class="hero">
@@ -654,3 +648,5 @@ doc-subtab: hero
{% include snippet.html content=heroNavbarB horizontal=true more=true %} {% include snippet.html content=heroNavbarB horizontal=true more=true %}
{% include snippet.html content=heroNavbarC horizontal=true more=true %} {% include snippet.html content=heroNavbarC horizontal=true more=true %}
</section> </section>
{% include layout/main-open.html %}

View File

@@ -1,5 +1,6 @@
--- ---
title: Level title: Level
subtitle: "A multi-purpose <strong>horizontal level</strong>, which can contain almost any other element"
layout: documentation layout: documentation
doc-tab: layout doc-tab: layout
doc-subtab: level doc-subtab: level
@@ -118,16 +119,7 @@ doc-subtab: level
</nav> </nav>
{% endcapture %} {% endcapture %}
{% include subnav/subnav-layout.html %} <div class="content">
<section class="section">
<div class="container">
<h1 class="title">Level</h1>
<h2 class="subtitle">A multi-purpose <strong>horizontal level</strong>, which can contain almost any other element</h2>
<hr>
<div class="content">
<p>The <strong>structure</strong> of a level is the following:</p> <p>The <strong>structure</strong> of a level is the following:</p>
<ul> <ul>
<li> <li>
@@ -144,9 +136,9 @@ doc-subtab: level
</li> </li>
</ul> </ul>
<p>In a <code>level-item</code>, you can then insert almost <em>anything</em> you want: a title, a button, a text input, or just simple text. No matter what elements you put inside a Bulma <code>level</code>, they will always be <strong>vertically centered</strong>.</p> <p>In a <code>level-item</code>, you can then insert almost <em>anything</em> you want: a title, a button, a text input, or just simple text. No matter what elements you put inside a Bulma <code>level</code>, they will always be <strong>vertically centered</strong>.</p>
</div> </div>
<div class="bd-structure"> <div class="bd-structure">
<nav class="level bd-structure-item bd-is-structure-container" title="level"> <nav class="level bd-structure-item bd-is-structure-container" title="level">
<div class="level-left bd-structure-item" title="level-left"> <div class="level-left bd-structure-item" title="level-left">
<div class="level-item"> <div class="level-item">
@@ -187,27 +179,24 @@ doc-subtab: level
</p> </p>
</div> </div>
</nav> </nav>
</div> </div>
{% include snippet.html content=nav_example horizontal=true more=true %} {% include snippet.html content=nav_example horizontal=true more=true %}
{% include anchor.html name="Centered level" %} {% include anchor.html name="Centered level" %}
<div class="content"> <div class="content">
If you want a <strong>centered level</strong>, you can use as many <code>level-item</code> as you want, as long as they are <strong>direct</strong> children of the <code>level</code> container. If you want a <strong>centered level</strong>, you can use as many <code>level-item</code> as you want, as long as they are <strong>direct</strong> children of the <code>level</code> container.
</div> </div>
{% include snippet.html content=nav_centered_example horizontal=true more=true %} {% include snippet.html content=nav_centered_example horizontal=true more=true %}
{% include snippet.html content=nav_centered_bis_example horizontal=true more=true %} {% include snippet.html content=nav_centered_bis_example horizontal=true more=true %}
{% include anchor.html name="Mobile level" %} {% include anchor.html name="Mobile level" %}
<div class="content"> <div class="content">
By default, for space concerns, the level is vertical on mobile. If you want the level to be horizontal on mobile as well, add the <code>is-mobile</code> modifier on the <code>level</code> container. By default, for space concerns, the level is vertical on mobile. If you want the level to be horizontal on mobile as well, add the <code>is-mobile</code> modifier on the <code>level</code> container.
</div> </div>
{% include snippet.html content=nav_mobile_example horizontal=true more=true %} {% include snippet.html content=nav_mobile_example horizontal=true more=true %}
</div>
</section>

View File

@@ -1,5 +1,6 @@
--- ---
title: Media Object title: Media Object
subtitle: "The famous <strong>media object</strong> prevalent in social media interfaces, but useful in any context"
layout: documentation layout: documentation
doc-tab: layout doc-tab: layout
doc-subtab: media-object doc-subtab: media-object
@@ -156,20 +157,11 @@ doc-subtab: media-object
</article> </article>
{% endcapture %} {% endcapture %}
{% include subnav/subnav-layout.html %} <div class="content">
<section class="section">
<div class="container">
<h1 class="title">Media Object</h1>
<h2 class="subtitle">The famous <strong>media object</strong> prevalent in social media interfaces, but useful in any context</h2>
<hr>
<div class="content">
<p>The <a href="http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code">media object</a> is a UI element perfect for repeatable and nestable content.</p> <p>The <a href="http://www.stubbornella.org/content/2010/06/25/the-media-object-saves-hundreds-of-lines-of-code">media object</a> is a UI element perfect for repeatable and nestable content.</p>
</div> </div>
<div class="bd-structure"> <div class="bd-structure">
<article class="media"> <article class="media">
<figure class="media-left bd-structure-item" title="media-left"> <figure class="media-left bd-structure-item" title="media-left">
<p class="image is-64x64"> <p class="image is-64x64">
@@ -202,23 +194,20 @@ doc-subtab: media-object
<button class="delete"></button> <button class="delete"></button>
</div> </div>
</article> </article>
</div> </div>
{% include snippet.html content=media_example horizontal=true more=true %} {% include snippet.html content=media_example horizontal=true more=true %}
<div class="content"> <div class="content">
<p>You can include <em>any</em> other Bulma element, like inputs, textareas, icons, buttons... or even a <strong>nav bar</strong>.</p> <p>You can include <em>any</em> other Bulma element, like inputs, textareas, icons, buttons... or even a <strong>nav bar</strong>.</p>
</div> </div>
{% include snippet.html content=media_bis_example horizontal=true more=true %} {% include snippet.html content=media_bis_example horizontal=true more=true %}
{% include anchor.html name="Nesting" %} {% include anchor.html name="Nesting" %}
<div class="content"> <div class="content">
<p>You can nest media objects up to <strong>3 levels</strong> deep.</p> <p>You can nest media objects up to <strong>3 levels</strong> deep.</p>
</div> </div>
{% include snippet.html content=media_nested_example horizontal=true more=true %} {% include snippet.html content=media_nested_example horizontal=true more=true %}
</div>
</section>

View File

@@ -1,26 +1,12 @@
--- ---
title: Section title: Section
subtitle: "A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading"
layout: documentation layout: documentation
doc-tab: layout doc-tab: layout
doc-subtab: section doc-subtab: section
--- ---
{% include subnav/subnav-layout.html %} {% capture section_example %}
<section class="section">
<div class="container">
<h1 class="title">Section</h1>
<h2 class="subtitle">
A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading
</h2>
<hr>
<div class="content">
<p>Use sections as <strong>direct</strong> children of <code>body</code>.</p>
</div>
{% highlight html %}
<body> <body>
<section class="section"> <section class="section">
<div class="container"> <div class="container">
@@ -31,13 +17,16 @@ doc-subtab: section
</div> </div>
</section> </section>
</body> </body>
{% endhighlight %} {% endcapture %}
<div class="content"> <div class="content">
<p>Use sections as <strong>direct</strong> children of <code>body</code>.</p>
</div>
{% highlight html %}{{ section_example }}{% endhighlight %}
<div class="content">
<p>You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.</p> <p>You can use the modifiers <code>is-medium</code> and <code>is-large</code> to change the <strong>spacing</strong>.</p>
</div> </div>
{% include variables.html %} {% include variables.html %}
</div>
</section>

File diff suppressed because it is too large Load Diff