Skip to content

Commit

Permalink
fix(table): update table scrollbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
luchunyu committed Jan 22, 2019
1 parent 3974ca6 commit a2f0d6d
Showing 1 changed file with 2 additions and 44 deletions.
46 changes: 2 additions & 44 deletions src/components/table/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,11 @@
}

.c-scroll__thead {
-ms-overflow-style: none;
overflow-x: auto;
-ms-scroll-chaining: none;
overscroll-behavior: none;
overflow-x: hidden;

& table {
table-layout: fixed;
}

&::-webkit-scrollbar {
display: none;
}
}

.c-table__body table {
Expand All @@ -75,22 +68,6 @@
.c-scroll__tbody,
.c-scrolltable {
overflow-x: auto;
-ms-scroll-chaining: none;
overscroll-behavior: none;

&::-webkit-scrollbar {
width: 5px;
height: 5px;
}

&::-webkit-scrollbar-thumb {
background: #ced3d9;
border-radius: 30px;
}

&::-webkit-scrollbar-track {
background: #eaeced;
}

& table {
table-layout: fixed;
Expand Down Expand Up @@ -200,22 +177,6 @@

.c-table__body {
overflow-y: auto;
-ms-scroll-chaining: none;
overscroll-behavior: none;

&::-webkit-scrollbar {
width: 5px;
height: 5px;
}

&::-webkit-scrollbar-thumb {
background: #ced3d9;
border-radius: 30px;
}

&::-webkit-scrollbar-track {
background: #eaeced;
}
}

.c-table__all.c-table {
Expand Down Expand Up @@ -340,10 +301,7 @@
& .c-table__body {
border-bottom: 0;
-ms-overflow-style: none;

&::-webkit-scrollbar {
display: none;
}
overflow: hidden;
}
}

Expand Down

0 comments on commit a2f0d6d

Please sign in to comment.