Commit 7388d1ac authored by XhmikosR's avatar XhmikosR Committed by GitHub
Browse files

Merge pull request #23457 from twbs/v4-dev-xmr-liquid-whitespace

Reduce liquid's whitespace for a few pages and move about menu to the end.
parents ac718c9b 703c7daf
Showing with 34 additions and 34 deletions
+34 -34
...@@ -75,6 +75,8 @@ ...@@ -75,6 +75,8 @@
# - title: Approach # - title: Approach
- title: Icons - title: Icons
- title: Migration
- title: About - title: About
pages: pages:
- title: History - title: History
...@@ -82,5 +84,3 @@ ...@@ -82,5 +84,3 @@
- title: Brand - title: Brand
- title: License - title: License
- title: Translations - title: Translations
- title: Migration
{% callout danger %} {% callout danger %}
#### Asynchronous methods and transitions #### Asynchronous methods and transitions
All API methods are **asynchronous** and start a **transition**. They returns to the caller as soon as the transition is started but **before it ends**. In addition, a method call on a **transitioning component will be ignored**. All API methods are **asynchronous** and start a **transition**. They return to the caller as soon as the transition is started but **before it ends**. In addition, a method call on a **transitioning component will be ignored**.
[See our JavaScript documentation for more information.]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/javascript/) [See our JavaScript documentation for more information.]({{ site.baseurl }}/docs/{{ site.docs_version }}/getting-started/javascript/)
{% endcallout %} {% endcallout %}
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
#### Conveying meaning to assistive technologies #### Conveying meaning to assistive technologies
Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.sr-only` class. Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies – such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with the `.sr-only` class.
{% endcallout %} {% endcallout %}
\ No newline at end of file
<form class="bd-search d-flex align-items-center"> <form class="bd-search d-flex align-items-center">
<input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off"> <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off">
<button class="btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs avigation"> <button class="btn-link bd-search-docs-toggle d-md-none p-0 ml-3" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
{% include icons/menu.svg class="" width="30" height="30" %} {% include icons/menu.svg class="" width="30" height="30" %}
</button> </button>
</form> </form>
<nav class="collapse bd-links" id="bd-docs-nav"> <nav class="collapse bd-links" id="bd-docs-nav">
{% assign page_slug = page.url | split: '/' | last %} {%- assign page_slug = page.url | split: '/' | last -%}
{% for group in site.data.nav %} {%- for group in site.data.nav -%}
{% assign link = group.pages | first %} {%- assign link = group.pages | first -%}
{% assign link_slug = link.title | slugify %} {%- assign link_slug = link.title | slugify -%}
{% assign group_slug = group.title | slugify %} {%- assign group_slug = group.title | slugify -%}
{% assign active = nil %} {%- assign active = nil -%}
{% if page.group == group_slug %} {%- if page.group == group_slug -%}
{% assign active = 'active' %} {%- assign active = 'active' -%}
{% endif %} {%- endif -%}
<div class="bd-toc-item {{ active }}"> <div class="bd-toc-item{% unless active == nil %} {{ active }}{% endunless %}">
<a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}"> <a class="bd-toc-link" href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ link_slug }}{% if link_slug %}/{% endif %}">
{{ group.title }} {{ group.title }}
</a> </a>
<ul class="nav bd-sidenav"> <ul class="nav bd-sidenav">
{% for doc in group.pages %} {%- for doc in group.pages -%}
{% assign doc_slug = doc.title | slugify %} {%- assign doc_slug = doc.title | slugify -%}
{% assign active = nil %} {%- assign active = nil -%}
{% if page.group == group_slug and page_slug == doc_slug %} {%- if page.group == group_slug and page_slug == doc_slug -%}
{% assign active = 'active bd-sidenav-active' %} {%- assign active = 'active bd-sidenav-active' -%}
{% endif %} {%- endif -%}
<li class="{{ active }}"> <li{% unless active == nil %} class="{{ active }}"{% endunless %}>
<a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ doc_slug }}/"> <a href="{{ site.baseurl }}/docs/{{ site.docs_version }}/{{ group_slug }}/{{ doc_slug }}/">
{{ doc.title }} {{ doc.title }}
</a> </a>
...@@ -50,8 +50,8 @@ ...@@ -50,8 +50,8 @@
{% endunless %} {% endunless %}
{% endcomment %} {% endcomment %}
</li> </li>
{% endfor %} {%- endfor -%}
</ul> </ul>
</div> </div>
{% endfor %} {%- endfor -%}
</nav> </nav>
...@@ -3,15 +3,13 @@ ...@@ -3,15 +3,13 @@
<meta name="generator" content="Jekyll v{{ jekyll.version }}"> <meta name="generator" content="Jekyll v{{ jekyll.version }}">
<title> <title>
{% if page.title %} {%- if page.title -%}
{{ page.title }} &middot; {{ site.title }} {{ page.title }} &middot; {{ site.title }}
{% else %} {%- else -%}
{{ site.title }} &middot; {{ site.description }} {{ site.title }} &middot; {{ site.description }}
{% endif %} {%- endif -%}
</title> </title>
{% include social.html %}
<!-- Bootstrap core CSS --> <!-- Bootstrap core CSS -->
{% if site.github %} {% if site.github %}
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet"> <link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">
...@@ -25,6 +23,8 @@ ...@@ -25,6 +23,8 @@
{% endif %} {% endif %}
<link href="{{ site.baseurl }}/assets/css/docs.min.css" rel="stylesheet"> <link href="{{ site.baseurl }}/assets/css/docs.min.css" rel="stylesheet">
{% include social.html %}
<script> <script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
......
...@@ -51,5 +51,5 @@ Holder.addTheme('gray', { ...@@ -51,5 +51,5 @@ Holder.addTheme('gray', {
fg: 'rgba(255,255,255,.75)', fg: 'rgba(255,255,255,.75)',
font: 'Helvetica', font: 'Helvetica',
fontweight: 'normal' fontweight: 'normal'
}) });
</script> </script>
<!-- Meta -->
<meta name="description" content="{{ site.description }}">
<meta name="author" content="{{ site.authors }}">
<!-- Twitter --> <!-- Twitter -->
<meta name="twitter:site" content="@{{ site.twitter }}"> <meta name="twitter:site" content="@{{ site.twitter }}">
<meta name="twitter:creator" content="@{{ site.twitter }}"> <meta name="twitter:creator" content="@{{ site.twitter }}">
...@@ -30,7 +34,3 @@ ...@@ -30,7 +34,3 @@
<meta property="og:image:type" content="image/png"> <meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200"> <meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630"> <meta property="og:image:height" content="630">
<!-- Meta -->
<meta name="description" content="{{ site.description }}">
<meta name="author" content="{{ site.authors }}">
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment