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
1eaf1cf4
Commit
1eaf1cf4
authored
Aug 27, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4653: add hover states to stateful table rows
parent
17d8c78e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
5 deletions
+38
-5
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+16
-0
less/tables.less
less/tables.less
+22
-5
No files found.
docs/assets/css/bootstrap.css
View file @
1eaf1cf4
...
...
@@ -2102,6 +2102,22 @@ table .span24 {
background-color
:
#d9edf7
;
}
.table-hover
tbody
tr
.success
:hover
td
{
background-color
:
#d0e9c6
;
}
.table-hover
tbody
tr
.error
:hover
td
{
background-color
:
#ebcccc
;
}
.table-hover
tbody
tr
.warning
:hover
td
{
background-color
:
#faf2cc
;
}
.table-hover
tbody
tr
.info
:hover
td
{
background-color
:
#c4e3f3
;
}
[
class
^=
"icon-"
],
[
class
*=
" icon-"
]
{
display
:
inline-block
;
...
...
less/tables.less
View file @
1eaf1cf4
...
...
@@ -208,21 +208,38 @@ table {
}
// TABLE BACKGROUNDS
// -----------------
// Exact selectors below required to override .table-striped
.table {
tbody tr
.success td {
.table
tbody tr
{
&
.success td {
background-color: @successBackground;
}
tbody tr
.error td {
&
.error td {
background-color: @errorBackground;
}
tbody tr
.warning td {
&
.warning td {
background-color: @warningBackground;
}
tbody tr
.info td {
&
.info td {
background-color: @infoBackground;
}
}
// Hover states for .table-hover
.table-hover tbody tr {
&.success:hover td {
background-color: darken(@successBackground, 5%);
}
&.error:hover td {
background-color: darken(@errorBackground, 5%);
}
&.warning:hover td {
background-color: darken(@warningBackground, 5%);
}
&.info:hover td {
background-color: darken(@infoBackground, 5%);
}
}
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