responsive-tables.css in Zurb Responsive Tables 7
table th {
font-weight: bold;
}
table td,
table th {
padding: 9px 10px;
text-align: left;
}
/* Mobile */
@media only screen and (max-width: 767px) {
table.responsive {
margin-bottom: 0;
}
table.responsive td,
.pinned td {
height: 30px;
padding: 5px;
margin: 0px;
}
.pinned {
position: absolute;
left: 0;
top: 0;
width: 35%;
overflow: hidden;
white-space: nowrap;
overflow-x: scroll;
border-right: 1px solid #ccc;
border-left: 1px solid #ccc;
}
.pinned table {
border-right: none;
border-left: none;
width: 100%;
}
.pinned table th {
white-space: nowrap;
}
.pinned td:last-child {
border-bottom: 0;
}
div.table-wrapper {
position: relative;
margin-bottom: 20px;
overflow: hidden;
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
}
div.table-wrapper div.scrollable {
margin-left: 35%;
}
div.table-wrapper div.scrollable {
overflow: scroll;
overflow-y: hidden;
}
table.responsive td,
table.responsive th {
position: relative;
white-space: nowrap;
overflow: hidden;
}
.pinned th,
table.responsive th {
border-bottom: 1px solid #ccc;
}
table.responsive th:first-child,
table.responsive td:first-child,
table.responsive td:first-child,
table.responsive.pinned td {
display: none;
}
}
File
css/responsive-tables.css
View source
- table th {
- font-weight: bold;
- }
- table td,
- table th {
- padding: 9px 10px;
- text-align: left;
- }
-
- /* Mobile */
- @media only screen and (max-width: 767px) {
-
- table.responsive {
- margin-bottom: 0;
- }
-
- table.responsive td,
- .pinned td {
- height: 30px;
- padding: 5px;
- margin: 0px;
- }
-
- .pinned {
- position: absolute;
- left: 0;
- top: 0;
- width: 35%;
- overflow: hidden;
- white-space: nowrap;
- overflow-x: scroll;
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
- }
-
- .pinned table {
- border-right: none;
- border-left: none;
- width: 100%;
- }
-
- .pinned table th {
- white-space: nowrap;
- }
-
- .pinned td:last-child {
- border-bottom: 0;
- }
-
- div.table-wrapper {
- position: relative;
- margin-bottom: 20px;
- overflow: hidden;
- border-bottom: 1px solid #ccc;
- border-right: 1px solid #ccc;
- }
-
- div.table-wrapper div.scrollable {
- margin-left: 35%;
- }
-
- div.table-wrapper div.scrollable {
- overflow: scroll;
- overflow-y: hidden;
- }
-
- table.responsive td,
- table.responsive th {
- position: relative;
- white-space: nowrap;
- overflow: hidden;
- }
-
- .pinned th,
- table.responsive th {
- border-bottom: 1px solid #ccc;
- }
-
- table.responsive th:first-child,
- table.responsive td:first-child,
- table.responsive td:first-child,
- table.responsive.pinned td {
- display: none;
- }
- }