]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve responsive table docs
authorMark Otto <markdotto@gmail.com>
Mon, 16 Jul 2018 05:51:47 +0000 (22:51 -0700)
committerMark Otto <otto@github.com>
Fri, 20 Jul 2018 23:18:48 +0000 (18:18 -0500)
- Splits the examples with code snippets
- Adds note about possible broken visuals

Closes #25813

site/docs/4.1/content/tables.md

index e3303666b398cc41a95755636758773b0a71bd90..8799d47f255c8d7d1ed131f6ad58ea044541599b 100644 (file)
@@ -764,8 +764,10 @@ Across every breakpoint, use `.table-responsive` for horizontally scrolling tabl
 
 Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.
 
-<div class="bd-example">
+**These tables may appear broken until their responsive styles apply at specific viewport widths.**
+
 {% for bp in site.data.breakpoints %}{% unless bp.breakpoint == "xs" %}
+<div class="bd-example">
 <div class="table-responsive{{ bp.abbr }}">
   <table class="table">
     <thead>
@@ -818,15 +820,12 @@ Use `.table-responsive{-sm|-md|-lg|-xl}` as needed to create responsive tables u
     </tbody>
   </table>
 </div>
-{% endunless %}{% endfor %}
 </div>
-
 {% highlight html %}
-{% for bp in site.data.breakpoints %}{% unless bp.breakpoint == "xs" %}
 <div class="table-responsive{{ bp.abbr }}">
   <table class="table">
     ...
   </table>
 </div>
-{% endunless %}{% endfor %}
 {% endhighlight %}
+{% endunless %}{% endfor %}