Skip to content

Commit

Permalink
Doc: Remove hover effects from tables
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Jan 12, 2016
1 parent 3c236e8 commit a20e971
Showing 1 changed file with 38 additions and 60 deletions.
98 changes: 38 additions & 60 deletions modules/doc/public/css/module.less
@@ -1,16 +1,6 @@
/*! Icinga Web 2 | (c) 2013-2015 Icinga Development Team | GPLv2+ */

.content {
font-size: 1.167em;
}

.uppercase {
text-transform: uppercase;
}

.bold {
font-weight: bold;
}
// Mixins

.gradient(@a: @gray-lighter; @b: @gray-lightest) {
background: @a;
Expand All @@ -22,55 +12,7 @@
background: linear-gradient(to bottom, @a, @b);
}

table {
// Reset
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}

a[name]:focus {
outline: 0;
}

th, td {
padding: 0.25rem;
text-align: left;
line-height: 1.25rem;
color: #666;
}

td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

tbody tr:nth-child(odd) {
.gradient;
}

tbody tr:nth-child(even) {
background: #fff;
}

tbody tr:hover {
background: #666;
td {
color: #fff;
}
}

@icinga: #049baf;

thead {
th {
color: @icinga;
.uppercase();
.bold;
}
border-bottom: 0.25rem solid @icinga;
}
// General styles

code {
color: @icinga-blue;
Expand All @@ -81,6 +23,10 @@ pre > code {
color: inherit;
}

.content {
font-size: 1.167em;
}

.search-highlight {
.rounded-corners();

Expand Down Expand Up @@ -122,3 +68,35 @@ pre > code {
}
}
}

// Table styles

table {
margin-bottom: 1em;
width: 100%;
}

tbody > tr:nth-child(odd) {
.gradient()
}

tbody > tr:nth-child(even) {
background: @body-bg-color;
}

td, th {
padding: 0.5em;
}

td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

th {
border-bottom: 2px solid @icinga-blue;
font-weight: @font-weight-bold;
text-align: left;
text-transform: uppercase;
}

0 comments on commit a20e971

Please sign in to comment.