Skip to content

Commit

Permalink
💄 [#1436] Added scroll styles for tables on mobile and iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Jun 5, 2023
1 parent 5f78ccb commit bb39087
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/open_inwoner/scss/components/Table/Table.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
.table {
display: block;
box-sizing: border-box;
white-space: nowrap;
margin-top: var(--row-height);
width: 100%;
font-family: var(--font-family-body);
border-collapse: collapse;
border-spacing: 0;
overflow-x: scroll;
scrollbar-width: thin;
scrollbar-color: var(--color-secondary) var(--color-gray-lightest);
-webkit-overflow-scrolling: touch;

&--space-medium {
margin-top: var(--spacing-medium);
Expand Down Expand Up @@ -147,4 +154,25 @@
font-size: var(--font-size-body);
}
}

@media (min-width: 768px) {
display: table;
}
}

/// Scrollbar style for tables on mobile

.table::-webkit-scrollbar {
width: 8px;
height: 8px;
}

.table::-webkit-scrollbar-track {
background: var(--color-gray-lightest);
}

.table::-webkit-scrollbar-thumb {
background-color: var(--color-secondary);
border-radius: 6px;
border: 2px solid var(--color-secondary);
}

0 comments on commit bb39087

Please sign in to comment.