Skip to content

Commit 5c1489a

Browse files
committed
Styles much better
1 parent f626716 commit 5c1489a

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

components/table/_config.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
$table-row-height: 48px;
2-
$table-row-divider: solid 1px $color-divider;
2+
$table-row-divider: solid 1px rgba(0,0,0,.12);
33
$table-row-offset: 1.8 * $unit;
4-
$table-text-color: rgba(0, 0, 0, 0.541176);
5-
$table-change-icon-size: 0.8 * $unit;
6-
$table-change-icon-color: unquote("rgb(#{$color-primary-dark})") !default;
4+
$table-row-highlight: #eee;
5+
$table-text-color: #757575;

components/table/style.scss

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
.root {
55
width: 100%;
66
font-size: $font-size-tiny;
7-
color: $color-text;
7+
color: $table-text-color;
88
text-align: left;
99
tr {
1010
height: $table-row-height;
1111
line-height: $table-row-height;
1212
border-bottom: $table-row-divider;
13-
&:hover {
14-
background-color: $color-divider;
15-
}
13+
1614
}
1715
th {
1816
font-weight: $font-weight-bold;
@@ -27,6 +25,10 @@
2725
}
2826

2927
.row {
28+
transition: background-color $animation-duration $animation-curve-default;
29+
&:hover {
30+
background-color: $table-row-highlight;
31+
}
3032
&:last-child {
3133
border-color: transparent;
3234
}
@@ -45,18 +47,5 @@
4547
}
4648

4749
.changed {
48-
td:first-child:before {
49-
position: absolute;
50-
top: ($table-row-height / 2.5);
51-
left: ($table-row-height / 10);
52-
width: $table-change-icon-size;
53-
height: $table-change-icon-size;
54-
font-size: 50%;
55-
line-height: $font-size-small;
56-
background-color: $table-change-icon-color;
57-
color: white;
58-
text-align: center;
59-
content: " ";
60-
border-radius: 50%;
61-
}
50+
// @TODO: We've to create a style for changed rows.
6251
}

0 commit comments

Comments
 (0)