Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
27845e44
Commit
27845e44
authored
Jun 25, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3223: make table row hover optional class
parent
508a93d9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
81 additions
and
3 deletions
+81
-3
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+2
-2
docs/base-css.html
docs/base-css.html
+39
-0
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+39
-0
less/tables.less
less/tables.less
+1
-1
No files found.
docs/assets/css/bootstrap.css
View file @
27845e44
...
@@ -1748,8 +1748,8 @@ table {
...
@@ -1748,8 +1748,8 @@ table {
background-color
:
#f9f9f9
;
background-color
:
#f9f9f9
;
}
}
.table
tbody
tr
:hover
td
,
.table
-hover
tbody
tr
:hover
td
,
.table
tbody
tr
:hover
th
{
.table
-hover
tbody
tr
:hover
th
{
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
}
}
...
...
docs/base-css.html
View file @
27845e44
...
@@ -566,6 +566,45 @@ For example, <code>section</code> should be wrapped as inline.
...
@@ -566,6 +566,45 @@ For example, <code>section</code> should be wrapped as inline.
<
table class="table table-bordered"
>
<
table class="table table-bordered"
>
…
…
<
/table
>
<
/table
>
</pre>
<h3><code>
.table-hover
</code></h3>
<p>
Enable a hover state on table rows within a
<code>
<
tbody
>
</code>
.
</p>
<div
class=
"bs-docs-example"
>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
#
</th>
<th>
First Name
</th>
<th>
Last Name
</th>
<th>
Username
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td>
Mark
</td>
<td>
Otto
</td>
<td>
@mdo
</td>
</tr>
<tr>
<td>
2
</td>
<td>
Jacob
</td>
<td>
Thornton
</td>
<td>
@fat
</td>
</tr>
<tr>
<td>
3
</td>
<td
colspan=
"2"
>
Larry the Bird
</td>
<td>
@twitter
</td>
</tr>
</tbody>
</table>
</div>
<pre
class=
"prettyprint linenums"
style=
"margin-bottom: 18px;"
>
<
table class="table table-hover"
>
…
<
/table
>
</pre>
</pre>
<h3><code>
.table-condensed
</code></h3>
<h3><code>
.table-condensed
</code></h3>
...
...
docs/templates/pages/base-css.mustache
View file @
27845e44
...
@@ -497,6 +497,45 @@
...
@@ -497,6 +497,45 @@
<
table class="table table-bordered"
>
<
table class="table table-bordered"
>
…
…
<
/table
>
<
/table
>
</pre>
<h3><code>
{{
_i
}}
.table-hover
{{/
i
}}
</code></h3>
<p>
{{
_i
}}
Enable a hover state on table rows within a
<code>
<
tbody
>
</code>
.
{{/
i
}}
</p>
<div
class=
"bs-docs-example"
>
<table
class=
"table table-hover"
>
<thead>
<tr>
<th>
#
</th>
<th>
{{
_i
}}
First Name
{{/
i
}}
</th>
<th>
{{
_i
}}
Last Name
{{/
i
}}
</th>
<th>
{{
_i
}}
Username
{{/
i
}}
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td>
Mark
</td>
<td>
Otto
</td>
<td>
@mdo
</td>
</tr>
<tr>
<td>
2
</td>
<td>
Jacob
</td>
<td>
Thornton
</td>
<td>
@fat
</td>
</tr>
<tr>
<td>
3
</td>
<td
colspan=
"2"
>
Larry the Bird
</td>
<td>
@twitter
</td>
</tr>
</tbody>
</table>
</div>
{{! /example }}
<pre
class=
"prettyprint linenums"
style=
"margin-bottom: 18px;"
>
<
table class="table table-hover"
>
…
<
/table
>
</pre>
</pre>
<h3><code>
{{
_i
}}
.table-condensed
{{/
i
}}
</code></h3>
<h3><code>
{{
_i
}}
.table-condensed
{{/
i
}}
</code></h3>
...
...
less/tables.less
View file @
27845e44
...
@@ -136,7 +136,7 @@ table {
...
@@ -136,7 +136,7 @@ table {
// HOVER EFFECT
// HOVER EFFECT
// ------------
// ------------
// Placed here since it has to come after the potential zebra striping
// Placed here since it has to come after the potential zebra striping
.table {
.table
-hover
{
tbody tr:hover td,
tbody tr:hover td,
tbody tr:hover th {
tbody tr:hover th {
background-color: @tableBackgroundHover;
background-color: @tableBackgroundHover;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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