diff --git a/docs/bulma-docs.sass b/docs/bulma-docs.sass index 3fedb378..75016141 100644 --- a/docs/bulma-docs.sass +++ b/docs/bulma-docs.sass @@ -294,7 +294,7 @@ html.route-index #carbon border-top: none margin-top: -1.5rem pre - max-height: 600px + max-height: 50vh &:not(:last-child) margin-bottom: 1.5rem diff --git a/docs/css/bulma-docs.css b/docs/css/bulma-docs.css index 5202ac16..7703258d 100644 --- a/docs/css/bulma-docs.css +++ b/docs/css/bulma-docs.css @@ -6662,7 +6662,7 @@ html.route-index #carbon { } .example + .highlight pre { - max-height: 600px; + max-height: 50vh; } .example + .highlight:not(:last-child) { diff --git a/docs/documentation/components/nav.html b/docs/documentation/components/nav.html index 7497fe0f..03a9807d 100644 --- a/docs/documentation/components/nav.html +++ b/docs/documentation/components/nav.html @@ -40,7 +40,7 @@ doc-subtab: nav {% endcapture %} -
+
{{nav_example}}
@@ -114,45 +114,52 @@ doc-subtab: nav
  • the nav-item can become active by adding the is-active modifier
  • the nav-item can become a tab by adding the is-tab modifier
  • +

    + To optimise the space on desktop, but also allow the mobile view to be usable, you can duplicate nav items in both nav-left and nav-right, and show/hide them with responsive helpers. +

    -
    +{% capture nav_tabs_example %} +{% endcapture %} + +
    +{{nav_tabs_example}}
    {% highlight html %} - +{{nav_tabs_example}} {% endhighlight %} diff --git a/docs/images/jgthms.png b/docs/images/jgthms.png new file mode 100644 index 00000000..b89c0097 Binary files /dev/null and b/docs/images/jgthms.png differ