Skip to content

Commit

Permalink
Fix doc table fade out gradient in dark theme (#10167)
Browse files Browse the repository at this point in the history
* Fix doc table fade out gradient in dark theme

* Update dark theme source row labels
  • Loading branch information
lukasolson committed Feb 3, 2017
1 parent 18451e5 commit 932b787
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
15 changes: 13 additions & 2 deletions src/ui/public/styles/dark-theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
.agg-table-paginated {
tr:hover td {
background-color: @table-row-hover-bg;

.table-cell-filter {
background-color: @table-row-hover-bg;
}
Expand Down Expand Up @@ -583,6 +583,18 @@
color: @dark-button-font;
}

.truncate-by-height:before {
background: linear-gradient(to bottom, transparent 0%, @dashboard-bg 100%) !important;
}

kbn-table, .kbn-table, tbody[kbn-rows] {
dl.source {
dt {
background: #5f5f5f;
color: #ffffff;
}
}
}

// /src/ui/public/doc_table/doc_table.less
.discover-table-row {
Expand All @@ -593,4 +605,3 @@
}
}
}

17 changes: 0 additions & 17 deletions src/ui/public/styles/truncate.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,6 @@
height: 15px; // copied into index.html!
position: absolute;
left: 0;

// FF3.6+
background: -moz-linear-gradient(top, @truncate1 0%, @truncate2 1%, @truncate3 99%, @truncate4 100%);

// Chrome,Safari4+
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, @truncate1), color-stop(1%, @truncate2), color-stop(99%, @truncate3), color-stop(100%, @truncate4));

// Chrome10+,Safari5.1+
background: -webkit-linear-gradient(top, @truncate1 0%, @truncate2 1%, @truncate3 99%, @truncate4 100%);

// Opera 11.10+
background: -o-linear-gradient(top, @truncate1 0%, @truncate2 1%, @truncate3 99%, @truncate4 100%);

// IE10+
background: -ms-linear-gradient(top, @truncate1 0%, @truncate2 1%, @truncate3 99%, @truncate4 100%);

// W3C
background: linear-gradient(to bottom, @truncate1 0%, @truncate2 1%, @truncate3 99%, @truncate4 100%);
}
}

0 comments on commit 932b787

Please sign in to comment.