From: Jeremy Thomas Date: Mon, 26 Mar 2018 13:46:39 +0000 (+0100) Subject: Add Bulma book X-Git-Tag: 0.7.0~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c9f0a76dc094d66442eee41fb0fb7b93ec4c9a6;p=thirdparty%2Fbulma.git Add Bulma book --- diff --git a/docs/_config.yml b/docs/_config.yml index dddc81b2a..2b84565e4 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,7 +1,5 @@ # Meta -title: "Bulma: a modern CSS framework based on Flexbox" -description: "Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free." env: "production" # Build diff --git a/docs/_data/meta.json b/docs/_data/meta.json new file mode 100644 index 000000000..add9f18e8 --- /dev/null +++ b/docs/_data/meta.json @@ -0,0 +1,11 @@ +{ + "title": "Bulma: a modern CSS framework based on Flexbox", + "description": "Bulma is an open source CSS framework based on Flexbox and built with Sass. It's 100% responsive, fully modular, and available for free.", + "documentation": "/documentation/overview/start/", + "download": "https://github.com/jgthms/bulma/releases/download/0.6.2/bulma-0.6.2.zip", + "github": "https://github.com/jgthms/bulma", + "twitter": "https://twitter.com/jgthms", + "version": "0.6.2", + "book_url": "https://bleedingedgepress.com/creating-interfaces-bulma/", + "book_sample": "http://www.bleedingedgepress.com/book_excerpts/01E9D1/creating_interfaces_with_bulma_sample.pdf" +} \ No newline at end of file diff --git a/docs/_includes/book-banner.html b/docs/_includes/book-banner.html new file mode 100644 index 000000000..5e94afab1 --- /dev/null +++ b/docs/_includes/book-banner.html @@ -0,0 +1,15 @@ +
+
+
+
+
+
+ {% include book-cover.html %} +
+
+ {% include book-content.html %} +
+
+
+
+
\ No newline at end of file diff --git a/docs/_includes/book-content.html b/docs/_includes/book-content.html new file mode 100644 index 000000000..04e4a7a8f --- /dev/null +++ b/docs/_includes/book-content.html @@ -0,0 +1,39 @@ +
+
+ New! +

The official Bulma book! 😲

+

by Jeremy Thomas, creator of Bulma, Oleksii Potiekhin,
Mikko Lauhakari, Aslam Shah and David Berning

+
+
+

A step-by-step guide that teaches you how to build a web interface from scratch using Bulma.

+
+
+
+
+ Formats included: +
+
+
+ PDF + Epub + Mobi +
+
+
+
+ +
diff --git a/docs/_includes/book-cover.html b/docs/_includes/book-cover.html new file mode 100644 index 000000000..dc065dd6d --- /dev/null +++ b/docs/_includes/book-cover.html @@ -0,0 +1,12 @@ +
+ + {% + include elements/responsive-image.html + path="book/book-cover" + extension="png" + alt="The official Bulma book cover" + width="300" + height="380" + %} + +
\ No newline at end of file diff --git a/docs/_includes/deprecated.html b/docs/_includes/deprecated.html index 8b2388766..c307b3d0f 100644 --- a/docs/_includes/deprecated.html +++ b/docs/_includes/deprecated.html @@ -1,7 +1,7 @@ {% if site.deprecated %}

- You are viewing the deprecated {{site.version}} version of the website. + You are viewing the deprecated {{site.data.meta.version}} version of the website. Click here to view the latest version

diff --git a/docs/_includes/elements/responsive-image.html b/docs/_includes/elements/responsive-image.html new file mode 100644 index 000000000..0b2283d19 --- /dev/null +++ b/docs/_includes/elements/responsive-image.html @@ -0,0 +1,7 @@ +{{ include.alt }} diff --git a/docs/_includes/elements/tw-button.html b/docs/_includes/elements/tw-button.html index 4e1b89a83..d48f4f9ba 100644 --- a/docs/_includes/elements/tw-button.html +++ b/docs/_includes/elements/tw-button.html @@ -3,7 +3,7 @@ data-social-action="tweet" data-social-target="{{ site.url }}" target="_blank" - href="https://twitter.com/intent/tweet?text={{ site.title | urlencode }}&hashtags=bulmaio&url={{ site.url }}&via=jgthms"> + href="https://twitter.com/intent/tweet?text={{ site.data.meta.title | urlencode }}&hashtags=bulmaio&url={{ site.url }}&via=jgthms"> diff --git a/docs/_includes/footer.html b/docs/_includes/footer.html index b9381c2ec..453ebd2d3 100644 --- a/docs/_includes/footer.html +++ b/docs/_includes/footer.html @@ -1,3 +1,5 @@ +{% include book-banner.html %} + {% include bsa.html %} {% include newsletter.html %} @@ -9,7 +11,7 @@
Bulma by Jeremy Thomas.

An alternative to Bootstrap @@ -24,7 +26,7 @@

- +
diff --git a/docs/_includes/getting-started.html b/docs/_includes/getting-started.html index 872f20889..e89d30669 100644 --- a/docs/_includes/getting-started.html +++ b/docs/_includes/getting-started.html @@ -4,7 +4,7 @@ Hello Bulma! - + diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 3c3d98be3..83a879175 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -2,9 +2,9 @@ - + - {% if page.fulltitle %}{{ page.fulltitle }}{% else %}{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}{% endif %} + {% if page.fulltitle %}{{ page.fulltitle }}{% else %}{% if page.title %}{{ page.title }} | {% endif %}{{ site.data.meta.title }}{% endif %} {% if page.fontawesome4 %} @@ -21,7 +21,7 @@ - + @@ -42,8 +42,8 @@ {% else %} - - + + {% endif %} {% if page.share_description %} @@ -53,8 +53,8 @@ {% else %} - - + + {% endif %} {% if page.share_image %} diff --git a/docs/_includes/header.html b/docs/_includes/header.html index 78e9a75c5..fa63e9dbc 100644 --- a/docs/_includes/header.html +++ b/docs/_includes/header.html @@ -1,17 +1,17 @@
@@ -829,10 +829,7 @@ document.addEventListener('DOMContentLoaded', function () { diff --git a/docs/documentation/components/pagination.html b/docs/documentation/components/pagination.html index 18d2671f5..fb17d828a 100644 --- a/docs/documentation/components/pagination.html +++ b/docs/documentation/components/pagination.html @@ -149,7 +149,7 @@ doc-subtab: pagination {% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/components/panel.html b/docs/documentation/components/panel.html index 87ed8d117..d468e3807 100644 --- a/docs/documentation/components/panel.html +++ b/docs/documentation/components/panel.html @@ -73,7 +73,7 @@ doc-subtab: panel {% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/components/tabs.html b/docs/documentation/components/tabs.html index b5df9f9d6..30e7d1032 100644 --- a/docs/documentation/components/tabs.html +++ b/docs/documentation/components/tabs.html @@ -344,7 +344,7 @@ doc-subtab: tabs
{% endcapture %} -{% include subnav-components.html %} +{% include subnav/subnav-components.html %}
diff --git a/docs/documentation/elements/box.html b/docs/documentation/elements/box.html index ca924c5ff..d570b6d96 100644 --- a/docs/documentation/elements/box.html +++ b/docs/documentation/elements/box.html @@ -5,7 +5,7 @@ doc-tab: elements doc-subtab: box --- -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %} {% capture box_example %}
diff --git a/docs/documentation/elements/button.html b/docs/documentation/elements/button.html index 7352e7c4e..fa1c3d54f 100644 --- a/docs/documentation/elements/button.html +++ b/docs/documentation/elements/button.html @@ -448,7 +448,7 @@ doc-subtab: button
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/content.html b/docs/documentation/elements/content.html index 2a739ffe0..60a871372 100644 --- a/docs/documentation/elements/content.html +++ b/docs/documentation/elements/content.html @@ -101,7 +101,7 @@ doc-subtab: content
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/delete.html b/docs/documentation/elements/delete.html index 0a87f56a6..d2ba8d721 100644 --- a/docs/documentation/elements/delete.html +++ b/docs/documentation/elements/delete.html @@ -40,7 +40,7 @@ doc-subtab: delete {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/icon.html b/docs/documentation/elements/icon.html index f34c65a2f..970bb3a44 100644 --- a/docs/documentation/elements/icon.html +++ b/docs/documentation/elements/icon.html @@ -48,7 +48,7 @@ doc-subtab: icon {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/image.html b/docs/documentation/elements/image.html index 5f4d38d5b..cf7c03286 100644 --- a/docs/documentation/elements/image.html +++ b/docs/documentation/elements/image.html @@ -25,7 +25,7 @@ dimensions: {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/notification.html b/docs/documentation/elements/notification.html index 477ff0a97..3078b5957 100644 --- a/docs/documentation/elements/notification.html +++ b/docs/documentation/elements/notification.html @@ -25,7 +25,7 @@ doc-subtab: notification {% endfor %} {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/progress.html b/docs/documentation/elements/progress.html index 869bd4825..7e48d809d 100644 --- a/docs/documentation/elements/progress.html +++ b/docs/documentation/elements/progress.html @@ -25,7 +25,7 @@ doc-subtab: progress 60% {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/table.html b/docs/documentation/elements/table.html index 02b2c1c93..bfdbfcfa5 100644 --- a/docs/documentation/elements/table.html +++ b/docs/documentation/elements/table.html @@ -305,7 +305,7 @@ doc-subtab: table {% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/elements/tag.html b/docs/documentation/elements/tag.html index af062837b..39582caa1 100644 --- a/docs/documentation/elements/tag.html +++ b/docs/documentation/elements/tag.html @@ -124,7 +124,7 @@ doc-subtab: tag
{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %} {% capture tags_blog_addons %}
diff --git a/docs/documentation/elements/title.html b/docs/documentation/elements/title.html index ccc009050..d7178f295 100644 --- a/docs/documentation/elements/title.html +++ b/docs/documentation/elements/title.html @@ -50,7 +50,7 @@ doc-subtab: title

Subtitle 5

{% endcapture %} -{% include subnav-elements.html %} +{% include subnav/subnav-elements.html %}
diff --git a/docs/documentation/form/checkbox.html b/docs/documentation/form/checkbox.html index 6c3032cda..fd80c3295 100644 --- a/docs/documentation/form/checkbox.html +++ b/docs/documentation/form/checkbox.html @@ -26,7 +26,7 @@ doc-subtab: checkbox {% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/file.html b/docs/documentation/form/file.html index bdabaaa05..6c44c350e 100644 --- a/docs/documentation/form/file.html +++ b/docs/documentation/form/file.html @@ -527,7 +527,7 @@ variables_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
@@ -743,7 +743,7 @@ variables_keys:

- You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how. + You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.

diff --git a/docs/documentation/form/general.html b/docs/documentation/form/general.html index 569465a28..392bc8c35 100644 --- a/docs/documentation/form/general.html +++ b/docs/documentation/form/general.html @@ -795,7 +795,7 @@ variables_form_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/input.html b/docs/documentation/form/input.html index 7fa51dc13..d8c0c5ac0 100644 --- a/docs/documentation/form/input.html +++ b/docs/documentation/form/input.html @@ -239,7 +239,7 @@ variables_keys:
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
@@ -490,7 +490,7 @@ variables_keys:

- You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how. + You can use these variables to customize this element. Simply set one or multiple of these variables before importing Bulma. Learn how.

diff --git a/docs/documentation/form/radio.html b/docs/documentation/form/radio.html index d8897dadd..378f115d8 100644 --- a/docs/documentation/form/radio.html +++ b/docs/documentation/form/radio.html @@ -48,7 +48,7 @@ doc-subtab: radio
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/select.html b/docs/documentation/form/select.html index eb9bd04d4..48287be48 100644 --- a/docs/documentation/form/select.html +++ b/docs/documentation/form/select.html @@ -270,7 +270,7 @@ doc-subtab: select
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/form/textarea.html b/docs/documentation/form/textarea.html index 3f47239f3..7128f8b8c 100644 --- a/docs/documentation/form/textarea.html +++ b/docs/documentation/form/textarea.html @@ -123,7 +123,7 @@ doc-subtab: textarea
{% endcapture %} -{% include subnav-form.html %} +{% include subnav/subnav-form.html %}
diff --git a/docs/documentation/grid/columns.html b/docs/documentation/grid/columns.html index 4757ddd03..4ccd24414 100644 --- a/docs/documentation/grid/columns.html +++ b/docs/documentation/grid/columns.html @@ -327,7 +327,7 @@ doc-subtab: columns
{% endcapture %} -{% include subnav-grid.html %} +{% include subnav/subnav-grid.html %}
diff --git a/docs/documentation/grid/tiles.html b/docs/documentation/grid/tiles.html index e62608121..d42fded00 100644 --- a/docs/documentation/grid/tiles.html +++ b/docs/documentation/grid/tiles.html @@ -7,7 +7,7 @@ doc-subtab: tiles -{% include subnav-grid.html %} +{% include subnav/subnav-grid.html %}
diff --git a/docs/documentation/layout/container.html b/docs/documentation/layout/container.html index dd398b690..90c099c89 100644 --- a/docs/documentation/layout/container.html +++ b/docs/documentation/layout/container.html @@ -38,7 +38,7 @@ doc-subtab: container
{% endcapture %} -{% include subnav-layout.html %} +{% include subnav/subnav-layout.html %}
diff --git a/docs/documentation/layout/footer.html b/docs/documentation/layout/footer.html index 7eb2a1053..7226647fc 100644 --- a/docs/documentation/layout/footer.html +++ b/docs/documentation/layout/footer.html @@ -5,7 +5,7 @@ doc-tab: layout doc-subtab: footer --- -{% include subnav-layout.html %} +{% include subnav/subnav-layout.html %} {% capture footer_example %}