Skip to content

Commit 2b8b63f

Browse files
committed
Add right inset box shadow on devices where the tables might scroll - closes #94
1 parent f9f098a commit 2b8b63f

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

website/static/docs-css/custom.css

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ table tr td:last-child {
108108

109109
table tr th + th + th:last-child,
110110
table tr td + td + td:last-child {
111+
min-width: 320px;
111112
width: 100%;
112113
}
113114

@@ -116,7 +117,7 @@ table tr:nth-of-type(odd) {
116117
}
117118

118119
table tbody tr:nth-of-type(even) {
119-
background-color: #E8E8E8;
120+
background-color: rgba(76, 76, 76, 0.1);
120121
}
121122

122123
table thead tr:nth-of-type(odd) {
@@ -135,15 +136,26 @@ table thead tr:nth-of-type(odd) {
135136
}
136137
}
137138

139+
@media only screen and (max-width: 735px) {
140+
.docs-next {
141+
clear: unset;
142+
float: right;
143+
}
144+
145+
table {
146+
box-shadow: -10px 0px 10px -10px #000000 inset;
147+
display: inline-block;
148+
max-width: 100%;
149+
width: unset;
150+
}
151+
}
152+
153+
138154
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
139155
/* Better use of screen on mobile */
140156
.wrapper {
141157
width: 100%;
142158
}
143-
144-
/* table tr {
145-
box-shadow: -10px 0px 10px -12px #000000 inset;
146-
} */
147159
}
148160

149161
@media only screen and (min-width: 1024px) {

0 commit comments

Comments
 (0)