Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit fe5ec1a

Browse files
committed
fix(datatable): simplified DataTable style rules
1 parent b8d76df commit fe5ec1a

File tree

5 files changed

+16
-21
lines changed

5 files changed

+16
-21
lines changed
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
@import './variables';
22

33
.s-tbl-body {
4-
.s-tbl-row:hover {
5-
background-color: $tbl-background-hover;
4+
.s-tbl-row {
5+
border-top-color: $tbl-border-color;
6+
border-top-style: solid;
7+
border-top-width: $tbl-border-width;
8+
9+
&:hover {
10+
background-color: $tbl-background-hover;
11+
}
612
}
713
}
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
.s-tbl-cell {
22
padding-left: 16px;
33
padding-right: 16px;
4-
height: 52px;
54

65
&.numeric {
76
text-align: right;
87
}
98
}
9+
10+
th.s-tbl-cell {
11+
height: 56px;
12+
}
13+
14+
td.s-tbl-cell {
15+
height: 52px;
16+
}

packages/svelte-materialify/src/components/DataTable/DataTableHead.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@
22

33
.s-tbl-head {
44
font-weight: map-get($font-weights, 'medium');
5-
6-
.s-tbl-row {
7-
border-top-width: 0;
8-
}
9-
10-
.s-tbl-cell {
11-
height: 56px;
12-
}
135
}

packages/svelte-materialify/src/components/DataTable/DataTableRow.scss

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/svelte-materialify/src/components/DataTable/DataTableRow.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
export { klass as class };
44
</script>
55

6-
<style lang="scss" src="./DataTableRow.scss" global>
7-
</style>
8-
96
<tr class="s-tbl-row {klass}">
107
<slot />
118
</tr>

0 commit comments

Comments
 (0)