Skip to content

Commit

Permalink
Rename listing-table to common-table and remove action-table
Browse files Browse the repository at this point in the history
Further, style for the common-table has been changed. (WIP)

refs #5543
  • Loading branch information
gethash committed Nov 4, 2015
1 parent a613a68 commit 0b46f93
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
13 changes: 12 additions & 1 deletion public/css/icinga/base.less
Expand Up @@ -97,12 +97,23 @@ table {
border-collapse: separate;
border-spacing: 0 1px;
width: 100%;
line-height: 2em;
margin-top: 2em;
}

td {
thead {
line-height: 2.5em;
}


th {
padding: @vertical-padding / 2 @horizontal-padding / 2;
}

td {
padding: @vertical-padding / 2 @horizontal-padding / 2;
}

[class^="icon-"], [class*=" icon-"] {
// Smooth icons; ifont claims to have it, but it does not work in :before
-webkit-font-smoothing: antialiased;
Expand Down
23 changes: 13 additions & 10 deletions public/css/icinga/main.less
Expand Up @@ -125,34 +125,37 @@ dl.name-value-list {
}
}

table.action-table {
tbody tr {
.transition(background-color 0.3s ease);
table.common-table {

border-collapse: collapse;

tr {
border-left: 5px solid rgba(0,0,0,0.5);
border-opacity:0.7;
}

tr[href] {
&.active {
background-color: @gray-lighter;
// Auto-refresh must not start transition
transition: none;
border-left: 5px solid @icinga-blue;
}

&:hover {
background-color: @gray-lightest;
cursor: pointer;
}
}
}

table.listing-table {
border-collapse: collapse;

tbody th {
text-align: left;
}

thead {
color: @text-color-light;
border-bottom: 1px solid @gray-light;

// Reset default font-weight
font-weight: normal;
text-align: left;
}

tr {
Expand Down

0 comments on commit 0b46f93

Please sign in to comment.