Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
70fa8ef4
Commit
70fa8ef4
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Responsivey docs table for grid section
parent
8349236f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/css/docs.css
+30
-0
assets/css/docs.css
css.html
+52
-50
css.html
with
82 additions
and
50 deletions
+82
-50
assets/css/docs.css
+
30
-
0
View file @
70fa8ef4
...
...
@@ -545,6 +545,36 @@ body {
/* Responsive docs
-------------------------------------------------- */
/* Responsive (scrollable) doc tables */
@media
(
max-width
:
768px
)
{
.bs-table-scrollable
{
width
:
100%
;
overflow-y
:
hidden
;
overflow-x
:
scroll
;
border
:
1px
solid
#ddd
;
}
.bs-table-scrollable
.bs-table
{
margin-bottom
:
0
;
border
:
0
;
}
.bs-table-scrollable
.bs-table
th
,
.bs-table-scrollable
.bs-table
td
{
white-space
:
nowrap
;
}
.bs-table-scrollable
.bs-table
th
:first-child
,
.bs-table-scrollable
.bs-table
td
:first-child
{
border-left
:
0
;
}
.bs-table-scrollable
.bs-table
th
:last-child
,
.bs-table-scrollable
.bs-table
td
:last-child
{
border-right
:
0
;
}
.bs-table-scrollable
.bs-table
tr
:last-child
th
,
.bs-table-scrollable
.bs-table
tr
:last-child
td
{
border-bottom
:
0
;
}
}
/* Related: responsive utilities tables */
.table
code
{
font-size
:
13px
;
...
...
This diff is collapsed.
Click to expand it.
css.html
+
52
-
50
View file @
70fa8ef4
...
...
@@ -78,56 +78,58 @@ lead: "Global CSS settings, fundamental HTML elements styled and enhanced with e
<h3
id=
"grid-options"
>
Grid options
</h3>
<p>
See how aspects of the Bootstrap grid system work across multiple devices with a handy table.
</p>
<table
class=
"table table-bordered table-striped bs-table"
>
<thead>
<tr>
<th></th>
<th>
Tiny grid
<small>
Phones (
<
480px)
</small>
</th>
<th>
Small grid
<small>
Tablets (
<
768px)
</small>
</th>
<th>
Medium-large grid
<small>
Destkops (
>
768px)
</small>
</th>
</tr>
</thead>
<tbody>
<tr>
<th>
Grid behavior
</th>
<td>
Horizontal at all times
</td>
<td
colspan=
"2"
>
Collapsed to start, horizontal above breakpoints
</td>
</tr>
<tr>
<th>
Class prefix
</th>
<td><code>
.col-
</code></td>
<td><code>
.col-sm-
</code></td>
<td><code>
.col-lg-
</code></td>
</tr>
<tr>
<th>
# of columns
</th>
<td
colspan=
"3"
>
12
</td>
</tr>
<tr>
<th>
Nestable
</th>
<td
colspan=
"3"
>
Yes
</td>
</tr>
<tr>
<th>
Offsets
</th>
<td
colspan=
"2"
class=
"text-muted"
>
N/A
</td>
<td>
Yes
</td>
</tr>
<tr>
<th>
Column ordering
</th>
<td
class=
"text-muted"
>
N/A
</td>
<td
colspan=
"2"
>
Yes
</td>
</tr>
</tbody>
</table>
<div
class=
"bs-table-scrollable"
>
<table
class=
"table table-bordered table-striped bs-table"
>
<thead>
<tr>
<th></th>
<th>
Tiny grid
<small>
Phones (
<
480px)
</small>
</th>
<th>
Small grid
<small>
Tablets (
<
768px)
</small>
</th>
<th>
Medium-large grid
<small>
Destkops (
>
768px)
</small>
</th>
</tr>
</thead>
<tbody>
<tr>
<th>
Grid behavior
</th>
<td>
Horizontal at all times
</td>
<td
colspan=
"2"
>
Collapsed to start, horizontal above breakpoints
</td>
</tr>
<tr>
<th>
Class prefix
</th>
<td><code>
.col-
</code></td>
<td><code>
.col-sm-
</code></td>
<td><code>
.col-lg-
</code></td>
</tr>
<tr>
<th>
# of columns
</th>
<td
colspan=
"3"
>
12
</td>
</tr>
<tr>
<th>
Nestable
</th>
<td
colspan=
"3"
>
Yes
</td>
</tr>
<tr>
<th>
Offsets
</th>
<td
colspan=
"2"
class=
"text-muted"
>
N/A
</td>
<td>
Yes
</td>
</tr>
<tr>
<th>
Column ordering
</th>
<td
class=
"text-muted"
>
N/A
</td>
<td
colspan=
"2"
>
Yes
</td>
</tr>
</tbody>
</table>
</div>
<h3
id=
"grid-example-basic"
>
Example: Stacked-to-horizontal
</h3>
<p>
Using a single set of grid classes, you can create a basic grid system that starts out stacked on mobile and tablet devices before becoming horizontal on desktop devices.
</p>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment