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
2304ba6a
Commit
2304ba6a
authored
Sep 20, 2013
by
Zlatan Vasović
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid LESS nesting if isn't needed
parent
e148923f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
23 deletions
+13
-23
less/tables.less
less/tables.less
+13
-23
No files found.
less/tables.less
View file @
2304ba6a
...
@@ -91,12 +91,10 @@ th {
...
@@ -91,12 +91,10 @@ th {
}
}
}
}
}
}
> thead {
> thead > tr {
> tr {
> th,
> th,
> td {
> td {
border-bottom-width: 2px;
border-bottom-width: 2px;
}
}
}
}
}
}
}
...
@@ -106,14 +104,10 @@ th {
...
@@ -106,14 +104,10 @@ th {
//
//
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped {
.table-striped > tbody > tr:nth-child(odd) {
> tbody {
> td,
> tr:nth-child(odd) {
> th {
> td,
background-color: @table-bg-accent;
> th {
background-color: @table-bg-accent;
}
}
}
}
}
}
...
@@ -122,14 +116,10 @@ th {
...
@@ -122,14 +116,10 @@ th {
//
//
// 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-hover {
.table-hover > tbody > tr:hover {
> tbody {
> td,
> tr:hover {
> th {
> td,
background-color: @table-bg-hover;
> th {
background-color: @table-bg-hover;
}
}
}
}
}
}
...
@@ -191,7 +181,7 @@ table {
...
@@ -191,7 +181,7 @@ table {
border: 1px solid @table-border-color;
border: 1px solid @table-border-color;
-webkit-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
// Tighten up spacing
and give a background color
// Tighten up spacing
> .table {
> .table {
margin-bottom: 0;
margin-bottom: 0;
...
...
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